• Announcements

    • xper

      MSFN Sponsorship and AdBlockers!   07/10/2016

      Dear members, MSFN is made available via subscriptions, donations and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, become a site sponsor and ads will be disabled automatically and by subscribing you get other sponsor benefits.
Sign in to follow this  
Followers 0
dj_mix

RunOnce Installation Out of Order ! Why

7 posts in this topic

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 Off

FOR %%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%\Apps

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "Installing Programs" /f

REG ADD %KEY%0 /VE /D "Nvidia Video Drivers" /f

REG ADD %KEY%0 /V 1 /D "%PP%\nVidia\setup.exe -s -f2setup.iss" /f

REG ADD %KEY%1 /VE /D "Conexant High Definition Audio Driver" /f

REG ADD %KEY%1 /V 1 /D "%PP%\Audio\setup.exe -s" /f

REG ADD %KEY%2 /VE /D "HDAUDIO Soft Data Fax Modem with SmartCP" /f

REG ADD %KEY%2 /V 1 /D "%PP%\Modem\setup.exe -s" /f

REG ADD %KEY%3 /VE /D "HP Quick Luanch Buttons" /f

REG ADD %KEY%3 /V 1 /D "%PP%\Buttons\setup.exe -s -f2setup.iss" /f

REG ADD %KEY%4 /VE /D "HP 1.3MP Web Cam" /f

REG ADD %KEY%4 /V 1 /D "%PP%\WebCam\setup.exe -s -f2setup.iss" /f

REG ADD %KEY%5 /VE /D "Intel PROWireless Drivers" /f

REG ADD %KEY%5 /V 1 /D "%PP%\Wireless\DPInst32.EXE /S" /f

REG ADD %KEY%6 /VE /D "Intel Chipset" /f

REG ADD %KEY%6 /V 1 /D "%PP%\Intel\setup.exe -s" /f

REG ADD %KEY%7 /VE /D "Ricoh 5in1 Card Reader" /f

REG ADD %KEY%7 /V 1 /D "%PP%\Ricoh\setup.exe -s" /f

REG ADD %KEY%8 /VE /D "Ulead PhotoImpact 8" /f

REG ADD %KEY%8 /V 1 /D "%PP%\Impact\Impact8.exe -s" /f

REG ADD %KEY%10 /VE /D "Diskeeper 8.0 Pro" /f

REG ADD %KEY%10 /V 1 /D "%PP%\Dkeeper\Setup.msi /qn" /f

REG ADD %KEY%11 /VE /D "WinRAR 3.2 Corporate" /f

REG ADD %KEY%11 /V 1 /D "%PP%\Winrar\wrar362ce.exe /s" /f

REG ADD %KEY%12 /VE /D "Symantec Antivirus Corporate.v10.0.2" /f

REG ADD %KEY%12 /V 1 /D "%PP%\Nav\Nav10.1.5.5000.exe" /f

REG ADD %KEY%13 /VE /D "Google Toolbar" /f

REG ADD %KEY%13 /V 1 /D "%PP%\Toolbar\GoogleToolbarInstaller.exe /s /qn" /f

REG ADD %KEY%14 /VE /D "MS Intelipoint 4.12" /f

REG ADD %KEY%14 /V 1 /D "%PP%\Mouse\mouse.exe" /f

REG ADD %KEY%15 /VE /D "Nero 7 Micro 7.5.9.0" /f

REG ADD %KEY%15 /V 1 /D "%PP%\Nero\Nero-Lite-v7.5.9.0.exe" /f

REG ADD %KEY%16 /VE /D "RoboForm Pro V5.0" /f

REG ADD %KEY%16 /V 1 /D "%PP%\Roboform\Setup.exe" /f

REG ADD %KEY%17 /VE /D "Shipping Assistant 3.0" /f

REG ADD %KEY%17 /V 1 /D "%PP%\USPS\USPS.msi /qb" /f

REG ADD %KEY%18 /VE /D "Dot Net 2.0" /f

REG ADD %KEY%18 /V 1 /D "%PP%\Dotnet2\dotnet2.exe" /f

