dj_mix Posted November 22, 2007 Share Posted November 22, 2007 (edited) I can't seem to find out why my run once is not installing in the order I created it in my command.. Everything installs fine but not in the order I requested.. Any help would be appreciated..Some reason it show up wrong in post I attached the file.cmdow @ /HID@Echo OffFOR %%i IN (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:\win51ip.SP2 SET CDROM=%%i:SET PP=%cdrom%\AppsSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Programs" /fREG ADD %KEY%0 /VE /D "Nvidia Video Drivers" /fREG ADD %KEY%0 /V 1 /D "%PP%\nVidia\setup.exe -s -f2setup.iss" /fREG ADD %KEY%1 /VE /D "Conexant High Definition Audio Driver" /fREG ADD %KEY%1 /V 1 /D "%PP%\Audio\setup.exe -s" /fREG ADD %KEY%2 /VE /D "HDAUDIO Soft Data Fax Modem with SmartCP" /fREG ADD %KEY%2 /V 1 /D "%PP%\Modem\setup.exe -s" /fREG ADD %KEY%3 /VE /D "HP Quick Luanch Buttons" /fREG ADD %KEY%3 /V 1 /D "%PP%\Buttons\setup.exe -s -f2setup.iss" /fREG ADD %KEY%4 /VE /D "HP 1.3MP Web Cam" /fREG ADD %KEY%4 /V 1 /D "%PP%\WebCam\setup.exe -s -f2setup.iss" /fREG ADD %KEY%5 /VE /D "Intel PROWireless Drivers" /fREG ADD %KEY%5 /V 1 /D "%PP%\Wireless\DPInst32.EXE /S" /fREG ADD %KEY%6 /VE /D "Intel Chipset" /fREG ADD %KEY%6 /V 1 /D "%PP%\Intel\setup.exe -s" /fREG ADD %KEY%7 /VE /D "Ricoh 5in1 Card Reader" /fREG ADD %KEY%7 /V 1 /D "%PP%\Ricoh\setup.exe -s" /fREG ADD %KEY%8 /VE /D "Ulead PhotoImpact 8" /fREG ADD %KEY%8 /V 1 /D "%PP%\Impact\Impact8.exe -s" /fREG ADD %KEY%10 /VE /D "Diskeeper 8.0 Pro" /fREG ADD %KEY%10 /V 1 /D "%PP%\Dkeeper\Setup.msi /qn" /fREG ADD %KEY%11 /VE /D "WinRAR 3.2 Corporate" /fREG ADD %KEY%11 /V 1 /D "%PP%\Winrar\wrar362ce.exe /s" /fREG ADD %KEY%12 /VE /D "Symantec Antivirus Corporate.v10.0.2" /fREG ADD %KEY%12 /V 1 /D "%PP%\Nav\Nav10.1.5.5000.exe" /fREG ADD %KEY%13 /VE /D "Google Toolbar" /fREG ADD %KEY%13 /V 1 /D "%PP%\Toolbar\GoogleToolbarInstaller.exe /s /qn" /fREG ADD %KEY%14 /VE /D "MS Intelipoint 4.12" /fREG ADD %KEY%14 /V 1 /D "%PP%\Mouse\mouse.exe" /fREG ADD %KEY%15 /VE /D "Nero 7 Micro 7.5.9.0" /fREG ADD %KEY%15 /V 1 /D "%PP%\Nero\Nero-Lite-v7.5.9.0.exe" /fREG ADD %KEY%16 /VE /D "RoboForm Pro V5.0" /fREG ADD %KEY%16 /V 1 /D "%PP%\Roboform\Setup.exe" /fREG ADD %KEY%17 /VE /D "Shipping Assistant 3.0" /fREG ADD %KEY%17 /V 1 /D "%PP%\USPS\USPS.msi /qb" /fREG ADD %KEY%18 /VE /D "Dot Net 2.0" /fREG ADD %KEY%18 /V 1 /D "%PP%\Dotnet2\dotnet2.exe" /fREG ADD %KEY%19 /VE /D "Java" /fREG ADD %KEY%19 /V 1 /D "%PP%\Java\jre511.exe" /fREG ADD %KEY%20 /VE /D "Stand Alone Programs" /fREG ADD %KEY%20 /V 1 /D "%PP%\CuteFtp\CuteFtp.exe" /fREG ADD %KEY%20 /V 2 /D "%PP%\RegCleaner\RegCleaner.exe" /fREG ADD %KEY%20 /V 3 /D "%PP%\ShoWarez\ShoWarez.exe" /fREG ADD %KEY%20 /V 4 /D "%PP%\CdRecord\cdrecord.exe" /fREG ADD %KEY%20 /V 5 /D "%PP%\Winamp\Winamp.exe" /fREG ADD %KEY%21 /VE /D "Installing Favorites" /fREG ADD %KEY%21 /V 1 /D "%PP%\Favs\Favorites.exe" /fREG ADD %KEY%22 /VE /D "Installing Destop Icons" /fREG ADD %KEY%22 /V 1 /D "%PP%\Desktop\Desktop.exe" /fREG ADD %KEY%23 /VE /D "Installing Quick Launch Icons" /fREG ADD %KEY%23 /V 1 /D "%PP%\Qlaunch\Qlaunch.exe" /fREG ADD %KEY%24 /VE /D "Start-Up Links" /fREG ADD %KEY%24 /V 1 /D "%PP%\Startup\startup2.exe" /fREG ADD %KEY%25 /VE /D "Dream Weaver 8" /fREG ADD %KEY%25 /V 1 /D "%PP%\DreamW8\Dream.msi /qb- REBOOT=REALLYSUPPRESS" /fREG ADD %KEY%25 /V 2 /D "%SYSTEMROOT%\REGEDIT.EXE /S %PP%\DreamW8\Dream.reg" /fREG ADD %KEY%25 /V 3 /D "%PP%\DreamW8\Dream.exe" /fREG ADD %KEY%26 /VE /D "Importing Registry Tweaks" /fREG ADD %KEY%26 /V 1 /D "%SYSTEMROOT%\REGEDIT.EXE /S %PP%\Tweaks\Tweaks.reg" /fREG ADD %KEY%26 /V 2 /D "%SYSTEMROOT%\REGEDIT.EXE /S %PP%\Tweaks\CuteFtp.reg" /fREG ADD %KEY%26 /V 3 /D "%SYSTEMROOT%\REGEDIT.EXE /S %PP%\Tweaks\speedfan.reg" /fREG ADD %KEY%26 /V 4 /D "%PP%\Tweaks\ie.exe" /fREG ADD %KEY%27 /VE /D "TVU Player" /fREG ADD %KEY%27 /V 1 /D "%PP%\TVUPlayer\Setup.exe /S /D=C:\TVUPlayer" /fREG ADD %KEY%28 /VE /D "AIDA32 Enterprise System Info 3.93 " /fREG ADD %KEY%28 /V 1 /D "%PP%\AIDA\AIDA.exe" /fREG ADD %KEY%30 /VE /D "Office 2003" /fREG ADD %KEY%30 /V 1 /D "%PP%\Office\setup.exe TRANSFORMS=Unattended.MST /qb-" /fREG ADD %KEY%31 /VE /D "Acrobat Pro.708" /fREG ADD %KEY%31 /V 1 /D "%PP%\AcrobatPro.708\AcroPro.msi TRANSFORMS=AcroPro.mst /qb /norestart" /fREG ADD %KEY%32 /VE /D "WinWall V2.1" /fREG ADD %KEY%32 /V 1 /D "%PP%\Winwall\winwall_setup.exe /VERYSILENT /SP- /DIR=C:\Winwall /NORESTART" /fEXITRunOnceEx.cmd Edited November 22, 2007 by dj_mix Link to comment Share on other sites More sharing options...
Arie Posted November 22, 2007 Share Posted November 22, 2007 It installs in the order that you specified But yes, not in the order that you wrote it down Keep in mind that the order which you actually specified is 1, 11, 12, 13, 2, 3, 34, et cetera, due to the sorting order in Windows. If you want to have all entries install in the order in which you wrote it down above, use leading zero's: 001, 002, 003, 011, 012, 020, et cetera. Hope this helped Link to comment Share on other sites More sharing options...
phkninja Posted November 22, 2007 Share Posted November 22, 2007 (edited) emmmm should that not becmdow @ /HID@Echo OffFOR %%i IN (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:\win51ip.SP2 SET CDROM=%%i:SET PP=%cdrom%\AppsSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Programs" /fREG ADD %KEY% /VE /D "Nvidia Video Drivers" /fREG ADD %KEY% /V 1 /D "%PP%\nVidia\setup.exe -s -f2setup.iss" /fREG ADD %KEY%\1 /VE /D "Conexant High Definition Audio Driver" /fREG ADD %KEY%\1 /V 1 /D "%PP%\Audio\setup.exe -s" /fREG ADD %KEY%\2 /VE /D "HDAUDIO Soft Data Fax Modem with SmartCP" /fREG ADD %KEY%\2 /V 1 /D "%PP%\Modem\setup.exe -s" /fREG ADD %KEY%\3 /VE /D "HP Quick Luanch Buttons" /fREG ADD %KEY%\3 /V 1 /D "%PP%\Buttons\setup.exe -s -f2setup.iss" /fREG ADD %KEY%\4 /VE /D "HP 1.3MP Web Cam" /fREG ADD %KEY%\4 /V 1 /D "%PP%\WebCam\setup.exe -s -f2setup.iss" /fREG ADD %KEY%\5 /VE /D "Intel PROWireless Drivers" /fREG ADD %KEY%\5 /V 1 /D "%PP%\Wireless\DPInst32.EXE /S" /fREG ADD %KEY%\6 /VE /D "Intel Chipset" /fREG ADD %KEY%\6 /V 1 /D "%PP%\Intel\setup.exe -s" /fREG ADD %KEY%\7 /VE /D "Ricoh 5in1 Card Reader" /fREG ADD %KEY%\7 /V 1 /D "%PP%\Ricoh\setup.exe -s" /fREG ADD %KEY%\8 /VE /D "Ulead PhotoImpact 8" /fREG ADD %KEY%\8 /V 1 /D "%PP%\Impact\Impact8.exe -s" /fREG ADD %KEY%\10 /VE /D "Diskeeper 8.0 Pro" /fREG ADD %KEY%\10 /V 1 /D "%PP%\Dkeeper\Setup.msi /qn" /fREG ADD %KEY%\11 /VE /D "WinRAR 3.2 Corporate" /fREG ADD %KEY%\11 /V 1 /D "%PP%\Winrar\wrar362ce.exe /s" /fREG ADD %KEY%\12 /VE /D "Symantec Antivirus Corporate.v10.0.2" /fREG ADD %KEY%\12 /V 1 /D "%PP%\Nav\Nav10.1.5.5000.exe" /fREG ADD %KEY%\13 /VE /D "Google Toolbar" /fREG ADD %KEY%\13 /V 1 /D "%PP%\Toolbar\GoogleToolbarInstaller.exe /s /qn" /fREG ADD %KEY%\14 /VE /D "MS Intelipoint 4.12" /fREG ADD %KEY%\14 /V 1 /D "%PP%\Mouse\mouse.exe" /fREG ADD %KEY%\15 /VE /D "Nero 7 Micro 7.5.9.0" /fREG ADD %KEY%\15 /V 1 /D "%PP%\Nero\Nero-Lite-v7.5.9.0.exe" /fREG ADD %KEY%\16 /VE /D "RoboForm Pro V5.0" /fREG ADD %KEY%\16 /V 1 /D "%PP%\Roboform\Setup.exe" /fREG ADD %KEY%\17 /VE /D "Shipping Assistant 3.0" /fREG ADD %KEY%\17 /V 1 /D "%PP%\USPS\USPS.msi /qb" /fREG ADD %KEY%\18 /VE /D "Dot Net 2.0" /fREG ADD %KEY%\18 /V 1 /D "%PP%\Dotnet2\dotnet2.exe" /fREG ADD %KEY%\19 /VE /D "Java" /fREG ADD %KEY%\19 /V 1 /D "%PP%\Java\jre511.exe" /fREG ADD %KEY%\20 /VE /D "Stand Alone Programs" /fREG ADD %KEY%\20 /V 1 /D "%PP%\CuteFtp\CuteFtp.exe" /fREG ADD %KEY%\20 /V 2 /D "%PP%\RegCleaner\RegCleaner.exe" /fREG ADD %KEY%\20 /V 3 /D "%PP%\ShoWarez\ShoWarez.exe" /fREG ADD %KEY%\20 /V 4 /D "%PP%\CdRecord\cdrecord.exe" /fREG ADD %KEY%\20 /V 5 /D "%PP%\Winamp\Winamp.exe" /fREG ADD %KEY%\21 /VE /D "Installing Favorites" /fREG ADD %KEY%\21 /V 1 /D "%PP%\Favs\Favorites.exe" /fREG ADD %KEY%\22 /VE /D "Installing Destop Icons" /fREG ADD %KEY%\22 /V 1 /D "%PP%\Desktop\Desktop.exe" /fREG ADD %KEY%\23 /VE /D "Installing Quick Launch Icons" /fREG ADD %KEY%\23 /V 1 /D "%PP%\Qlaunch\Qlaunch.exe" /fREG ADD %KEY%\24 /VE /D "Start-Up Links" /fREG ADD %KEY%\24 /V 1 /D "%PP%\Startup\startup2.exe" /fREG ADD %KEY%\25 /VE /D "Dream Weaver 8" /fREG ADD %KEY%\25 /V 1 /D "%PP%\DreamW8\Dream.msi /qb- REBOOT=REALLYSUPPRESS" /fREG ADD %KEY%\25 /V 2 /D "%SYSTEMROOT%\REGEDIT.EXE /S %PP%\DreamW8\Dream.reg" /fREG ADD %KEY%\25 /V 3 /D "%PP%\DreamW8\Dream.exe" /fREG ADD %KEY%\26 /VE /D "Importing Registry Tweaks" /fREG ADD %KEY%\26 /V 1 /D "%SYSTEMROOT%\REGEDIT.EXE /S %PP%\Tweaks\Tweaks.reg" /fREG ADD %KEY%\26 /V 2 /D "%SYSTEMROOT%\REGEDIT.EXE /S %PP%\Tweaks\CuteFtp.reg" /fREG ADD %KEY%\26 /V 3 /D "%SYSTEMROOT%\REGEDIT.EXE /S %PP%\Tweaks\speedfan.reg" /fREG ADD %KEY%\26 /V 4 /D "%PP%\Tweaks\ie.exe" /fREG ADD %KEY%\27 /VE /D "TVU Player" /fREG ADD %KEY%\27 /V 1 /D "%PP%\TVUPlayer\Setup.exe /S /D=C:\TVUPlayer" /fREG ADD %KEY%\28 /VE /D "AIDA32 Enterprise System Info 3.93 " /fREG ADD %KEY%\28 /V 1 /D "%PP%\AIDA\AIDA.exe" /fREG ADD %KEY%\30 /VE /D "Office 2003" /fREG ADD %KEY%\30 /V 1 /D "%PP%\Office\setup.exe TRANSFORMS=Unattended.MST /qb-" /fREG ADD %KEY%\31 /VE /D "Acrobat Pro.708" /fREG ADD %KEY%\31 /V 1 /D "%PP%\AcrobatPro.708\AcroPro.msi TRANSFORMS=AcroPro.mst /qb /norestart" /fREG ADD %KEY%\32 /VE /D "WinWall V2.1" /fREG ADD %KEY%\32 /V 1 /D "%PP%\Winwall\winwall_setup.exe /VERYSILENT /SP- /DIR=C:\Winwall /NORESTART" /fEXITaccording to the unattaned guide examples, you were missing an all important \ between %KEY% and the number. Without this \ you will getREG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx1REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx2REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx3etcafter the %KEY% is expanded during processing. Also as Arie already said they will run as 1,10,11,12...2,20,21... if you dont put 0 (or another character like a befor the digit) Edited November 22, 2007 by phkninja Link to comment Share on other sites More sharing options...
dj_mix Posted November 22, 2007 Author Share Posted November 22, 2007 Will try the 000 format and report back thanx.. Link to comment Share on other sites More sharing options...
Yzöwl Posted November 22, 2007 Share Posted November 22, 2007 according to the unattaned guide examples, you were missing an all important \ between %KEY% and the number.No this is an error caused by the forum software and some browsers, I'm sure that those backslashes existed before posting. Link to comment Share on other sites More sharing options...
wigadore Posted November 22, 2007 Share Posted November 22, 2007 @dj_mixArie is 100% correct. Use the 000 numbering scheme and all your installs will go in order as you want. Link to comment Share on other sites More sharing options...
dj_mix Posted November 22, 2007 Author Share Posted November 22, 2007 yes only modify to the 000 format and works great !!! 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