September 8, 200421 yr I've created a utility for changing CDsIt ejects the CD and asks for the second or third CD, checks the label in every CD-ROM, finds out drive letter and if it is the write CD executes a file otherwise ejects and checks again until the write CD is inserted or cancel pressed (pressing cancel executes another file).It has 3 parameters1. CD Label to be checked and displayed.2. Batch file to be executed (must be on the CD as it returns drive letter and command specified in this parameter)3. Batch file to be executed when cancel pressed.This is universal as it takes Labels and commands by parameters so you can use it for many CDs.Feel free to ask me if you have questions.install.exe
September 8, 200421 yr wow seems like a nice utility for ppl doing 2+ cd installs (I haven't tried it, don't need it)but when does this run?
September 8, 200421 yr Author You can run it when you need to change CD for example in batch file from GUIRunOnceI use this for RunOnceEx Setup
September 9, 200421 yr Author Start it with 3 parameters install.exe par1 par2 par3par1 = CD Label to be checkedpar2 = Command to be exexuted when it finds the CD (note that it returns drive letter of CD-ROM and you need to give only command with \ )par3 = Command to be executed when cancel pressedhere is an example............................ECHO Removing useless shortcuts...DEL "%systemdrive%\Documents and Settings\All Users\Start Menu\Windows Update.lnk"DEL "%systemdrive%\Documents and Settings\All Users\Start Menu\Set Program Access and Defaults.lnk"DEL "%systemdrive%\Documents and Settings\All Users\Start Menu\Windows Catalog.lnk"ECHO.start /wait install.exe "Applications CD" \setup.cmd %SystemDrive%\install\cleanup.cmdEXITThe program will check for the CD labeled "Applications CD" and execute setup.cmd in that CD with parameter which is drive letter so you can easyly get drive letter in your batch file here is an examplecmdow @ /HID@Echo OffSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Programs" /fREG ADD %KEY%\000 /VE /D "Acdsee 6.0.6" /fREG ADD %KEY%\000 /V 1 /D "%1\defaults\ACDSee6\acdsee6.msi /qn REBOOT=Suppress" /fREG ADD %KEY%\015 /VE /D "Acrobat Reader 6.0.2" /fREG ADD %KEY%\015 /V 1 /D "%1\defaults\AR6\setup.exe /S /v/qn" /fREG ADD %KEY%\015 /V 2 /D "%1\defaults\AR6\6.0.2_Update.exe /S /v/qn" /f............................%1 is given from install.exe and is drive letterYou can even add it in RunOnceEx during installation to change another CD
September 9, 200421 yr Author Please tell me if you find it usefull or if u find bugs and suggestions
October 12, 200421 yr Have only done a basic test.Made a bat file, and ran it on pc and it ejected cd and started to the run setup with no issues.The command I used wasstart /wait install.exe "NMC_Apps" \visio\seup.exeSo am guessing that to add this to my unonceex.cmd, i just need to add that line at the end? or does it need to be runceex.cmd style with the reg add key parts as well?Thank you
November 4, 200421 yr Author You can use it for any method but you must provide 3 parameters, the 3rd one is for cancel command.
December 7, 200421 yr Hi ankap , Thanks for the script, just what i was after but..im not sure if ive implemented it right. (NOob)it asks for the cd, put it in , click ok and the i get this errorMy batch filesCLS@echo offTITLE Windows XP SP2 - Unattended InstallationECHO Applying Registry Tweaks...REGEDIT /S %systemdrive%\install\RegTweaks.regECHO Starting installation of ApplicationsECHO Installing Opera v7.54 ECHO Please wait...start /wait %systemdrive%\install\opera\o754_3869.exe /sECHO Please wait...start /wait %systemdrive%\install\install.exe "Applications_CD" \setup_office2003.cmd %SystemDrive%\install\cleanup.cmdECHO Restarting the PC in 4 minutes...shutdown.exe -r -f -t 240 -c "Windows XP will now restart in 4 minute, this will give enough time for the shortcuts to update and for the shell to fully load before its ready to restart!"ECHO.ECHO Deleting Temp Installation Files...RD /S /Q %systemdrive%\DriversRD /S /Q %systemdrive%\installEXITOn The Applications_CD.iso CD ive the following @echo offTITLE Windows XP SP2 - Unattended Installation (office cd)ECHO.ECHO.ECHO Installing Office ECHO Please wait...start /wait %1\Office2003\setup.exe TRANSFORMS=Unattended.MST /qb-ECHO Restarting the PC in 4 minutes...shutdown.exe -r -f -t 240 -c "Windows XP will now restart in 4 minute, this will give enough time for the shortcuts to update and for the shell to fully load before its ready to restart!"ECHO.ECHO Deleting Temp Installation Files...RD /S /Q %systemdrive%\DriversRD /S /Q %systemdrive%\installEXITive also a cleanup.cmd file too.This is really bugging me, my first attempt at batch files. Big up too all the MSFN massive, great site.
December 7, 200421 yr Your AutoIt script looks for C:\install.exe, and your batch file runs C:\install\install.exe. Change your AutoIt script to use %systemdrive%\install\install.exe.
December 9, 200421 yr Author Look its smth wrong with your setup_office2003.cmd file. Is it in the root of your CD ? Cause it can't find that file. The program tries to run file G:\setup_office2003.cmd (g: is your CD-ROM letter) so it must be in the root of your CD.
Create an account or sign in to comment