REG ADD %KEY%19 /VE /D "Java" /f

REG ADD %KEY%19 /V 1 /D "%PP%\Java\jre511.exe" /f

REG ADD %KEY%20 /VE /D "Stand Alone Programs" /f

REG ADD %KEY%20 /V 1 /D "%PP%\CuteFtp\CuteFtp.exe" /f

REG ADD %KEY%20 /V 2 /D "%PP%\RegCleaner\RegCleaner.exe" /f

REG ADD %KEY%20 /V 3 /D "%PP%\ShoWarez\ShoWarez.exe" /f

REG ADD %KEY%20 /V 4 /D "%PP%\CdRecord\cdrecord.exe" /f

REG ADD %KEY%20 /V 5 /D "%PP%\Winamp\Winamp.exe" /f

REG ADD %KEY%21 /VE /D "Installing Favorites" /f

REG ADD %KEY%21 /V 1 /D "%PP%\Favs\Favorites.exe" /f

REG ADD %KEY%22 /VE /D "Installing Destop Icons" /f

REG ADD %KEY%22 /V 1 /D "%PP%\Desktop\Desktop.exe" /f

REG ADD %KEY%23 /VE /D "Installing Quick Launch Icons" /f

REG ADD %KEY%23 /V 1 /D "%PP%\Qlaunch\Qlaunch.exe" /f

REG ADD %KEY%24 /VE /D "Start-Up Links" /f

REG ADD %KEY%24 /V 1 /D "%PP%\Startup\startup2.exe" /f

REG ADD %KEY%25 /VE /D "Dream Weaver 8" /f

REG ADD %KEY%25 /V 1 /D "%PP%\DreamW8\Dream.msi /qb- REBOOT=REALLYSUPPRESS" /f

REG ADD %KEY%25 /V 2 /D "%SYSTEMROOT%\REGEDIT.EXE /S %PP%\DreamW8\Dream.reg" /f

REG ADD %KEY%25 /V 3 /D "%PP%\DreamW8\Dream.exe" /f

REG ADD %KEY%26 /VE /D "Importing Registry Tweaks" /f

REG ADD %KEY%26 /V 1 /D "%SYSTEMROOT%\REGEDIT.EXE /S %PP%\Tweaks\Tweaks.reg" /f

REG ADD %KEY%26 /V 2 /D "%SYSTEMROOT%\REGEDIT.EXE /S %PP%\Tweaks\CuteFtp.reg" /f

REG ADD %KEY%26 /V 3 /D "%SYSTEMROOT%\REGEDIT.EXE /S %PP%\Tweaks\speedfan.reg" /f

REG ADD %KEY%26 /V 4 /D "%PP%\Tweaks\ie.exe" /f

REG ADD %KEY%27 /VE /D "TVU Player" /f

REG ADD %KEY%27 /V 1 /D "%PP%\TVUPlayer\Setup.exe /S /D=C:\TVUPlayer" /f

REG ADD %KEY%28 /VE /D "AIDA32 Enterprise System Info 3.93 " /f

REG ADD %KEY%28 /V 1 /D "%PP%\AIDA\AIDA.exe" /f

REG ADD %KEY%30 /VE /D "Office 2003" /f

REG ADD %KEY%30 /V 1 /D "%PP%\Office\setup.exe TRANSFORMS=Unattended.MST /qb-" /f

REG ADD %KEY%31 /VE /D "Acrobat Pro.708" /f

REG ADD %KEY%31 /V 1 /D "%PP%\AcrobatPro.708\AcroPro.msi TRANSFORMS=AcroPro.mst /qb /norestart" /f

REG ADD %KEY%32 /VE /D "WinWall V2.1" /f

REG ADD %KEY%32 /V 1 /D "%PP%\Winwall\winwall_setup.exe /VERYSILENT /SP- /DIR=C:\Winwall /NORESTART" /f

EXIT

RunOnceEx.cmd

Edited by dj_mix
0

Share this post


Link to post
Share on other sites

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 :)

0

Share this post


Link to post
Share on other sites

emmmm should that not be

cmdow @ /HID
@Echo Off

