Jump to content

RunOnceEx and Multi-CD


nodiaque

Recommended Posts

Hi, I used to make my unatended installation with [GuiRunOnce] and a batch file but I just discovered the RunOnceEx method. Now, I have a 2 cd installation, 1 for windows and app, the other for Office 2k3. Now, I was wondering how can I make a "cd switch" in RunOnceEx so it ask for second cd and install afterward...

This is how I used to make it in [GuiRunOnce]:

ECHO.
ECHO Ejecting CD-ROM Drives...
ECHO If you are using a cd rom please remove it from
ECHO the cdrom drive and If you have a second cd place
ECHO it in the drive at this time please.
ECHO.
ECHO Wait till the cdrom drive quits blinking
ECHO and then ...
ECHO start
start cscript %systemdrive%\install\Tools\cd_eject.vbs > null
ECHO After start
pskill cscript.exe > null
ECHO.
PAUSE

IF EXIST %systemdrive%\install\applications.cmd GOTO RUNBATCH
SET CDROM2=
IF EXIST D:\install\applications.cmd SET CDROM2=D:
IF EXIST E:\install\applications.cmd SET CDROM2=E:
IF EXIST F:\install\applications.cmd SET CDROM2=F:
IF EXIST G:\install\applications.cmd SET CDROM2=G:
IF EXIST H:\install\applications.cmd SET CDROM2=H:
IF EXIST I:\install\applications.cmd SET CDROM2=I:
IF EXIST J:\install\applications.cmd SET CDROM2=J:
IF EXIST K:\install\applications.cmd SET CDROM2=K:

IF NOT EXIST %CDROM2%\install\applications.cmd GOTO RUNBATCH

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

ECHO.
ECHO Starting application batch file
start /wait %systemdrive%\install\applications.cmd

(yes I took it from this website a while ago).

Now, this work great in a batch file, but I don't think I can use it for RunOnceEx. Any clue someone?

Tks

Link to comment
Share on other sites


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