Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

RunOnce Installation Out of Order ! Why

- - - - -

  • Please log in to reply
6 replies to this topic

#1
dj_mix

dj_mix

    Newbie

  • Member
  • 11 posts
  • Joined 29-December 06
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

Attached Files


Edited by dj_mix, 22 November 2007 - 06:15 AM.



How to remove advertisement from MSFN

#2
Arie

Arie

    One Man Army

  • Member
  • PipPipPipPipPip
  • 835 posts
  • Joined 27-August 07
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 :)
Not trying to pretend the enemy that I am.

#3
phkninja

phkninja

    Advanced Member

  • Member
  • PipPipPip
  • 466 posts
  • Joined 28-February 05
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, 22 November 2007 - 09:35 AM.


#4
dj_mix

dj_mix

    Newbie

  • Member
  • 11 posts
  • Joined 29-December 06
Will try the 000 format and report back thanx..

#5
Yzöwl

Yzöwl

    Wise Owl

  • Super Moderator
  • 4,598 posts
  • Joined 13-October 04
  • OS:Windows 7 x64
  • Country: Country Flag

Donator

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.

#6
wigadore

wigadore

    Newbie

  • Member
  • 31 posts
  • Joined 28-January 05
@dj_mix
Arie is 100% correct. Use the 000 numbering scheme and all your installs will go in order as you want.

#7
dj_mix

dj_mix

    Newbie

  • Member
  • 11 posts
  • Joined 29-December 06
yes only modify to the 000 format and works great !!!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users