Jump to content

AUTORUN.INF doesn't work and also cmdow.exe


Recommended Posts

How come that my AUTORUN.INF doesn't work in 5.1.

I've placed AUTORUN.INF at the root of my DVD together with the WPI folder.

It looks like this:

[AutoRun]
open=WPI\WPI.hta
icon=WPI.ico

Second problem is how to hide in my execute after: my cleanup.cmd

WPI doesn't see cmdow.exe

cmdow.exe is also on the root off the DVD.

It looks like this:

@ECHO OFF
REM Hide this command window.
%wpipath%\cmdow.exe @ /hid

start /wait %cdrom%\WPI\Install\Apps\UPHClean\UPHClean-Setup.msi /quiet
start /wait %cdrom%\WPI\Install\Apps\SystemFileDefragmenter\pagedfrg.exe -e
start /wait %cdrom%\WPI\Install\system32.exe

DEL "%systemdrive%\Documents and Settings\Administrator\Menu Start\Programma's\QuickPar.lnk"
DEL "%systemdrive%\Documents and Settings\Administrator\Menu Start\Programma's\Uninstall.lnk"
DEL "%systemdrive%\Documents and Settings\Administrator\Menu Start\Programma's\Website.lnk"
DEL "%systemdrive%\Documents and Settings\Administrator\Menu Start\Programma's\TuneUp Utilities 2006.lnk"
DEL "%systemdrive%\Documents and Settings\Administrator\Menu Start\PowerArchiver.lnk"
DEL "%systemdrive%\Documents and Settings\All Users\Menu Start\ICQ 5.1.lnk"
DEL "%systemdrive%\Documents and Settings\All Users\Menu Start\WinRAR.lnk"
DEL "%systemdrive%\Documents and Settings\All Users\Menu Start\WinZip.lnk"
DEL "%systemdrive%\Documents and Settings\All Users\Menu Start\XstreamRadio 3.02.lnk"
DEL "%systemdrive%\Documents and Settings\All Users\Menu Start\Windows-catalogus.lnk"
DEL "%systemdrive%\Documents and Settings\All Users\Menu Start\Programma's\IncrediMail.lnk"
DEL "%systemdrive%\Documents and Settings\All Users\Menu Start\Programmatoegang en -instellingen.lnk"
DEL "%systemdrive%\Documents and Settings\All Users\Menu Start\Programma's\Windows Movie Maker.lnk"

DEL "%systemdrive%\*.log"

DEL "%systemdrive%\Documents and Settings\Administrator\Cookies\*.txt"
DEL "%systemdrive%\Documents and Settings\Administrator\Cookies\*.tmp"

RD /S /Q %systemdrive%\"Program Files\Common Files\Microsoft Shared\DAO\ssdata\"
RD /S /Q %systemdrive%\"Documents and Settings\Administrator\Local Settings\Temporary Internet Files\"
RD /S /Q %systemdrive%\"Documents and Settings\Administrator\Local Settings\Geschiedenis\"
RD /S /Q %systemdrive%\Install\

net user aspnet /delete

SET PP=%systemroot%\system32\
SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx
REG ADD %KEY% /V TITLE /D "Resetten van het Beveiligingscentrum" /f
REG ADD %KEY%\001 /VE /D "Reset Windows Security Center" /f
REG ADD %KEY%\001 /V 1 /D "%PP%WinMgmt.cmd" /f

REM Herstarten van de PC binnen 30 seconden...
shutdown.exe -r -f -t 30 -c "Windows zal over 90 seconden herstarten."

EXIT

Please someone tell me what I'm doing wrong.

Edited by Pliek
Link to comment
Share on other sites


Well, the cmd doesn't have the %wpipath% variable defined. That var is available only inside WPI.

Here is a fix (don't blame me if this isn't working, I'm writing it from memory):

for %%i in (C D E F G H I J K L M N O P Q R S T U V W X Y Z) do if exist %%i:\wpi.ico set CDROM=%%i:
%CDROM%\WPI\cmdow.exe @ /hid

Link to comment
Share on other sites

Sorry, but I have my autorun disabled and I can't try it ... I can't say for sure just looking at it, but it looks fine for me.

All I can tell you is that I can CONFIRM your problem. This has been on my to-do list for sometime. I have not been able to get it to work...

Link to comment
Share on other sites

You did it again..... :w00t:

You came up with the solution.

Autorun is also working, so problem solved.

Looks like onely you can solve all the problems I come up with.

LOL

Thanks sadicq :thumbup

Edited by Pliek
Link to comment
Share on other sites

  • 3 weeks later...

I am trying to make a standalone cd & I have this new autorun.inf file and it does not work for me. Get error that says it can't find wpi.hta file, but it is in the root of the cd. along with autorun.inf and wpi.ico.

You will have to excuse me if I do not get this message right. It's my first time using a forum.

Here is the Autorun.inf

[AutoRun]

[AutoRun]

ShellExecute=wpi.hta

ICON=WPI.ICO

Any suggestions.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...