ripken204 Posted September 8, 2005 Posted September 8, 2005 my programs install in a random order for some reason.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 KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Applications" /fREG ADD %KEY%\001 /VE /D "Acrobat Reader 7" /fREG ADD %KEY%\001 /V 1 /D "%CDROM%\installs\acrobatreader\acrobatreader.exe" /fREG ADD %KEY%\002 /VE /D "AdAware Professional 1.06" /fREG ADD %KEY%\002 /V 1 /D "%CDROM%\installs\adaware\adaware.exe" /fREG ADD %KEY%\003 /VE /D "ATI Control Panel" /fREG ADD %KEY%\003 /V 1 /D "%CDROM%\installs\aticp\aticp.exe" /fREG ADD %KEY%\004 /VE /D "BitComet 0.59" /fREG ADD %KEY%\004 /V 1 /D "%CDROM%\installs\bitcomet\bitcomet.exe" /fREG ADD %KEY%\005 /VE /D "CCleaner 1.22.142" /fREG ADD %KEY%\005 /V 1 /D "%CDROM%\installs\ccleaner\ccleaner.exe" /fREG ADD %KEY%\006 /VE /D "Firefox 1.06" /fREG ADD %KEY%\006 /V 1 /D "%CDROM%\installs\firefox\firefox.exe" /fREG ADD %KEY%\007 /VE /D "J2SE Runtime Environment 1.5.0.40" /fREG ADD %KEY%\007 /V 1 /D "%CDROM%\installs\java\java.exe" /fREG ADD %KEY%\008 /VE /D "Limewire PRO 4.9.23.1" /fREG ADD %KEY%\008 /V 1 /D "%CDROM%\installs\limewire\limewire.exe" /fREG ADD %KEY%\009 /VE /D "Microsoft Antispyware" /fREG ADD %KEY%\009 /V 1 /D "%CDROM%\installs\msantispyware\msantispyware.exe" /fREG ADD %KEY%\0010 /VE /D "NOD32" /fREG ADD %KEY%\0010 /V 1 /D "%CDROM%\installs\nod32\nod32.exe" /fREG ADD %KEY%\0011 /VE /D "PerfectDisk 7.0" /fREG ADD %KEY%\0011 /V 1 /D "%CDROM%\installs\perfectdisk\perfectdisk.exe" /fREG ADD %KEY%\0012 /VE /D "Spybot 1.4 " /fREG ADD %KEY%\0012 /V 1 /D "%CDROM%\installs\spybot\spybot.exe" /fREG ADD %KEY%\0013 /VE /D "Textpad 4.7.3" /fREG ADD %KEY%\0013 /V 1 /D "%CDROM%\installs\textpad\textpad.exe" /fREG ADD %KEY%\0014 /VE /D "Thunderbird 1.06" /fREG ADD %KEY%\0014 /V 1 /D "%CDROM%\installs\thunderbird\thunderbird.exe" /fREG ADD %KEY%\0015 /VE /D "VLC Media Player" /fREG ADD %KEY%\0015 /V 1 /D "%CDROM%\installs\vlc\vlc.exe" /fREG ADD %KEY%\0016 /VE /D "Winamp Pro 5.094" /fREG ADD %KEY%\0016 /V 1 /D "%CDROM%\installs\winamp\winamp.exe" /fREG ADD %KEY%\0017 /VE /D "WinRAR 3.50" /fREG ADD %KEY%\0017 /V 1 /D "%CDROM%\installs\winrar\winrar.exe" /fREG ADD %KEY%\0018 /VE /D "Daemon Tools 3.47" /fREG ADD %KEY%\0018 /V 1 /D "%CDROM%\installs\daemontools\daemontools.exe" /fREG ADD %KEY%\0019 /VE /D "Daemon Tools 3.47" /fREG ADD %KEY%\0019 /V 1 /D "%CDROM%\installs\trillian\trillianinstall.exe" /fREG ADD %KEY%\0050 /VE /D "Miscellaneous" /fREG ADD %KEY%\0050 /V 1 /D "%CDROM%\installs\reg\desktop.exe" /fREG ADD %KEY%\0050 /V 2 /D "%CDROM%\installs\reg\regtweaks.exe" /fREG ADD %KEY%\0050 /V 3 /D "%CDROM%\installs\reg\startmenu.exe" /fEXIT
Incroyable HULK Posted September 9, 2005 Posted September 9, 2005 too much zero!isn't 0010 executed before 001 ?
MHz Posted September 9, 2005 Posted September 9, 2005 Nah, not random. I agree with Incroyable HULKThe order will be00100100011001200130014001500160017001800190020030040050050006007008009The preceding 0s does affect the order. Use the same amount of digits for each entry. If you have less then 100 entries, then 3 digits will be fine. More then 100 but less then 1000, then 4 would be good.
ripken204 Posted September 9, 2005 Author Posted September 9, 2005 (edited) okay, i was just following the guide(gues i rly screwd it up), so i should do like 10,11,12,13,etc? Edited September 9, 2005 by ripken204
MHz Posted September 9, 2005 Posted September 9, 2005 You could do that. That is 2 digits for each entry that you show.i.e. 01,02,03,04,05....14,15,16,17.....
benners Posted September 9, 2005 Posted September 9, 2005 okay, i was just following the guide(gues i rly screwd it up), so i should do like 10,11,12,13,etc?When I used to use RunOnce I always incremented in 5s, i.e. 005, 010, 015 that way if I added new programs I didn't need to keep altering the numbers of the ones already there
ripken204 Posted September 9, 2005 Author Posted September 9, 2005 thats wut the gued said, i just added some extra 0's b/c i wasnt paying attention or something like that
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