Jump to content

[How To] Use multiple CDs on your setup


Recommended Posts


Simon,

off topic that case of your computer looks nice, how much did it cost?

it isn't offtopic, i really like talk about that piece of hardware :D

it's a chieftec dragon black DX-01B-D-U, i love that case, i had pursuit it from many time until last year. the case itself costs about 90€ and the transparent window... (let me think i can't remember too well)... about 50€ (the full side includes the window and an 8cm fan with a new couple of keys)

DX-01B-D-U.jpg

more information about chieftec series can be found here

Link to comment
Share on other sites

@simonsays

ok so where should i be putting this extra code?? in the office CD iso (where in there?) or in the main rununceex file?

cheers.

i'll try to explain it but not detailed:

you got to stablish a first variable in this case, %CDROM% so first portion of code it's for the 1CD, next we stablish a second variable, last portion of code, which is %OFFICE%. both codes go to your runonceex.

to do this we need in the first cd CD1.TXT (that contains the main installation of xp) and in the second cd we put CD2.TXT (this is our new created cd that contains office).

for a deeply explanation refer to first post.

Link to comment
Share on other sites

Hi,

If that goes into the runonceex file and i only have one iso captured at a time how is the %office% variable going to be set?

good question, please check first post. on that command file, if office cd it's not inserted in 1min, variable it's not set and the installation will continue and if it's then it will install office.

Link to comment
Share on other sites

What u mean SiMoNsAyS ?

simple: using you're tool you have to manually switch the cds and then press OK.

my command line it's intended to do it unattended so if in 1min you don't switch between cds, installation will continue normally without pressing any button.

Link to comment
Share on other sites

  • 2 weeks later...

Hi!

I have follow your guide for this 2CD for Office 2003, and I have a little annoying bug I can't find.

When Office 2003 CD isn't inserted, instead of continuing the installation, it halts saying "Can not find \SETUP.EXE (...) please user Search feature (...)". Supposedly, your .cmd should avoid this if the CD isn't inserted right?

Office.cmd

@ECHO OFF
TITLE Instalacao do Microsoft Office 2003 com SP1
COLOR 70
ECHO.
ECHO.
ECHO Por favor insira o CD do Microsoft Office 2003 com SP1
ECHO Dentro de 1 minuto a instalacao ira prosseguir...
FOR %%d IN (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\$OEM$\WinXP.txt SET CDROM=%%d
start /wait %CDROM%\$OEM$\pause.cmd
FOR %%d IN (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\Unattended.mst SET OFFICE=%%d
IF ERRORLEVEL 1 GOTO END
ECHO.
ECHO A Instalar Microsoft Office 2003 Pro com SP1
start /wait %OFFICE%\setup.exe TRANSFORMS=Unattended.mst /qb-
ECHO.
ECHO Por favor insira o CD de Instalacao do Windows XP
ECHO Dentro de 1 minuto a instalacao ira prosseguir...
start /wait %CDROM%\$OEM$\pause.cmd
EXIT

:END
ECHO.
ECHO Nao foi possivel encontrar o CD de instalacao do Microsoft Office 2003 com SP1
ECHO A continuar a instalacao...
EXIT

Pause.cmd

cmdow @ /HID
PING -n 61 127.0.0.1>nul
exit

RunOnceEx.cmd

cmdow @ /HID
@echo off

FOR %%d IN (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\$OEM$\WinXP.txt SET CDROM=%%d

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

REG ADD %KEY% /V TITLE /D "A Instalar Aplicacoes" /f

REG ADD %KEY%\001 /VE /D "A Instalar Microsoft Office 2003 com SP1" /f
REG ADD %KEY%\001 /V 1 /D "%CDROM%\$OEM$\Office.cmd" /f

REG ADD %KEY%\005 /VE /D "A Instalar Windows Script v5.6" /f
REG ADD %KEY%\005 /V 1 /D "%SYSTEMDRIVE%\Install\scripptg.exe /Q:A /R:N" /f

REG ADD %KEY%\010 /VE /D "A Instalar .NET Framework v1.1 com SP1" /f
REG ADD %KEY%\010 /V 1 /D "%SYSTEMDRIVE%\Install\netfxsp1.exe" /f

REG ADD %KEY%\015 /VE /D "A Finalizar Instalacao" /f
REG ADD %KEY%\015 /V 1 /D "REGEDIT /S %SYSTEMDRIVE%\Install\RegTweaks.reg" /f
REG ADD %KEY%\015 /V 2 /D "%CDROM%\$OEM$\cleanup.cmd" /f

EXIT

Where is my error :P ? I prefer using your method rather then with thr CDR utility. This way, I should *theorically* be able to continue installation if I don't want to install Office or I'm not around.

Thanks!

Link to comment
Share on other sites

@nOBeLium lol, for me it looks perfect, the only thing that can cause that error it's that the office setup.exe file it's not on the root on of your office folder... thing that i doubt...

anyway i've changed a little the code so you can try this...

@ECHO OFF
TITLE Instalacion de Microsoft Office 2003 y Adobe Photoshop CS
COLOR 70
ECHO.                                                        ____
ECHO            ______________________________  ____________/   /________
ECHO   -=-=-=-=/ __________________/  _ \  _  \/ ____\____  \  /  \/ ____\-=-=-=-=-
ECHO       ____\___ \/   \/ _ _   /   / /  /  /\___ \/   /  /__   /\___ \
ECHO -=-=-/ ________/ ___/__/_/  /_____/__/  /______/\_____/  /  /______/=-=-=-=
ECHO      \/(-Dvc!-)\/       / _/        / _/             /_____/
ECHO                         \/          \/
ECHO.
ECHO.
ECHO Por favor inserta el CD de Microsoft Office 2003 SP1
ECHO En 1 minuto se continuara la instalacion...
FOR %%d IN (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\$OEM$\BioHaZaRD.nfo SET CDROM=%%d
start /wait %CDROM%\$OEM$\pause.cmd
FOR %%d IN (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\Unattended.mst SET OFFICE=%%d
FOR %%d IN (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 NOT EXIST %%d\Office2003\Unattended.mst GOTO END

ECHO.
ECHO  Instalando Microsoft Office 2003 SP1
start /wait %OFFICE%\setup.exe TRANSFORMS=%OFFICE%\Unattended.mst /qb-
GOTO END

:END
ECHO Por favor inserta el CD de Instalacion de Windows XP SP2
ECHO En 1 minuto se continuara la instalacion...
start /wait %CDROM%\$OEM$\pause.cmd
EXIT

Link to comment
Share on other sites

Hm...according to wat I read on your code, if you insert office cd in 1 min, it will start the setup, otherwise, it will continue the installation, right?

This means that if I'm not around, windows can still setup the rest of runonceex without halting.

Am I correct?

Thanks again^;)

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