Jump to content

Recommended Posts

Posted

I've been using the start.cmd method for my multi CD installations. I want to experiment with the Runonceex.cmd method. I had some questions.

1)Do I just put runonceex.cmd instead of start.cmd in my cmdlines.txt file?

2) How do I make Runonceex.cmd work with multiple CDs. With Start.cmd, I would have it all a second CMD file, which would copy all the install files to the HD.

3) In the following example, (taken from the MSFN guide):

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

REG ADD %KEY%\005 /VE /D "Adobe Reader 6" /f
REG ADD %KEY%\005 /V 1 /D "%systemdrive%\apps\AdobeReader6\AR6.msi /qn"

REG ADD %KEY%\015 /VE /D "Alcohol 120" /f
REG ADD %KEY%\015 /V 1 /D "%systemdrive%\apps\alcohol\setup.exe /qn" /f
REG ADD %KEY%\015 /V 2 /D "REGEDIT /S %systemdrive%\apps\alcohol\register.reg" /f

Is the only reason that the numbers jump from 005 to 015, to show the increment of the numbers?

So fesibly, the code could read:

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

REG ADD %KEY%\005 /VE /D "Adobe Reader 6" /f
REG ADD %KEY%\005 /V 1 /D "%systemdrive%\apps\AdobeReader6\AR6.msi /qn"

REG ADD %KEY%\006 /VE /D "Alcohol 120" /f
REG ADD %KEY%\006 /V 1 /D "%systemdrive%\apps\alcohol\setup.exe /qn" /f
REG ADD %KEY%\006 /V 2 /D "REGEDIT /S %systemdrive%\apps\alcohol\register.reg" /f

right?


Posted

1. Yes (I guess you could split them half and half if you felt the need. . .)

2. I don't understand what you are asking. Both start.cmd and runonceex.cmd will copy to the hard drive and run the install from there unless you specify them to run from the cd.

3. You are right about this. The reason there are increments of 5 is so more software can be added later without having to renumber all the following installs.

:)

Posted

the answer is very simple. and the guide does mention why i guess

u where not able to read it.

lets say u want to add a new program to your list

if u hv it order 1 2 3 4 5 6

are u going to move all the numbering? no

that is why u leave spaces of 10 that is what i do.

to i might have 10 20 30

if i hv a program i can just inject it to 15 or 17 whatever

Posted
2. I don't understand what you are asking.  Both start.cmd and runonceex.cmd will copy to the hard drive and run the install from there unless you specify them to run from the cd.

OK..on my Start.cmd, the code is as follows:

ECHO Ejecting CD-ROM Drives...
ECHO Insert CD 2 of the installation and...
%systemdrive%\install\tools\cdr.exe close %CDROM%
PAUSE

SET CDROM2=
IF EXIST D:\install\applications.cmd SET CDROM2=D:
Echo CDROM2 is %CDROM2%

ECHO Please be patient while files are copied to your hard drive.
xcopy %CDROM2%\install %systemdrive%\install2\ /S /C /Q /H /Y
ECHO.
start /wait %systemdrive%\install2\applications.cmd

ECHO Ejecting CD-ROM Drives...
%systemdrive%\install\tools\cdr.exe open %CDROM%
ECHO Insert CD 3 of the installation and...
PAUSE



SET CDROM2=
IF EXIST D:\install\applications.cmd SET CDROM2=D:
Echo CDROM2 is %CDROM2%
ECHO Please be patient while files are copied to your hard drive.
xcopy %CDROM2%\install %systemdrive%\install3\ /S /C /Q /H /Y
ECHO.

start /wait %systemdrive%\install3\applications.cmd

So would I just take the same code, and insert it into the runonceex.cmd, where the CD change is?

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

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