FOR %%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%\Apps

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "Installing Programs" /f

REG ADD %KEY% /VE /D "Nvidia Video Drivers" /f
REG ADD %KEY% /V 1 /D "%PP%\nVidia\setup.exe -s -f2setup.iss" /f

REG ADD %KEY%\1 /VE /D "Conexant High Definition Audio Driver" /f
REG ADD %KEY%\1 /V 1 /D "%PP%\Audio\setup.exe -s" /f

REG ADD %KEY%\2 /VE /D "HDAUDIO Soft Data Fax Modem with SmartCP" /f
REG ADD %KEY%\2 /V 1 /D "%PP%\Modem\setup.exe -s" /f

REG ADD %KEY%\3 /VE /D "HP Quick Luanch Buttons" /f
REG ADD %KEY%\3 /V 1 /D "%PP%\Buttons\setup.exe -s -f2setup.iss" /f

REG ADD %KEY%\4 /VE /D "HP 1.3MP Web Cam" /f
REG ADD %KEY%\4 /V 1 /D "%PP%\WebCam\setup.exe -s -f2setup.iss" /f

REG ADD %KEY%\5 /VE /D "Intel PROWireless Drivers" /f
REG ADD %KEY%\5 /V 1 /D "%PP%\Wireless\DPInst32.EXE /S" /f

REG ADD %KEY%\6 /VE /D "Intel Chipset" /f
REG ADD %KEY%\6 /V 1 /D "%PP%\Intel\setup.exe -s" /f

REG ADD %KEY%\7 /VE /D "Ricoh 5in1 Card Reader" /f
REG ADD %KEY%\7 /V 1 /D "%PP%\Ricoh\setup.exe -s" /f

REG ADD %KEY%\8 /VE /D "Ulead PhotoImpact 8" /f
REG ADD %KEY%\8 /V 1 /D "%PP%\Impact\Impact8.exe -s" /f

REG ADD %KEY%\10 /VE /D "Diskeeper 8.0 Pro" /f
REG ADD %KEY%\10 /V 1 /D "%PP%\Dkeeper\Setup.msi /qn" /f

REG ADD %KEY%\11 /VE /D "WinRAR 3.2 Corporate" /f
REG ADD %KEY%\11 /V 1 /D "%PP%\Winrar\wrar362ce.exe /s" /f

REG ADD %KEY%\12 /VE /D "Symantec Antivirus Corporate.v10.0.2" /f
REG ADD %KEY%\12 /V 1 /D "%PP%\Nav\Nav10.1.5.5000.exe" /f

REG ADD %KEY%\13 /VE /D "Google Toolbar" /f
REG ADD %KEY%\13 /V 1 /D "%PP%\Toolbar\GoogleToolbarInstaller.exe /s /qn" /f

REG ADD %KEY%\14 /VE /D "MS Intelipoint 4.12" /f
REG ADD %KEY%\14 /V 1 /D "%PP%\Mouse\mouse.exe" /f

REG ADD %KEY%\15 /VE /D "Nero 7 Micro 7.5.9.0" /f
REG ADD %KEY%\15 /V 1 /D "%PP%\Nero\Nero-Lite-v7.5.9.0.exe" /f

REG ADD %KEY%\16 /VE /D "RoboForm Pro V5.0" /f
REG ADD %KEY%\16 /V 1 /D "%PP%\Roboform\Setup.exe" /f

REG ADD %KEY%\17 /VE /D "Shipping Assistant 3.0" /f
REG ADD %KEY%\17 /V 1 /D "%PP%\USPS\USPS.msi /qb" /f

REG ADD %KEY%\18 /VE /D "Dot Net 2.0" /f
REG ADD %KEY%\18 /V 1 /D "%PP%\Dotnet2\dotnet2.exe" /f

REG ADD %KEY%\19 /VE /D "Java" /f
REG ADD %KEY%\19 /V 1 /D "%PP%\Java\jre511.exe" /f

