Jump to content

How to do a 2 cd install


Recommended Posts

  • 2 weeks later...

  • 2 weeks later...

hi all

i tried to add menu selection for the installation

i manage to do that but when i tried to use this method, the batch file terminates and the installation just go on

is there a way from preventing that?

10x in advanced

Link to comment
Share on other sites

  • 1 month later...
Ok many of you have been asking how to do a 2 cd install.

For this I have setup my cd's with pretty much nothing but the install with service pack 1 and hotfixes slipstreamed and drivers on the first cd. On the second cd is any other apps I want to install.

In my winnt.sif I use this.

[GuiRunOnce]
%systemdrive%\install\first_boot.cmd

ok that's so that I have only one cmd file to call witch does all the real work.

This is my first_boot.cmd

CLS
@ECHO OFF
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 quits 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 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 30 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

Ok on the second cd you should have an install folder with everything setup in it just like you do now. Also to note that you should only have the cmd files that go with whatever you have on your second cd. For instance if you have \install\applications on the second cd like me then you should also have your applications.cmd under \install on oyur second cd.

Hope this helps others.

oh forgot here is the cd_eject.vbs

Set oWMP = CreateObject("WMPlayer.OCX.7" )
Set colCDROMs = oWMP.cdromCollection

if colCDROMs.Count >= 1 then
      For i = 0 to colCDROMs.Count - 1
              colCDROMs.Item(i).Eject
      Next ' cdrom
End If

i love ur gide but can u plz samplfy it plz

like what to do in the 1st cd and what is the *.cmd files goz and the 2nd cd and so on :) and is ut gonna work with the RunOnceEx ??

and one last Thing :rolleyes: is it easy to archive the cd's like a .cap files so no one know what is the directory look like and ... :D

Thanx :D

Link to comment
Share on other sites

Hi,

Lemme try to add something to this.

I added a small C program (obviously costomised for the specific cd) that when run, shows a menu for the user and creates corresponding batch script, which is then run to complete the installation and again checks for a new cd.

And for creating the batch script I can hard code the batch commands in the prog, or use a file created in some pre defined format.Which one would you propose?

The usage of a menu might look against the unattended spirit. But Even for changing a cd , user intervention is needed. and the inputs can be given right away then.

Moreover I added a small timer for timeout of full install (all the apps on the cd).

I doubt the platform indipendence of the timer. however it just works fine with me.

If I can , I'll get back to you with the prog. ASAP.

and don't refrain from giving any feedback.

bye

PS: My MoBo has gone for a replacement. I'll have to wait till the new one returns, So that i can give You the prog code.

Link to comment
Share on other sites

  • 2 weeks later...

I've been tryin to get the files to copy from the 2nd CD.

The first CD and the installations on it run, then it gives the following error:

"CANNOT PERFORM A CYCLIC COPY"

Anyone know what I'm doing wrong?

Here is my code for my first CD:

.
.
.
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 ...
%systemdrive%\install\tools\cdr.exe open %CDROM%
ECHO.
PAUSE
%systemdrive%\install\tools\cdr.exe close %CDROM%
PAUSE

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:


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


: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 END
:: ECHO Running Hotfixes Batch ...
:: ECHO.
:: start /wait cmdow /run /hid %systemdrive%\install\hotfixes.cmd


:ERROR
IF NOT EXIST %systemdrive%\install\applications.cmd GOTO _ECHO
GOTO END

:_ECHO
ECHO.
ECHO *******************WARNING*******************
ECHO APPLICATION 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 Deleting Temp Installation Files...
::RD /S /Q %systemdrive%\install
::RD /S /Q %systemdrive%\Drivers
::ECHO.
EXIT

2nd CD:

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-

It's the only thing holding up my installation...arg

Link to comment
Share on other sites

  • 2 weeks later...
  • 3 weeks later...

Hi all , Pls webmedic can you help me here , i wanna make a 2nd unattend Cd for all the programs like Norton , office xp, etc,,, and i have made onlt 2 CMD files ( hotfixes.cmd and main_batch.cmd)

the hotfixes.cmd is :

CLS

