Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

How to do a 2 cd install

- - - - -

  • Please log in to reply
49 replies to this topic

#1
webmedic

webmedic

    fixer of things broken

  • Member
  • PipPipPipPip
  • 621 posts
  • Joined 15-August 03
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



How to remove advertisement from MSFN

#2
b0r3d

b0r3d

    Friend of MSFN

  • Member
  • PipPipPipPipPip
  • 821 posts
  • Joined 03-August 03
Nice little guide there. Im sure alot of the MSFN members (and even alot who arent) will appreciate it!
Remember, you can wear your underpants four times without washing.
Forwards. Backwards. Inside out forwards, and inside out backwards.

#3
Bottled

Bottled

    Newbie

  • Member
  • 15 posts
  • Joined 31-August 03
Jenius :)

Testing it out on a Virtual PC now, will let you know how I go :rolleyes:

#4
webmedic

webmedic

    fixer of things broken

  • Member
  • PipPipPipPip
  • 621 posts
  • Joined 15-August 03
well iuse virtual pc also and it's kind of apain to do it on virtual pc but it does work.

#5
Bottled

Bottled

    Newbie

  • Member
  • 15 posts
  • Joined 31-August 03
I know, it took me 20 minutes to get past the '10 minutes to go' bit :)

#6
Bottled

Bottled

    Newbie

  • Member
  • 15 posts
  • Joined 31-August 03
Just thought I'd add, it's not ">null", it's ">nul", otherwise a file called "null" is created in the same dir as the batch file :)

#7
webmedic

webmedic

    fixer of things broken

  • Member
  • PipPipPipPip
  • 621 posts
  • Joined 15-August 03
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..

#8
Bottled

Bottled

    Newbie

  • Member
  • 15 posts
  • Joined 31-August 03
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?

#9
webmedic

webmedic

    fixer of things broken

  • Member
  • PipPipPipPip
  • 621 posts
  • Joined 15-August 03
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.

#10
Bottled

Bottled

    Newbie

  • Member
  • 15 posts
  • Joined 31-August 03

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

#11
Thanatos

Thanatos

    GGTW

  • Member
  • PipPip
  • 235 posts
  • Joined 31-August 03
Nice script m8 :), but where do i need to put PSkill.exe in order for this to work?
Posted Image

#12
Aaron

Aaron

    The MSFN Banana

  • Patrons
  • 5,767 posts
  • Joined 17-August 01
  • OS:Windows 7 x64
  • Country: Country Flag
Pskill can be copied to c:\windows\system32 to allow the pskill file to execute no matter what directory you're currently in :)

#13
Bottled

Bottled

    Newbie

  • Member
  • 15 posts
  • Joined 31-August 03
Good plan Batman :)

#14
cspm2003

cspm2003

    the force is strong in this one...

  • Member
  • PipPip
  • 181 posts
  • Joined 04-September 03
thats pretty cool. I wanted to do something like that but then I bought a dvd burner, which resolved my space issue
Posted Image
------------------------------------------------------------------------------------------
my site

#15
dansar

dansar

    Newbie

  • Member
  • 31 posts
  • Joined 28-July 03
Hello,

Thanks for this nice guide !


I prefer to use VMWare, it works really well.

Bravo for your clear guide!
Free Internet !

#16
grandam_99

grandam_99

    Newbie

  • Member
  • 28 posts
  • Joined 14-August 03
could you include this in the http://unattended.MS...rg/xp/index.htm
Creating an unattended Windows XP cd web site

Thanks

#17
webmedic

webmedic

    fixer of things broken

  • Member
  • PipPipPipPip
  • 621 posts
  • Joined 15-August 03
um wait on that i have a new improved one that I'm testing now. I promise you all will like it better.

#18
grandam_99

grandam_99

    Newbie

  • Member
  • 28 posts
  • Joined 14-August 03
have you finished your new and improved one yet?

I'd like to see it

I'm new at this but getting there little by little

#19
webmedic

webmedic

    fixer of things broken

  • Member
  • PipPipPipPip
  • 621 posts
  • Joined 15-August 03
ok I'm almost done with it I'm working out the little nigglies now. Sorry to many irons in hte fire and I've been reading about how bad nvidia sucks today.

#20
Bottled

Bottled

    Newbie

  • Member
  • 15 posts
  • Joined 31-August 03
What has NV done now? ó_O

#21
webmedic

webmedic

    fixer of things broken

  • Member
  • PipPipPipPip
  • 621 posts
  • Joined 15-August 03
well this is not the place for it but basicly a radeon 9600 pro is faster than a 5900 ultra in anything htat needs dx9 level hardware. Nvidia has been cheating to no end a denies everything. The half life2 beches jsut hit the net and nvidia is once again denying everything but even at nvnews (a fan site for them) nvidia has been getting flamed.


One guy who was a die hard nvidiot who even had a 5800 ultra and a 5900 ultra had taken his nvidia sticker off of his case and was pretty angry at nvidia. He's getting an ati card by the way.

#22
chon_

chon_

    Member

  • Member
  • PipPip
  • 175 posts
  • Joined 04-September 03
  • OS:Windows 8.1 x64
  • Country: Country Flag
anyone managed to run this script within webmedic's inf method?
mine exits before it copies anything from the 2nd to the HD
suggestions anyone?
Hope it helps.

#23
Animator

Animator
  • Member
  • 3 posts
  • Joined 26-September 03
Hi Community,

I'm a Stupid German Man, my English iss Bad an I Hope some Germans or another people who can understand and speak German can Help me.

I have a Problem with the Script in the First post from webmatic, i dont use the same *.cmd files and i dont use *.inf files.
I use scripts like this
hotfixes.cmd
hotfixes2.cmd and
programme.cmd for the second CD.

Now, my problem is the script for the 2'nd CD, i dont now how to make it for my *.cmd files.

In Deutsch :

Ich habe ganz einfach das Problem das ich das script nicht für meine *.cmd dateien angepasst bekomme, weil ich nicht genau verstehe wie das funktionieren soll.


I Hope some People can Help me, and I hope some People understand what i mean.

Ich hoffe es kann mir jemand weiterhelfen.

brb

Animator

#24
dansar

dansar

    Newbie

  • Member
  • 31 posts
  • Joined 28-July 03

Hello,

Thanks for this nice guide !


I prefer to use VMWare, it works really well.

Bravo for your clear guide!

Now I am using also Virtual PC 5.2, and i change my mind, I think it's great too. :)

One more time "Un grand BRAVO" for your Forum. :rolleyes:

:D
Free Internet !

#25
[SuperhumaN][dhc]

[SuperhumaN][dhc]

    Newbie

  • Member
  • 12 posts
  • Joined 28-September 03
It could possible to add a second cd by adding a line to the DOSNET.inf

[Directories]
d1 = \I386
d2 = \cmpnents\tabletpc\I386
d3 = \cmpnents\mediactr\I386
d4 = \cmpnents\netfx\I386
d5 = "\cmpnents\EXTRAS"




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users