Jump to content
MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. ×

How to do a 2 cd install


Recommended Posts

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.


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

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 If you are using a dvd please remove it
ECHO at this time.
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

IF EXIST %systemdrive%\install\applications.cmd GOTO RUNBATCH
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

:: cmdow @ /hid

:: ECHO Running Main Batch ...
:: ECHO.
:: start /wait %systemdrive%\install\main_batch.cmd

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

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

:: ECHO Running Cumstom Batch ...
:: ECHO.
:: start /wait %systemdrive%\install\CUSTOMIZE.CMD

IF NOT EXIST %systemdrive%\install\hotfixes.cmd GOTO _ECHO
IF NOT EXIST %systemdrive%\install\apps.inf GOTO _ECHO

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

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 Deleting Temp Installation Files...
::RD /S /Q %systemdrive%\install
::RD /S /Q %systemdrive%\Drivers

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
      Next ' cdrom
End If

Link to comment
Share on other sites

thanks I actually pulled that part and I'm currently working on a way to pull out the cdrom sooner so that it will bypass windows file protection and let you use custom dll's and stuff without having to worry about it. That is actualy one of the best parts about this is that by removeing the first cd you can bypass windows file protection and therefor use your hacked uxtheme.dll and whatever files you find helpfull.

The nice part about pulling it sooner is that it enables you to login the first time with your custom msstyles and themes working like they should..

Link to comment
Share on other sites

Actually, I 'pulled the CD' (unloaded the ISO) when I tested this with Virtual PC, and WFP still tried to replace the file, then half of my apps wouldn't install becuse uxtheme.dll couldn't be found :|

What would be nicer would be a way to easily include them in the I386 folder. I've used makecab on my uxtheme.dll and have uxtheme.dl_, would it be enough just to copy and paste it into I386, or does more need to be done?

Link to comment
Share on other sites

lol if you follow my way above it will take care of that for you. And your idea wont work because it has to be digitaly signed by microsoft to be able to replace it.

Like I said, tried pulling the CD, it still tried to replace the files, and when it couldn't find anything, installations were messing up all over the place :|

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