Jump to content

Recommended Posts

Posted

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 appreciated

This is my first CMD File... start.cmd

CLS
@echo off
TITLE Windows XP SP2 - Unattended Installation

ECHO.
ECHO Over the next few minutes you will see automated installations
ECHO of various sofware applications, windows updates, and registry
ECHO tweaks being implemented. The computer will restart automatically
ECHO once the whole process has finished!

ECHO.
ECHO Starting installation of Applications

ECHO.
ECHO Installing TweakUI 2.10 Powertoy
ECHO Please wait...
start /wait %systemdrive%\install\Applications\TweakUI\TweakUI.msi /qb

ECHO.
ECHO Installing Lavasoft Ad-Aware 6 Build 181
ECHO Please wait...
start /wait %systemdrive%\install\Applications\AdAware\aaw6.exe /s

ECHO.
ECHO Installing Adobe Reader 6
ECHO Please wait...
start /wait %systemdrive%\install\Applications\AdobeReader6\AdbeRdr60_enu_full.exe -p"-s /v\"/qn\""

ECHO.
ECHO Installing DirectX 9.0b
ECHO Please wait...
start /wait %systemdrive%\install\DirectX9b\DX9NTopk.exe

ECHO.
ECHO Installing ISOBuster 1.5
ECHO Please wait...
start /wait %systemdrive%\install\Applications\ISOBuster\IsoBuster15.exe /VERYSILENT /SP-
ECHO.
ECHO Killing ISOBuster.exe process
taskkill.exe /F /IM isobuster.exe

ECHO.
ECHO Installing WinRAR 3.11
ECHO Please wait...
start /wait %systemdrive%\install\Applications\WinRAR\wrar311.exe /s

ECHO.
ECHO Installing AIM 5.2
ECHO Please wait...
start /wait %systemdrive%\install\Applications\AIM\Install_AIM.exe /s



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 If you are using a dvd please remove it
ECHO at this time.
ECHO.
ECHO Wait till the cdrom/dvd drive stops blinking
ECHO and then ...
start cscript %systemdrive%\install\Tools\cd_eject.vbs >null
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 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 RUNBATCH

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


: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

:APPS
IF NOT EXIST %systemdrive%\install\apps.inf GOTO CUSTOM
ECHO Running Applications Batch ...
ECHO.
start /wait RunDll32.exe setupapi,InstallHinfSection DefaultInstall 0 %systemdrive%\install\Apps.inf

:CUSTOM
IF NOT EXIST %systemdrive%\install\CUSTOMIZE.CMD GOTO ERROR
:: ECHO Running Cumstom Batch ...
:: ECHO.
:: start /wait %systemdrive%\install\CUSTOMIZE.CMD
GOTO END

:ERROR
IF NOT EXIST %systemdrive%\install\hotfixes.cmd GOTO _ECHO
IF NOT EXIST %systemdrive%\install\apps.inf GOTO _ECHO
IF NOT EXIST %systemdrive%\install\CUSTOMIZE.CMD GOTO _ECHO
GOTO END

:_ECHO
ECHO.
ECHO *******************WARNING*******************
ECHO Hotfixes or Applications were not installed
ECHO because they could not be found.
ECHO.
:: ECHO Check %systemdrive%\install\install.log for
:: ECHO more information.
ECHO *******************WARNING*******************
ECHO.
PAUSE

:END
ECHO.
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

Then I have the second cmd, the applications.cmd

CLS
@echo off
TITLE Windows XP SP2 - Unattended Installation

ECHO.
ECHO Over the next few minutes you will see automated installations
ECHO of various sofware applications, windows updates, and registry
ECHO tweaks being implemented. The computer will restart automatically
ECHO once the whole process has finished!

ECHO.
ECHO Starting installation of Applications


ECHO.
ECHO Installing Office 2003 Professional with Frontpage
ECHO Please wait...
start /wait %systemdrive%\install\Applications\Office2003\setup.exe TRANSFORMS=Unattended.MST /qb-


Posted

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%
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 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 RUNBATCH

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


: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

:APPS
IF NOT EXIST %systemdrive%\install\apps.inf GOTO CUSTOM
ECHO Running Applications Batch ...
ECHO.
start /wait RunDll32.exe setupapi,InstallHinfSection DefaultInstall 0 %systemdrive%\install\Apps.inf

:CUSTOM
IF NOT EXIST %systemdrive%\install\CUSTOMIZE.CMD GOTO ERROR
:: ECHO Running Cumstom Batch ...
:: ECHO.
:: start /wait %systemdrive%\install\CUSTOMIZE.CMD
GOTO END

:ERROR
IF NOT EXIST %systemdrive%\install\hotfixes.cmd GOTO _ECHO
IF NOT EXIST %systemdrive%\install\apps.inf GOTO _ECHO
IF NOT EXIST %systemdrive%\install\CUSTOMIZE.CMD GOTO _ECHO
GOTO END

:_ECHO
ECHO.
ECHO *******************WARNING*******************
ECHO Hotfixes or Applications were not installed
ECHO because they could not be found.
ECHO.
:: ECHO Check %systemdrive%\install\install.log for
:: ECHO more information.
ECHO *******************WARNING*******************
ECHO.
PAUSE

:END
ECHO.
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

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