Jump to content

Recommended Posts

Posted

my programs install in a random order for some reason.

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 KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

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

REG ADD %KEY%\001 /VE /D "Acrobat Reader 7" /f
REG ADD %KEY%\001 /V 1 /D "%CDROM%\installs\acrobatreader\acrobatreader.exe" /f

REG ADD %KEY%\002 /VE /D "AdAware Professional 1.06" /f
REG ADD %KEY%\002 /V 1 /D "%CDROM%\installs\adaware\adaware.exe" /f

REG ADD %KEY%\003 /VE /D "ATI Control Panel" /f
REG ADD %KEY%\003 /V 1 /D "%CDROM%\installs\aticp\aticp.exe" /f

REG ADD %KEY%\004 /VE /D "BitComet 0.59" /f
REG ADD %KEY%\004 /V 1 /D "%CDROM%\installs\bitcomet\bitcomet.exe" /f

REG ADD %KEY%\005 /VE /D "CCleaner 1.22.142" /f
REG ADD %KEY%\005 /V 1 /D "%CDROM%\installs\ccleaner\ccleaner.exe" /f

REG ADD %KEY%\006 /VE /D "Firefox 1.06" /f
REG ADD %KEY%\006 /V 1 /D "%CDROM%\installs\firefox\firefox.exe" /f

REG ADD %KEY%\007 /VE /D "J2SE Runtime Environment 1.5.0.40" /f
REG ADD %KEY%\007 /V 1 /D "%CDROM%\installs\java\java.exe" /f

REG ADD %KEY%\008 /VE /D "Limewire PRO 4.9.23.1" /f
REG ADD %KEY%\008 /V 1 /D "%CDROM%\installs\limewire\limewire.exe" /f

REG ADD %KEY%\009 /VE /D "Microsoft Antispyware" /f
REG ADD %KEY%\009 /V 1 /D "%CDROM%\installs\msantispyware\msantispyware.exe" /f

REG ADD %KEY%\0010 /VE /D "NOD32" /f
REG ADD %KEY%\0010 /V 1 /D "%CDROM%\installs\nod32\nod32.exe" /f

REG ADD %KEY%\0011 /VE /D "PerfectDisk 7.0" /f
REG ADD %KEY%\0011 /V 1 /D "%CDROM%\installs\perfectdisk\perfectdisk.exe" /f

REG ADD %KEY%\0012 /VE /D "Spybot 1.4 " /f
REG ADD %KEY%\0012 /V 1 /D "%CDROM%\installs\spybot\spybot.exe" /f

REG ADD %KEY%\0013 /VE /D "Textpad 4.7.3" /f
REG ADD %KEY%\0013 /V 1 /D "%CDROM%\installs\textpad\textpad.exe" /f

REG ADD %KEY%\0014 /VE /D "Thunderbird 1.06" /f
REG ADD %KEY%\0014 /V 1 /D "%CDROM%\installs\thunderbird\thunderbird.exe" /f

REG ADD %KEY%\0015 /VE /D "VLC Media Player" /f
REG ADD %KEY%\0015 /V 1 /D "%CDROM%\installs\vlc\vlc.exe" /f

REG ADD %KEY%\0016 /VE /D "Winamp Pro 5.094" /f
REG ADD %KEY%\0016 /V 1 /D "%CDROM%\installs\winamp\winamp.exe" /f

REG ADD %KEY%\0017 /VE /D "WinRAR 3.50" /f
REG ADD %KEY%\0017 /V 1 /D "%CDROM%\installs\winrar\winrar.exe" /f

REG ADD %KEY%\0018 /VE /D "Daemon Tools 3.47" /f
REG ADD %KEY%\0018 /V 1 /D "%CDROM%\installs\daemontools\daemontools.exe" /f

REG ADD %KEY%\0019 /VE /D "Daemon Tools 3.47" /f
REG ADD %KEY%\0019 /V 1 /D "%CDROM%\installs\trillian\trillianinstall.exe" /f

REG ADD %KEY%\0050 /VE /D "Miscellaneous" /f
REG ADD %KEY%\0050 /V 1 /D "%CDROM%\installs\reg\desktop.exe" /f
REG ADD %KEY%\0050 /V 2 /D "%CDROM%\installs\reg\regtweaks.exe" /f
REG ADD %KEY%\0050 /V 3 /D "%CDROM%\installs\reg\startmenu.exe" /f

EXIT


Posted

Nah, not random. I agree with Incroyable HULK

The order will be

001
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
002
003
004
005
0050
006
007
008
009

The 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.

Posted (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 by ripken204
Posted

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.....

Posted
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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...