@echo off

ECHO.

ECHO Installing Q322011...

start /wait %systemdrive%\install\Hotfixes\Q322011.exe /Q /M /Z

ECHO.

ECHO Installing Q322069...

start /wait %systemdrive%\install\Hotfixes\Q322069.exe /Q /M /Z

ECHO.

ECHO Installing Q323255...

start /wait %systemdrive%\install\Hotfixes\Q323255.exe /Q /M /Z

ECHO.

ECHO Installing Q327979...

start /wait %systemdrive%\install\Hotfixes\Q327979.exe /Q /M /Z

ECHO.

ECHO Installing Q328310...

start /wait %systemdrive%\install\Hotfixes\Q328310.exe /Q /M /Z

ECHO.

ECHO Installing Q329048...

start /wait %systemdrive%\install\Hotfixes\Q329048.exe /Q /M /Z

ECHO.

ECHO Installing Q329115...

start /wait %systemdrive%\install\Hotfixes\Q329115.exe /Q /M /Z

ECHO.

ECHO Installing Q329115...

start /wait %systemdrive%\install\Hotfixes\Q329115.exe /Q /M /Z

ECHO.

ECHO Installing Q329390...

start /wait %systemdrive%\install\Hotfixes\Q329390.exe /Q /M /Z

ECHO.

ECHO Installing Q329834...

start /wait %systemdrive%\install\Hotfixes\Q329834.exe /Q /M /Z

ECHO.

ECHO Installing Q331953...

start /wait %systemdrive%\install\Hotfixes\Q331953.exe /Q /M /Z

ECHO.

ECHO Installing Q810272...

start /wait %systemdrive%\install\Hotfixes\Q810272.exe /Q /M /Z

ECHO.

ECHO Installing Q810565...

start /wait %systemdrive%\install\Hotfixes\Q810565.exe /Q /M /Z

ECHO.

ECHO Installing Q810577...

start /wait %systemdrive%\install\Hotfixes\Q810577.exe /Q /M /Z

ECHO.

ECHO Installing Q810833...

start /wait %systemdrive%\install\Hotfixes\Q810833.exe /Q /M /Z

ECHO.

ECHO Installing Q322069...

start /wait %systemdrive%\install\Hotfixes\Q322069.exe /Q /M /Z

ECHO.

ECHO Installing Q811493...

start /wait %systemdrive%\install\Hotfixes\Q811493.exe /Q /M /Z

ECHO.

ECHO Installing Q811630...

start /wait %systemdrive%\install\Hotfixes\Q811630.exe /Q /M /Z

ECHO.

ECHO Installing Q814033...

start /wait %systemdrive%\install\Hotfixes\Q814033.exe /Q /M /Z

ECHO.

ECHO Installing Q814994...

start /wait %systemdrive%\install\Hotfixes\Q814994.exe /Q /M /Z

ECHO.

ECHO Installing Q815021...

start /wait %systemdrive%\install\Hotfixes\Q815021.exe /Q /M /Z

ECHO.

ECHO Installing Q81656...

start /wait %systemdrive%\install\Hotfixes\Q81656.exe /Q /M /Z

ECHO.

ECHO Installing Q817606...

start /wait %systemdrive%\install\Hotfixes\Q817606.exe /Q /M /Z

ECHO.

ECHO Installing Q819696...

start /wait %systemdrive%\install\Hotfixes\Q819696.exe /Q /M /Z

ECHO.

ECHO Installing Q8323509...

start /wait %systemdrive%\install\Hotfixes\Q8323509.exe /Q /M /Z

ECHO.

ECHO Installing Q8342676...

start /wait %systemdrive%\install\Hotfixes\Q8342676.exe /Q /M /Z

ECHO.

ECHO Installing Q834536435...

start /wait %systemdrive%\install\Hotfixes\Q834536435.exe /Q /M /Z

ECHO.

ECHO Installing Q83467...

start /wait %systemdrive%\install\Hotfixes\Q83467.exe /Q /M /Z

ECHO.

ECHO Installing Q8354334...

start /wait %systemdrive%\install\Hotfixes\Q8354334.exe /Q /M /Z

