nodiaque Posted January 26, 2005 Share Posted January 26, 2005 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 fromECHO the cdrom drive and If you have a second cd placeECHO it in the drive at this time please.ECHO.ECHO Wait till the cdrom drive quits blinkingECHO and then ...ECHO startstart cscript %systemdrive%\install\Tools\cd_eject.vbs > nullECHO After startpskill cscript.exe > nullECHO.PAUSEIF EXIST %systemdrive%\install\applications.cmd GOTO RUNBATCHSET 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 RUNBATCHECHO Please be patient while files are copied to your hard drive.xcopy %CDROM2%\install %systemdrive%\install\ /S /C /Q /H /YECHO.ECHO.ECHO Starting application batch filestart /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 More sharing options...
nodiaque Posted January 26, 2005 Author Share Posted January 26, 2005 Well someone just post something for that in the forum so for those in need of something of the like, go to here: http://www.msfn.org/board/index.php?showtopic=27019 Link to comment Share on other sites More sharing options...
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