MSFN Forum: How to do a 2 cd install - MSFN Forum

Jump to content



  • 3 Pages +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic

How to do a 2 cd install Rate Topic: -----

#41 User is offline   mssaad66 

  • Junior
  • Pip
  • Group: Members
  • Posts: 57
  • Joined: 09-June 04

Posted 04 August 2004 - 11:32 AM

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

Attached File(s)




#42 User is offline   RBCC 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 631
  • Joined: 09-July 04

Posted 07 September 2004 - 09:42 PM

Hi all,
Does the Second disk have to be bootable also? :unsure:

#43 User is offline   RBCC 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 631
  • Joined: 09-July 04

Posted 08 September 2004 - 12:40 AM

:blushing: :}
How do I compile a A VB Script Program? What do I use?
John

#44 User is offline   Lucius Snow 

  • Member
  • PipPip
  • Group: Members
  • Posts: 247
  • Joined: 17-August 04

Posted 14 September 2004 - 05:43 AM

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.

#45 User is offline   ankap 

  • Junior
  • Pip
  • Group: Members
  • Posts: 96
  • Joined: 18-March 04

Posted 14 September 2004 - 09:20 PM

You can do CD Changing and Recognizing drive letter with this utility.
I've posted it earlier http://www.msfn.org/...showtopic=27019
It ejects the CD-ROM pauses and brings Message Box then if Ok pressed loads CD-ROM checks for CD label finds the correct CD and returns drive letter.
I use it in my 3 CD Install, it works fine.

#46 User is offline   MachManX 

  • Group: Members
  • Posts: 6
  • Joined: 26-September 04

Posted 27 September 2004 - 10:46 PM

Hey guys, I'm also new to the scene, but I always wanted to create an unattended installation. I had NO IDEA that there were others in my shoes :P . I should've done a search on this stuff way way back :P .

Neway, this topic does fall under "Unattended Windows", so if you do a 2 CD install, then how does it become "unattended"? You have to change the CD at some point, right? The only PURE way to make an unattended Windows install is to use 1 CD or 1 DVD. SOOOO, why not just make a second CD that will run after windows installation that will install the programs and applications? So windows and it's hotfixes and directx, framework, etc. on one CD, then on the second CD include all the applications and make a batch file to run all those applications via an "AUTORUN" file (.inf)? You know, the file that autoplays a CD? I could be wrong, since I'm new, but wouldn't this be better?

#47 User is offline   Tsunami 

  • Member
  • PipPip
  • Group: Members
  • Posts: 292
  • Joined: 05-March 04

Posted 28 September 2004 - 01:24 AM

I believe the point of an unattended 2cd install is that the batch/runonceex waits for 30 seconds or 1 minute for the cd, and if you didn't put the cd in, it will continue. Basically, this is what I have to install Office 2003 and PSP8 from their own cd:

SET P=%CD%\Programs
FOR %%D IN (A B C D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%D:\WIN51IP SET CDROM=%%D

CDR OPEN %CDROM%
ECHO [%TIME:~0,-3%] Please insert the Microsoft Office 2003 disc in drive %CDROM%:
SLEEP 30
CDR CLOSE %CDROM%

IF EXIST %CDROM%:\PRO11.msi (
   ECHO [%TIME:~0,-3%] Installing Microsoft Office 2003...
   START /WAIT %CDROM%:\Setup.exe TRANSFORMS=%P%\Office.mst /QN
)

ECHO.

CDR OPEN %CDROM%
ECHO [%TIME:~0,-3%] Please insert the Jasc Paint Shop Pro 8 disc in drive %CDROM%:
SLEEP 30
CDR CLOSE %CDROM%

IF EXIST "%CDROM%:\PSP\Jasc Paint Shop Pro 8.msi" (
   ECHO [%TIME:~0,-3%] Installing Jasc Paint Shop Pro 8...
   START /WAIT /D "%CDROM%:\PSP" "Jasc Paint Shop Pro 8.msi" /QN
)

cdr.exe and sleep.exe are 3rd party programs. %P% represents the programs install directory on the systemdrive (C:\Install\Programs).

#48 User is offline   dcrowder32 

  • Junior
  • Pip
  • Group: Members
  • Posts: 54
  • Joined: 13-September 04

Posted 11 October 2004 - 07:40 AM

Anybody know how to put a multi-cd program all on one dvd and install it? I want the structure such as...

G:\CD1\
G:\CD2\
G:\CD3\

Then when the installer program asks for disk 2, it can see the G:\CD2\ directory as the second disk.

Thanks.

#49 User is offline   abumohamed 

  • Group: Members
  • Posts: 1
  • Joined: 30-May 04

Posted 21 November 2004 - 07:25 AM

Hi all i succeed to made my unattended in 2 cd but
First of all i want to thank evrybody in this site because i learn many things here.
You ned to put this in your start.cmd to change cd and continue installation


ECHO.
ECHO Changing the cd
ECHO Please wait...
PING -n 61 127.0.0.1>nul
start /wait wscript %CDROM%\$OEM$\cd_prompt.vbs


open your notepad and past this code

MsgBox "Please insert CD2 Office2003. When the drive is done, press OK", vbOKOnly, "Please, Replace CD"


save it as cd_prompt.vbs and put it in $OEM$ folder

make a copy of distribution folder ($oem$) in the second cd and creat folder called software in bouth cd.

my start.cmd
[/CODE]CLS start.cmd
@echo off
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:
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 Installing WinRAR 3.30-Plus
ECHO Please wait...
start /wait %CDROM%\Software\WinRAR\wrar330-Plus.exe /s
ECHO.
ECHO Installing Flashget 1.6
ECHO Please wait...
start /wait %CDROM%\Software\flashget\fgf160.exe /S
ECHO.
ECHO Registering Flashget 1.6...
REGEDIT /S %CDROM%\Software\flashget\register.reg
ECHO.
ECHO Registering Nero Burning ROM...
REGEDIT /S %CDROM%\Software\Nero\register.reg
ECHO.
ECHO Installing Nero Burning ROM v6.0.0.28 Ultra Edition
ECHO Please wait...
start /wait %CDROM%\Software\Nero\Nero60028.exe /silent /noreboot /no_ui /sn=1A23-1180-4038-4227-3743-8855 /write_sn
ECHO.
ECHO Changing the cd
ECHO Please wait...
PING -n 61 127.0.0.1>nul
start /wait wscript %CDROM%\$OEM$\cd_prompt.vbs
ECHO.
ECHO Installing Real Player One v10
ECHO Please wait...
start /wait %CDROM%\Software\RealPlayer\RealPlayer10GOLD.exe /s
ECHO.
ECHO Installing Sun Java VM 1.4.2
ECHO Please wait...
start /wait %CDROM%\Software\SunJava\j2re-1_4_2-windows-i586.exe /s /v/qn
ECHO.
ECHO Installing MSN Messenger 6.0.0137 Final
ECHO Please wait...
start /wait %CDROM%\Software\MSN\MsnMsgs.msi /QB
ECHO.
ECHO Installing Adobe Reader 6.0.1
ECHO Please wait...
start /wait %CDROM%\Software\AdobeReader6\AdbeRdr60_enu_full.exe -p"-s /v\"/qn\""
ECHO.
ECHO Installing ACDSee 6.0.6 PowerPack
ECHO Please wait...
start /wait %CDROM%\Software\ACDsee\ACDSee606PowerPack.exe
ECHO.
ECHO Installing Office 2003 Professional without Frontpage
ECHO Please wait...
start /wait %CDROM%\Software\Office\setup.exe /QB
ECHO.
ECHO Installing Microsoft Office FrontPage 2003
ECHO Please wait...
start /wait %CDROM%\Software\Frontpage\setup.exe /QB
ECHO.
ECHO Applying Registry Tweaks...
REGEDIT /S %CDROM%\install\RegTweaks.reg
ECHO.
ECHO Restarting the PC in 1 minute...
shutdown.exe -r -f -t 60 -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
EXIT[CODE]


my CDs
After the first logoin the installation of WinRAR , Flashget 1.6 and Nero Burning ROM will star then you will see
Changing the cd
Please wait...
at this point you must remove the cd and insert the second cd
and wait untill you see cd prompt ask you to press ok then the installation of the applications or software will resume.
you can change software as you like.

I tried my best english and i am sorry if it's not good

Attached File(s)



#50 User is offline   JPamplin 

  • format c: /u - It is your desssssstiny.
  • PipPip
  • Group: Members
  • Posts: 143
  • Joined: 06-January 04

Posted 16 December 2004 - 07:56 AM

OK, folks, I appreciate this topic, but I am looking for a DOS batch file which allows me to eject the first bootable CD, and start copying more apps from the second CD. It would then start the XP install from the hard disk (everything is copied to the HD first).

In my current script, I insert a simple PAUSE...

ECHO Please insert the second CD
PAUSE

@xcopy g:\Install\APPS\*.* d:\Install\APPS\


I've tried moving all my code after the PAUSE into a separate batch file, and CALLing it. That didn't work either. It keeps saying "MIssing Batch FIle" and prompting me for the location of command.com. I even made the second CD bootable as well - no dice.

Where can I look, folks? As always, I appreciate it.

JP

Share this topic:


  • 3 Pages +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy