dkreifus Posted April 1, 2004 Posted April 1, 2004 I am attempting to install XP, with SP1, SP2. I have software on the first CD, and Office 2003 on the second.When its time to eject the CD, the CD ejects, and the message pops up:"THe process cannot access the file because it is being used by antoher application"The contents of the 2nd CD did not copy and install, and the code wasn't executed. Any ideas?(manual copy and execution of the applications.cmd worked)Any help would be appreciatedThis is my first CMD File... start.cmdCLS@echo offTITLE Windows XP SP2 - Unattended InstallationECHO.ECHO Over the next few minutes you will see automated installations ECHO of various sofware applications, windows updates, and registryECHO tweaks being implemented. The computer will restart automaticallyECHO once the whole process has finished!ECHO.ECHO Starting installation of ApplicationsECHO.ECHO Installing TweakUI 2.10 PowertoyECHO Please wait...start /wait %systemdrive%\install\Applications\TweakUI\TweakUI.msi /qbECHO.ECHO Installing Lavasoft Ad-Aware 6 Build 181ECHO Please wait...start /wait %systemdrive%\install\Applications\AdAware\aaw6.exe /sECHO.ECHO Installing Adobe Reader 6ECHO Please wait...start /wait %systemdrive%\install\Applications\AdobeReader6\AdbeRdr60_enu_full.exe -p"-s /v\"/qn\""ECHO.ECHO Installing DirectX 9.0bECHO Please wait...start /wait %systemdrive%\install\DirectX9b\DX9NTopk.exeECHO.ECHO Installing ISOBuster 1.5ECHO Please wait...start /wait %systemdrive%\install\Applications\ISOBuster\IsoBuster15.exe /VERYSILENT /SP-ECHO.ECHO Killing ISOBuster.exe processtaskkill.exe /F /IM isobuster.exeECHO.ECHO Installing WinRAR 3.11ECHO Please wait...start /wait %systemdrive%\install\Applications\WinRAR\wrar311.exe /sECHO.ECHO Installing AIM 5.2ECHO Please wait...start /wait %systemdrive%\install\Applications\AIM\Install_AIM.exe /sECHO.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 If you are using a dvd please remove itECHO at this time.ECHO.ECHO Wait till the cdrom/dvd drive stops blinkingECHO and then ...start cscript %systemdrive%\install\Tools\cd_eject.vbs >nullPSKill 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 EXIST L:\install\applications.cmd SET CDROM2=L:IF EXIST M:\install\applications.cmd SET CDROM2=M:IF EXIST N:\install\applications.cmd SET CDROM2=N:IF EXIST O:\install\applications.cmd SET CDROM2=O:IF EXIST P:\install\applications.cmd SET CDROM2=P:IF EXIST Q:\install\applications.cmd SET CDROM2=Q:IF EXIST R:\install\applications.cmd SET CDROM2=R:IF EXIST S:\install\applications.cmd SET CDROM2=S:IF EXIST T:\install\applications.cmd SET CDROM2=T:IF EXIST U:\install\applications.cmd SET CDROM2=U: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.:RUNBATCH:: cmdow @ /hid:: ECHO Running Main Batch ...:: ECHO.:: start /wait %systemdrive%\install\main_batch.cmd:HOTFIXES:: This hopefully has been obsoleted by slipstreaming the hotfixes into the installer.:: Keeping it around just in case it is needed for anything else.:: IF NOT EXIST %systemdrive%\install\hotfixes.cmd GOTO APPS:: ECHO Running Hotfixes Batch ...:: ECHO.:: start /wait cmdow /run /hid %systemdrive%\install\hotfixes.cmd:APPSIF NOT EXIST %systemdrive%\install\apps.inf GOTO CUSTOMECHO Running Applications Batch ...ECHO.start /wait RunDll32.exe setupapi,InstallHinfSection DefaultInstall 0 %systemdrive%\install\Apps.inf:CUSTOMIF NOT EXIST %systemdrive%\install\CUSTOMIZE.CMD GOTO ERROR:: ECHO Running Cumstom Batch ...:: ECHO.:: start /wait %systemdrive%\install\CUSTOMIZE.CMDGOTO END:ERRORIF NOT EXIST %systemdrive%\install\hotfixes.cmd GOTO _ECHOIF NOT EXIST %systemdrive%\install\apps.inf GOTO _ECHOIF NOT EXIST %systemdrive%\install\CUSTOMIZE.CMD GOTO _ECHOGOTO END:_ECHOECHO.ECHO *******************WARNING*******************ECHO Hotfixes or Applications were not installedECHO because they could not be found.ECHO.:: ECHO Check %systemdrive%\install\install.log for:: ECHO more information.ECHO *******************WARNING*******************ECHO.PAUSE:ENDECHO.ECHO Restarting the PC in 60 seconds...shutdown -r -f -t 30 -c "Windows XP will now restart in 1 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%\install::RD /S /Q %systemdrive%\Drivers::ECHO.EXITThen I have the second cmd, the applications.cmdCLS@echo offTITLE Windows XP SP2 - Unattended InstallationECHO.ECHO Over the next few minutes you will see automated installations ECHO of various sofware applications, windows updates, and registryECHO tweaks being implemented. The computer will restart automaticallyECHO once the whole process has finished!ECHO.ECHO Starting installation of ApplicationsECHO.ECHO Installing Office 2003 Professional with FrontpageECHO Please wait...start /wait %systemdrive%\install\Applications\Office2003\setup.exe TRANSFORMS=Unattended.MST /qb-
Aaron Posted April 1, 2004 Posted April 1, 2004 That's a very old cd eject script and its not as good as the cdr.exe tool available here: http://unattended.msfn.org/xp/downloads.htm
dkreifus Posted April 1, 2004 Author Posted April 1, 2004 I got the CDROM problem fixed, but it still doesn't run the second installation...It just opens the Install Folder, and goes into shutdown mode...ECHO and then ...%systemdrive%\install\tools\cdr.exe open %CDROM%ECHO.PAUSE%systemdrive%\install\tools\cdr.exe close %CDROM%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 EXIST L:\install\applications.cmd SET CDROM2=L:IF EXIST M:\install\applications.cmd SET CDROM2=M:IF EXIST N:\install\applications.cmd SET CDROM2=N:IF EXIST O:\install\applications.cmd SET CDROM2=O:IF EXIST P:\install\applications.cmd SET CDROM2=P:IF EXIST Q:\install\applications.cmd SET CDROM2=Q:IF EXIST R:\install\applications.cmd SET CDROM2=R:IF EXIST S:\install\applications.cmd SET CDROM2=S:IF EXIST T:\install\applications.cmd SET CDROM2=T:IF EXIST U:\install\applications.cmd SET CDROM2=U: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.:RUNBATCH:: cmdow @ /hid:: ECHO Running Main Batch ...:: ECHO.:: start /wait %systemdrive%\install\main_batch.cmd:HOTFIXES:: This hopefully has been obsoleted by slipstreaming the hotfixes into the installer.:: Keeping it around just in case it is needed for anything else.:: IF NOT EXIST %systemdrive%\install\hotfixes.cmd GOTO APPS:: ECHO Running Hotfixes Batch ...:: ECHO.:: start /wait cmdow /run /hid %systemdrive%\install\hotfixes.cmd:APPSIF NOT EXIST %systemdrive%\install\apps.inf GOTO CUSTOMECHO Running Applications Batch ...ECHO.start /wait RunDll32.exe setupapi,InstallHinfSection DefaultInstall 0 %systemdrive%\install\Apps.inf:CUSTOMIF NOT EXIST %systemdrive%\install\CUSTOMIZE.CMD GOTO ERROR:: ECHO Running Cumstom Batch ...:: ECHO.:: start /wait %systemdrive%\install\CUSTOMIZE.CMDGOTO END:ERRORIF NOT EXIST %systemdrive%\install\hotfixes.cmd GOTO _ECHOIF NOT EXIST %systemdrive%\install\apps.inf GOTO _ECHOIF NOT EXIST %systemdrive%\install\CUSTOMIZE.CMD GOTO _ECHOGOTO END:_ECHOECHO.ECHO *******************WARNING*******************ECHO Hotfixes or Applications were not installedECHO because they could not be found.ECHO.:: ECHO Check %systemdrive%\install\install.log for:: ECHO more information.ECHO *******************WARNING*******************ECHO.PAUSE:ENDECHO.ECHO Restarting the PC in 60 seconds...shutdown -r -f -t 30 -c "Windows XP will now restart in 1 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%\install::RD /S /Q %systemdrive%\Drivers::ECHO.EXIT
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