ECHO.

ECHO Installing Q83568356...

start /wait %systemdrive%\install\Hotfixes\Q83568356.exe /Q /M /Z

ECHO.

ECHO Installing Q837567...

start /wait %systemdrive%\install\Hotfixes\Q837567.exe /Q /M /Z

ECHO.

ECHO Installing Q8395749...

start /wait %systemdrive%\install\Hotfixes\Q8395749.exe /Q /M /Z

ECHO.

ECHO Installing Q845757...

start /wait %systemdrive%\install\Hotfixes\Q845757.exe /Q /M /Z

ECHO.

ECHO Installing Q847457...

start /wait %systemdrive%\install\Hotfixes\Q847457.exe /Q /M /Z

ECHO.

ECHO Installing Q848762...

start /wait %systemdrive%\install\Hotfixes\Q848762.exe /Q /M /Z

ECHO.

ECHO Installing Q855543...

start /wait %systemdrive%\install\Hotfixes\Q855543.exe /Q /M /Z

ECHO.

ECHO Installing Q856435...

start /wait %systemdrive%\install\Hotfixes\Q856435.exe /Q /M /Z

ECHO.

ECHO Installing Q85685...

start /wait %systemdrive%\install\Hotfixes\Q85685.exe /Q /M /Z

ECHO.

ECHO Installing Q86745654...

start /wait %systemdrive%\install\Hotfixes\Q86745654.exe /Q /M /Z

ECHO.

ECHO Installing Q867678...

start /wait %systemdrive%\install\Hotfixes\Q867678.exe /Q /M /Z

ECHO.

ECHO Installing Q8678567...

start /wait %systemdrive%\install\Hotfixes\Q8678567.exe /Q /M /Z

ECHO.

ECHO Installing Q869867...

start /wait %systemdrive%\install\Hotfixes\Q869867.exe /Q /M /Z

ECHO.

ECHO Installing Q87485645...

start /wait %systemdrive%\install\Hotfixes\Q87485645.exe /Q /M /Z

ECHO.

ECHO Installing Q8867878...

start /wait %systemdrive%\install\Hotfixes\Q8867878.exe /Q /M /Z

ECHO.

ECHO Installing Q330994...

start /wait %systemdrive%\install\Hotfixes\Q330994.exe /Q:A /R:N

ECHO.

ECHO Installing Q5645...

start /wait %systemdrive%\install\Hotfixes\Q5645.exe /Q:A /R:N

ECHO.

ECHO Installing Q678568...

start /wait %systemdrive%\install\Hotfixes\Q678568.exe /Q:A /R:N

ECHO.

ECHO Installing Q813951...

start /wait %systemdrive%\install\Hotfixes\Q813951.exe /Q:A /R:N

ECHO.

ECHO Installing Q822925...

start /wait %systemdrive%\install\Hotfixes\Q822925.exe /Q:A /R:N

ECHO.

ECHO Installing Q8328943...

start /wait %systemdrive%\install\Hotfixes\Q8328943.exe /Q:A /R:N

ECHO.

ECHO Installing Q832894...

start /wait %systemdrive%\install\Hotfixes\Q832894.exe /Q:A /R:N

ECHO.

ECHO Installing Q8324343...

start /wait %systemdrive%\install\Hotfixes\Q8324343.exe /Q:A /R:N

ECHO.

ECHO Installing Q831167...

start /wait %systemdrive%\install\Hotfixes\Q831167.exe /Q:A /R:N

ECHO.

ECHO Installing Q823718...

start /wait %systemdrive%\install\Hotfixes\Q823718.exe /Q:A /R:N

ECHO.

ECHO Installing Q8348567...

start /wait %systemdrive%\install\Hotfixes\Q8348567.exe /Q:A /R:N

ECHO.

ECHO Installing Q8345745...

start /wait %systemdrive%\install\Hotfixes\Q8345745.exe /Q:A /R:N

ECHO.

ECHO Installing Q83455324...

start /wait %systemdrive%\install\Hotfixes\Q83455324.exe /Q:A /R:N

ECHO.

ECHO Installing Q834474...

start /wait %systemdrive%\install\Hotfixes\Q834474.exe /Q:A /R:N

ECHO.

ECHO Installing Q83434653...

start /wait %systemdrive%\install\Hotfixes\Q83434653.exe /Q:A /R:N

ECHO.

ECHO Installing Q8379282...

start /wait %systemdrive%\install\Hotfixes\Q8379282.exe /Q:A /R:N

ECHO.

ECHO Installing Q855555...

start /wait %systemdrive%\install\Hotfixes\Q855555.exe /Q:A /R:N

ECHO.

ECHO Installing Q8687896...

start /wait %systemdrive%\install\Hotfixes\Q8687896.exe /Q:A /R:N

ECHO.

EXIT

and the main_batch.cmd is :

@echo off

echo.

echo Just Wait for some times in this stage some programs will be installed

echo so Wait......

echo Ok DUDE The Yazan

ECHO.

ECHO Installing WinRAR 3.20

ECHO Please wait...

start /wait %systemdrive%\$OEM$\$1\Install\Applications\WinRAR\wrar320.exe /s

ECHO.

ECHO Installing Acrobat Reader 5 Full

ECHO Please wait...

start /wait %systemdrive%\$OEM$\$1\Install\Applications\Acrobat\Acrobat\Setup.exe /s

ECHO.

ECHO Installing Windows Media Player 9

ECHO Please Wait...

start /wait %systemdrive%:\$OEM$\$1\Install\WMP9\setup_wm.exe /Q:A /R:N

ECHO.

ECHO Installing MSN 6.1

ECHO Please Wait...

start /wait %systemdrive%:\$OEM$\$1\Install\MSN\SETUPNT.exe /Q:A /R:N

Exit

and the winnt.bat is :

@rem SetupMgrTag

@echo off

rem

rem This is a SAMPLE batch script generated by the Setup Manager Wizard.

rem If this script is moved from the location where it was generated, it may have to be modified.

rem

set AnswerFile=.\Winnt.sif

set SetupFiles=.\i386

.\i386\winnt32 /s:%SetupFiles% /unattend:%AnswerFile% /copysource:lang

>>>>>>>>>>>>>>>>

and the winnt.sif is :

;SetupMgrTag

[Data]

AutoPartition=0

MsDosInitiated="0"

UnattendedInstall="Yes"

[unattended]

UnattendMode=FullUnattended

OemSkipEula=Yes

OemPreinstall=Yes

TargetPath=\WINDOWS

repartation=No

Unattendswitch="yes"

Waitforreboot="No"

[GuiUnattended]

AdminPassword=*

EncryptedAdminPassword=NO

OEMSkipRegional=1

TimeZone=185

OemSkipWelcome=1

[userData]

ProductID=xxxxx-xxxxx-xxxxxx-xxxxx-xxxxx

FullName="YazanAswad"

OrgName=""

ComputerName=Yazan

[Display]

BitsPerPel=16

Xresolution=800

YResolution=600

Vrefresh=70

[TapiLocation]

CountryCode=92

AreaCode=051

[RegionalSettings]

LanguageGroup=13

[identification]

JoinWorkgroup=XXXXXXXXX

[Networking]

InstallDefaultComponents=No

[NetAdapters]

Adapter1=params.Adapter1

[params.Adapter1]

INFID=*

[NetClients]

MS_MSClient=params.MS_MSClient

[NetServices]

MS_SERVER=params.MS_SERVER

[NetProtocols]

MS_TCPIP=params.MS_TCPIP

[params.MS_TCPIP]

DNS=No

UseDomainNameDevolution=No

EnableLMHosts=Yes

AdapterSections=params.MS_TCPIP.Adapter1

[params.MS_TCPIP.Adapter1]

SpecificTo=Adapter1

DHCP=No

IPAddress=192.168.0.1

SubnetMask=255.255.255.0

WINS=No

NetBIOSOptions=0

[GuiRunOnce]

%systemdrive%\install\hotfixes.cmd

%systemdrive%\install\main_batch.cmd

