Jump to content

Recommended Posts

Posted

Hello,

So I am getting started on making a Windows DVD and had a few questions..

My main question deals witht he RunOnceEx.cmd

Ex.

REG ADD %KEY%\[B]030[/B] /VE /D "Installing Ad-aware 6 Professional" /f
REG ADD %KEY%\[B]030[/B] /V 1 /D "%systemdrive%\Install\Applications\Ad-aware\Ad-aware6Professional.exe" /f

I understand most of this but just do not know that the # means, and if there is any order to it

REG ADD %KEY%\030 .......... what does the 030 mean, I am looking at a Pre Existing RunOnceEx.cmd and I see the # in every line and it is always different..

Thanks!


Posted

the number is the order everything gets installed in.

The higher the number the later it goes.

1 is executed before 2. The 0's just so 10 doesn't come before 2 :)

Posted

Thanks!

Makes a lot of sense now..

Does the order of the software make a difference.

say Install office 2003 first then work you way down the list, or can one install the programs according to the alphabet?

:)

Posted

Those numbers are used as the key names in the RunOnceEx Registry key. The numbers aren't important in themselves. You could name them whatever you want but numbers are very convenient in this case. They will determine the order that your apps get installed.

REG ADD %KEY%\050 /VE /D "WinZip V9.0" /f
REG ADD %KEY%\050 /V 1 /D "\"%programfiles%\Winzip\Winzip9.exe\" -y" /f
REG ADD %KEY%\050 /V 2 /D "\"%programfiles%\WinZip\winzip32.exe\" /noqp /notip /autoinstall" /f
REG ADD %KEY%\050 /V 3 /D "REGEDIT /S \"%programfiles%\WinZip\WinZip.reg\"" /f


REG ADD %KEY%\060 /VE /D "Diskeeper 8.0" /f
REG ADD %KEY%\060 /V 1 /D "%systemdrive%\Install\Applications\diskeeper\Setup.exe /s /v/qn" /f


REG ADD %KEY%\065 /VE /D "Nero 6.0.0.0" /f
REG ADD %KEY%\065 /V 1 /D "%systemdrive%\Install\Applications\Nero\Nero.exe -y" /f
REG ADD %KEY%\065 /V 2 /D "%systemdrive%\Install\Applications\Nero\Setup.exe /SN=xxxx-xxxx-xxxx-xxxx-xxxx-xxxx /WRITE_SN /SILENT /NOREBOOT /NO_UI /NOCANCEL" /f

Here's part of my RunOnceEx.cmd.

/VE will set the default value of a particular key. /v {value name} just sets other values for a particular key. Again, numbers are used for convenience. It's common to group tasks that are related in the same key instead of making separate keys for every single thing that needs to be done. If you look at my winzip section, there are three values not including the default: /V 1 -Extracts my winzip archive, /V 2 Installs winzip and /V 3 imports a reg file with my serial. /VE will be used as the title in the RunOnceEx window that you see when you log on.

Here's a Screen Shot of my registry with the RunOnceEx Keys added.

Typically, people will count by five or ten to leave room to add things in between two keys.

Oh yeah,

1 is executed before 2. The 0's just so 10 doesn't come before 2  :rolleyes:

What he said :)

Posted
and if there is any order to it

As for the order, I have three notes:

1- If you install more than one archiving utility, make your favourite the last one. This is because each of them steals associations from others.

2- Install ACDSee the last to associate pics with it, if it's your favourite viewer.

3- Install antivirus programs last, if you use scripts like VBS or JS or any.

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