REG ADD %KEY%\20 /VE /D "Stand Alone Programs" /f
REG ADD %KEY%\20 /V 1 /D "%PP%\CuteFtp\CuteFtp.exe" /f
REG ADD %KEY%\20 /V 2 /D "%PP%\RegCleaner\RegCleaner.exe" /f
REG ADD %KEY%\20 /V 3 /D "%PP%\ShoWarez\ShoWarez.exe" /f
REG ADD %KEY%\20 /V 4 /D "%PP%\CdRecord\cdrecord.exe" /f
REG ADD %KEY%\20 /V 5 /D "%PP%\Winamp\Winamp.exe" /f

REG ADD %KEY%\21 /VE /D "Installing Favorites" /f
REG ADD %KEY%\21 /V 1 /D "%PP%\Favs\Favorites.exe" /f

REG ADD %KEY%\22 /VE /D "Installing Destop Icons" /f
REG ADD %KEY%\22 /V 1 /D "%PP%\Desktop\Desktop.exe" /f

REG ADD %KEY%\23 /VE /D "Installing Quick Launch Icons" /f
REG ADD %KEY%\23 /V 1 /D "%PP%\Qlaunch\Qlaunch.exe" /f

REG ADD %KEY%\24 /VE /D "Start-Up Links" /f
REG ADD %KEY%\24 /V 1 /D "%PP%\Startup\startup2.exe" /f

REG ADD %KEY%\25 /VE /D "Dream Weaver 8" /f
REG ADD %KEY%\25 /V 1 /D "%PP%\DreamW8\Dream.msi /qb- REBOOT=REALLYSUPPRESS" /f
REG ADD %KEY%\25 /V 2 /D "%SYSTEMROOT%\REGEDIT.EXE /S %PP%\DreamW8\Dream.reg" /f
REG ADD %KEY%\25 /V 3 /D "%PP%\DreamW8\Dream.exe" /f

REG ADD %KEY%\26 /VE /D "Importing Registry Tweaks" /f
REG ADD %KEY%\26 /V 1 /D "%SYSTEMROOT%\REGEDIT.EXE /S %PP%\Tweaks\Tweaks.reg" /f
REG ADD %KEY%\26 /V 2 /D "%SYSTEMROOT%\REGEDIT.EXE /S %PP%\Tweaks\CuteFtp.reg" /f
REG ADD %KEY%\26 /V 3 /D "%SYSTEMROOT%\REGEDIT.EXE /S %PP%\Tweaks\speedfan.reg" /f
REG ADD %KEY%\26 /V 4 /D "%PP%\Tweaks\ie.exe" /f

REG ADD %KEY%\27 /VE /D "TVU Player" /f
REG ADD %KEY%\27 /V 1 /D "%PP%\TVUPlayer\Setup.exe /S /D=C:\TVUPlayer" /f

REG ADD %KEY%\28 /VE /D "AIDA32 Enterprise System Info 3.93 " /f
REG ADD %KEY%\28 /V 1 /D "%PP%\AIDA\AIDA.exe" /f

REG ADD %KEY%\30 /VE /D "Office 2003" /f
REG ADD %KEY%\30 /V 1 /D "%PP%\Office\setup.exe TRANSFORMS=Unattended.MST /qb-" /f

REG ADD %KEY%\31 /VE /D "Acrobat Pro.708" /f
REG ADD %KEY%\31 /V 1 /D "%PP%\AcrobatPro.708\AcroPro.msi TRANSFORMS=AcroPro.mst /qb /norestart" /f

REG ADD %KEY%\32 /VE /D "WinWall V2.1" /f
REG ADD %KEY%\32 /V 1 /D "%PP%\Winwall\winwall_setup.exe /VERYSILENT /SP- /DIR=C:\Winwall /NORESTART" /f
EXIT

according to the unattaned guide examples, you were missing an all important \ between %KEY% and the number. Without this \ you will get

REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx1
REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx2
REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx3
etc

after 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 by phkninja
0

Share this post


Link to post
Share on other sites
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.
0

Share this post


Link to post
Share on other sites

@dj_mix

Arie is 100% correct. Use the 000 numbering scheme and all your installs will go in order as you want.

0

Share this post


Link to post
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
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.