>>>>>>>>>>>>>>>>>>>>>>>>>>

I went throught ur post but i didnt understand it , So may you pls help me and tell me what code can i add to the sif file to allow me to make 2nd CD for the rest of the applications pls and how can i put the programs in the 2nd Cd should i put them in ( $OEM$ ------$1-----Install )) Thank you

Thanks alll

Yazan

Link to comment
Share on other sites

  • 1 month later...

I also have problems with this guide...

for instance... where does the cd_eject.vbs file go?

and I assume I can create this file just with Notepad, saving it with the .vbs extension?

As I understand, CD2 only has 1 folder in the root: Install...

it is a bit vague guide... not really guidy but more "this is how it is"... :)

A DIRECTORY TREE of CD2 would be nice, with all the necessary files for the cd to work and maybe some examples....

Is it also possible to, when (or just before) CD2 is inserted, there is a window where I can select the programs I want to install? And then press OK and it installs all selected unattended?

Is it perhaps possible to create CD2, in a way it is INDEPENDENT FROM CD1

So when CD1 (with for example basic programs that do not require an update frequently, WindowsXP, OfficeXP, Winrar, Adobe Reader) is finished, I can decide wether or not to insert CD2 with additional programs..

The idea is, CD2 can also be used for a computer that is already installed, but doesn't have some applications... So I insert this CD2 and select the appz I want it to install for me...

Link to comment
Share on other sites

  • 1 month later...

Hi...

I've edited a File to help Installing the 2nd CD and you can call it from the RunOnceEx file with the cd_eject.vbs

My RunOnceEx.cmd :

cmdow @ /HID

@echo off

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "Installing Applications" /f

REG ADD %KEY%\001 /VE /D "1- Preparing Installation..." /f

REG ADD %KEY%\001 /V 1 /D "%systemdrive%\Ap\prepare.cmd" /f

REG ADD %KEY%\012 /VE /D "12- Please Insert CD 2" /f

REG ADD %KEY%\012 /V 1 /D "start cscript %systemdrive%\cd_eject.vbs >nul" /f

REG ADD %KEY%\012 /V 2 /D "PSKill cscript.exe >nul" /f

REG ADD %KEY%\012 /V 3 /D "%systemdrive%\ Ap\2nd_CD.exe" /f

#IF EXIST D:\CD.txt set CDROM=D:

#IF EXIST E:\CD.txt set CDROM=E:

#IF EXIST F:\CD.txt set CDROM=F:

#IF EXIST G:\CD.txt set CDROM=G:

#IF EXIST H:\CD.txt set CDROM=H:

#IF EXIST I:\CD.txt set CDROM=I:

#IF EXIST J:\CD.txt set CDROM=J:

REG ADD %KEY%\013 /VE /D "13- MS Office 2003 Professional" /f

REG ADD %KEY%\013 /V 1 /D "%CDROM%\SETUP.exe TRANSFORMS=Unattended.MST /qb-" /f

REG ADD %KEY%\014 /VE /D "14- Cleaning Up and Rebooting" /f

REG ADD %KEY%\014 /V 1 /D "%systemdrive%\Ap\cleanup.cmd" /f

EXIT

My cd_eject.vbs :

Set oWMP = CreateObject("WMPlayer.OCX.7" )

Set colCDROMs = oWMP.cdromCollection

if colCDROMs.Count >= 1 then

For i = 0 to colCDROMs.Count - 1

colCDROMs.Item(i).Eject

Next ' cdrom

End If

But now my problem is how to let this script witch we can make it as .exe file to search for the cd and check if it is the current cd or not becouse it is now working but with out searching for the 2nd cd……..so can you help me in it……..

2nd_CD.aut

Link to comment
Share on other sites

  • 1 month later...

Is it possible to reduce the setup size by removing the files from the components we don't need ? The guide i've read will explain how to customize the setup but not how to reduce it.

I have around 170 MB left on my CD (if i use 800 MB medias), i was wondering if i could fit Office 2003 by a/ compressing (either with 7zip or RAR) b/ keeping the setup files of Word, Excel, Powerpoint and Outlook only.

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