MSFN Forum: [How To] Use multiple CDs on your setup - MSFN Forum

Jump to content



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

[How To] Use multiple CDs on your setup Rate Topic: -----

#41 User is offline   SiMoNsAyS 

  • C'mon you apes! You wanna live forever!?
  • Group: Patrons
  • Posts: 3,455
  • Joined: 17-May 04

Posted 17 September 2004 - 09:01 AM

Script Updated!
Now with a nice GUI! ;)

Attached File(s)




#42 User is offline   nOBeLium 

  • Junior
  • Pip
  • Group: Members
  • Posts: 51
  • Joined: 17-April 04

Posted 28 September 2004 - 02:18 PM

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!

#43 User is offline   SiMoNsAyS 

  • C'mon you apes! You wanna live forever!?
  • Group: Patrons
  • Posts: 3,455
  • Joined: 17-May 04

Posted 28 September 2004 - 02:45 PM

@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


#44 User is offline   nOBeLium 

  • Junior
  • Pip
  • Group: Members
  • Posts: 51
  • Joined: 17-April 04

Posted 29 September 2004 - 06:55 AM

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^;)

#45 User is offline   SiMoNsAyS 

  • C'mon you apes! You wanna live forever!?
  • Group: Patrons
  • Posts: 3,455
  • Joined: 17-May 04

Posted 29 September 2004 - 08:02 AM

nOBeLium, on Sep 29 2004, 02:55 PM, said:

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

that's exactly what i wanted so yes it will continue the installation with no prompts. ;)

#46 User is offline   nOBeLium 

  • Junior
  • Pip
  • Group: Members
  • Posts: 51
  • Joined: 17-April 04

Posted 29 September 2004 - 08:53 AM

Thanks for the code adjust.

Gracias hermano :P

Edit: Think I found a little bug:

start /wait %OFFICE%\setup.exe TRANSFORMS=%OFFICE%\Unattended.mst /qb-


I don't see the need for the OFFICE variable before Unattended.mst...or am I wrong?

#47 User is offline   SiMoNsAyS 

  • C'mon you apes! You wanna live forever!?
  • Group: Patrons
  • Posts: 3,455
  • Joined: 17-May 04

Posted 29 September 2004 - 09:12 AM

nOBeLium, on Sep 29 2004, 04:53 PM, said:

Thanks for the code adjust.

Gracias hermano :P

Edit: Think I found a little bug:

start /wait %OFFICE%\setup.exe TRANSFORMS=%OFFICE%\Unattended.mst /qb-


I don't see the need for the OFFICE variable before Unattended.mst...or am I wrong?

yes and no... still untested
sometime ago i read about a guy that got problems if he didn't specify the patch to the unattended.mst file so that's why i added it, just to prevent problems :P
you can try in your current installation and if it fails then you know what it's the problem. hope it works and can help u

Gracias a ti :P

#48 User is offline   nOBeLium 

  • Junior
  • Pip
  • Group: Members
  • Posts: 51
  • Joined: 17-April 04

Posted 29 September 2004 - 10:06 AM

Hey!

EDIT! Not working properly!

#49 User is offline   SiMoNsAyS 

  • C'mon you apes! You wanna live forever!?
  • Group: Patrons
  • Posts: 3,455
  • Joined: 17-May 04

Posted 29 September 2004 - 10:10 AM

@nOBeLium, done! :yes:

#50 User is offline   nOBeLium 

  • Junior
  • Pip
  • Group: Members
  • Posts: 51
  • Joined: 17-April 04

Posted 29 September 2004 - 10:15 AM

Sorry, it was working good IF the file existed...but I tried to see if it worked if the file didn't exist,. If it doesn't, a box pops up saying setup.exe doesn't exist.

Here's the fix:

@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 NOT EXIST %%d\Office2003\Unattended.mst GOTO END
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

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


Basically, you should check first if it doesn't exist and then if it exists... Sorry for late fix :rolleyes:

#51 User is offline   SiMoNsAyS 

  • C'mon you apes! You wanna live forever!?
  • Group: Patrons
  • Posts: 3,455
  • Joined: 17-May 04

Posted 29 September 2004 - 10:22 AM

that's really stranege becase i've run it many times in my vpc and worked flawlessly but if you say it works better that way... updated again! :P

#52 User is offline   ran 

  • Junior
  • Pip
  • Group: Members
  • Posts: 64
  • Joined: 18-August 04

Posted 05 October 2004 - 11:14 PM

OK,

First, thanks so much for the batch code...

Second, I've been modifying it to utilize the fact that I have two CDROM drives. Hence, I just want to put the WinXP disc in the first drve, the Office 2003 disc in the second drive and let the whole process run its course.

However, I find that during testing, if the batch finds an "empty" drive, I receive an INT 24 error and it halts the batch.

Is there a way to avoid or make this errorcode silent?

I've found this Code that calls %comspec% with the '/f' switch which silences the "empty drive" problem.

@echo off
  if "%1"=="" goto _help
  ctty nul
  %comspec% /f /c dir %1: | find "Directory of "
  ctty con
  if errorlevel==0 if not errorlevel==1 goto _isready
  echo Drive %1 is NOT ready
  goto _end
  ::
  :_isready
  echo Drive %1 is ready
  goto _end
  ::
  :_help
  echo Usage %0 [DriveLetter]
  ::
  :_end



Is there a way to adapt this to your batch? I think I could modify it at each drive letter call, but then I'd have a long series of checking if each drive letter exists, then checking to see if that drive letter contains the CD with my "detection file"..

Is there something altogether different (& easier) that I could use?

.....I'm must too tired right now to figure it out..... 8-)

Ran

P.S. You may wonder why I want this? Well, sometimes I have a number of drives in the computer - some of which may contain unformatted partitions or be empty. Hence, I'd like some way of overcoming this....

#53 User is offline   SiMoNsAyS 

  • C'mon you apes! You wanna live forever!?
  • Group: Patrons
  • Posts: 3,455
  • Joined: 17-May 04

Posted 06 October 2004 - 06:39 AM

@ran lol first of all thanks :)
it's supposed that the script would run even with the 2 CDs on 2 different units... check out latest version of the script on first post.
about implementing that code on mine, it's probably possible but sorry at this time i don't have much time now. i'll take a look later if i can.

#54 User is offline   DarkAngel2057 

  • Group: Members
  • Posts: 3
  • Joined: 06-May 05

  Posted 06 May 2005 - 04:57 AM

Hi all, I'm new to this forum and I must that you ppl rock!!!! :thumbup

BTW, thanx to SiMoNsAyS & nOBeLium, I successfully created an Unattended CD for Office 2K3 :w00t:

#55 User is offline   SiMoNsAyS 

  • C'mon you apes! You wanna live forever!?
  • Group: Patrons
  • Posts: 3,455
  • Joined: 17-May 04

Posted 06 May 2005 - 10:04 AM

happy to serve the communitty :)

it is nice to see how this thread can still help :D

#56 User is offline   colemancb 

  • VIVA LA RESISTANCE!
  • PipPip
  • Group: Members
  • Posts: 121
  • Joined: 27-May 05

Posted 27 May 2005 - 10:14 AM

Love this, but here's what I did. The wrong English was bothering me, so I fixed it to correct English.

It's attached...

Attached File  MediaSwitcher_CosmeticFixes.rar (56.13K)
Number of downloads: 119

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