Pliek Posted July 21, 2006 Share Posted July 21, 2006 (edited) 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.htaicon=WPI.icoSecond problem is how to hide in my execute after: my cleanup.cmdWPI doesn't see cmdow.execmdow.exe is also on the root off the DVD.It looks like this:@ECHO OFFREM Hide this command window.%wpipath%\cmdow.exe @ /hidstart /wait %cdrom%\WPI\Install\Apps\UPHClean\UPHClean-Setup.msi /quietstart /wait %cdrom%\WPI\Install\Apps\SystemFileDefragmenter\pagedfrg.exe -estart /wait %cdrom%\WPI\Install\system32.exeDEL "%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 /deleteSET PP=%systemroot%\system32\SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Resetten van het Beveiligingscentrum" /fREG ADD %KEY%\001 /VE /D "Reset Windows Security Center" /fREG ADD %KEY%\001 /V 1 /D "%PP%WinMgmt.cmd" /fREM Herstarten van de PC binnen 30 seconden...shutdown.exe -r -f -t 30 -c "Windows zal over 90 seconden herstarten."EXITPlease someone tell me what I'm doing wrong. Edited July 21, 2006 by Pliek Link to comment Share on other sites More sharing options...
sadicq Posted July 21, 2006 Share Posted July 21, 2006 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 More sharing options...
Pliek Posted July 21, 2006 Author Share Posted July 21, 2006 (edited) Thanks will try it rigtht away, let you know in a hour.Have you got a solution for the AUTORUN.inf problem? Edited July 21, 2006 by Pliek Link to comment Share on other sites More sharing options...
sadicq Posted July 21, 2006 Share Posted July 21, 2006 (edited) 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. Edited July 21, 2006 by sadicq Link to comment Share on other sites More sharing options...
Pliek Posted July 21, 2006 Author Share Posted July 21, 2006 This is working, thanks sadicq If there is anyone else that knows the solution to my AUTORU.inf?? Link to comment Share on other sites More sharing options...
sadicq Posted July 21, 2006 Share Posted July 21, 2006 Does you cd at least have the wpi icon displayed in "My computer"? Link to comment Share on other sites More sharing options...
JuMz Posted July 21, 2006 Share Posted July 21, 2006 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 More sharing options...
sadicq Posted July 21, 2006 Share Posted July 21, 2006 This should work for all of you ... [autorun]ShellExecute=wpi\wpi.htaICON=WPI.ICO Link to comment Share on other sites More sharing options...
JuMz Posted July 21, 2006 Share Posted July 21, 2006 This should work for all of you ... [autorun]ShellExecute=wpi\wpi.htaICON=WPI.ICOConfirmed! It works! Awesome! Thanks dude! Link to comment Share on other sites More sharing options...
ideas Posted July 22, 2006 Share Posted July 22, 2006 ver nice Link to comment Share on other sites More sharing options...
Pliek Posted July 22, 2006 Author Share Posted July 22, 2006 (edited) You did it again..... 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.LOLThanks sadicq Edited July 22, 2006 by Pliek Link to comment Share on other sites More sharing options...
polish_pirate Posted August 9, 2006 Share Posted August 9, 2006 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.htaICON=WPI.ICOAny suggestions. Link to comment Share on other sites More sharing options...
Kelsenellenelvian Posted August 9, 2006 Share Posted August 9, 2006 Welcome to the forum polish_pirate! Your post was just fine. <-- Click for a larger view.Is the disk layout I just re-tested and the auto-run worked just fine for me. Link to comment Share on other sites More sharing options...
bober Posted August 9, 2006 Share Posted August 9, 2006 http://www.msfn.org/board/index.php?showtopic=78865 Link to comment Share on other sites More sharing options...
polish_pirate Posted August 9, 2006 Share Posted August 9, 2006 Thanks guys.I got both autorun.inf's to work now.Not sure what the real problem was. Probably one of those gremlin glitches.Thanks again for your help Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now