Jump to content

[How To] Use multiple CDs on your setup


Recommended Posts


you could include my VBS if you wanted, replace the SLEEP that way there is a visual prompt that they have to click when they're done. True it will disable the unattend, but for the people that don't have two CDROMS that will disable the unattend as well, as they'd have to be present to install Office.

you could also use ping, and ping the localhost to cause the sleep as well.

Link to comment
Share on other sites

about people that don't have 2 cdroms, they can just copy the office installation cd to C:\ and it will still work :D but what if that people don't have enought space or simply don't want to?? i'll add a paragraph :P

about ping i dunno how to use it :no:

Link to comment
Share on other sites

i've found a way to pause the script for 1 minute using the ping command

start /wait PING -n 61 127.0.0.1>nul

this will let us a minute or so, problem now it's that the new cmd window it's visible and annoys me, do any1 know how to hide it??

Link to comment
Share on other sites

  • 2 weeks later...

Hi…

Can I add my way for the 2nd CD….. I've made exe file and it's work fine now….the way is very easy just you need to change the file name you wont to setup it in the .cmd file and put that .cmd file on your %systemdrive% by any way you like.. as $OEM$ or other ways just it must to be on the %systemdrive% at the time you went to setup programs from the 2nd cd ….and you need also cd2.txt to be on the root or the 2nd cd, so just we need this 4 (CD2.txt + 2NDCD.cmd + cdeject.exe + cdr.exe) files….

I'll put them at all in the attachments, just you need to edit the .cmd as you need

2NDCD.cmd:

cls

@ECHO OFF

ECHO.

SET CDROM2=

IF EXIST D:\CD2.txt SET CDROM2=D:

IF EXIST E:\CD2.txt SET CDROM2=E:

IF EXIST F:\CD2.txt SET CDROM2=F:

IF EXIST G:\CD2.txt SET CDROM2=G:

IF EXIST H:\CD2.txt SET CDROM2=H:

IF EXIST I:\CD2.txt SET CDROM2=I:

IF EXIST J:\CD2.txt SET CDROM2=J:

IF EXIST K:\CD2.txt SET CDROM2=K:

IF EXIST L:\CD2.txt SET CDROM2=L:

IF EXIST M:\CD2.txt SET CDROM2=M:

IF EXIST N:\CD2.txt SET CDROM2=N:

IF EXIST %CDROM2%\CD2.TXT GOTO RUN

cls

:RUN

ECHO.

start /wait %CDROM2%\SETUP.exe TRANSFORMS=Unattended.MST /qb-

cls

ECHO.

EXIT

This ismine it is just for the Office, so you can your program here…also I must to tell you that the .cmd file will work in hide mood so you'll not see the Dos black screen

And this is my way to call it also…..

Runonceex.inf:

HKLM,"%RunOnceEx%\install13",,,"13- Please Insert CD 2"

HKLM,"%RunOnceEx%\install13",1,,"%10%\Apps4\CDR.exe open ALL"

HKLM,"%RunOnceEx%\install13",2,,"%10%\Apps4\cdeject.exe"

I hope that it help you,,,Tell me about it if it work with you or not……

2nd_cd.rar

Link to comment
Share on other sites

LoL, also this method can be applied to other program or many programs. the administrative installation of office don't take a full cd so i'm thinking on adding photoshop or any other program to the list, just placing this lines on the script:

start /wait %OFFICE%\SETUP.exe TRANSFORMS=Unattended.MST /qb-
start /wait %OFFICE%\ApplicationDir01\Application01.exe
start /wait %OFFICE%\ApplicationDir02\Application02.exe
start /wait %OFFICE%\ApplicationDir..\Application...exe

:thumbup

Link to comment
Share on other sites

  • 2 weeks later...

Hi all,

Thanks very much for work done so far. I am currently trying for a 2 CD unattended install but am tripping up when changing CD's. Using Virtual PC when i change over the cd in the "capture iso" menu it cant find the office file on the new cd.

I have attached the my RunonceEx.cmd file, it is basiacally the same as Alanolls post on page 1.

My files are located on my D:\unattendedxp\xpcd\ folder and officexp (acutally 2003 but not splitting hairs) is located in the \xpcd\$OEM$\$1\applications\officexp dir.

The VB script works find to eject the cd etc (vitrual in this case) however just doesnt find the setup.exe for office on the next cd. I have cd1.txt and cd2.txt in the root of both the ISO cd's.

Any ideas?

Thanks.

RunOnceEx.txt

Link to comment
Share on other sites

@wookieNZ

IF EXIST D:\CD1.txt set XPCD=D:
IF EXIST E:\CD2.txt set XPCD=E:
IF EXIST F:\CD3.txt set XPCD=F:
IF EXIST G:\CD4.txt set XPCD=G:
IF EXIST H:\CD5.txt set XPCD=H:
IF EXIST I:\CD6.txt set XPCD=I:
IF EXIST J:\CD7.txt set XPCD=J:

:huh: XPCD it's not properly set, it should look like

IF EXIST D:\CD1.txt set XPCD=D:
IF EXIST E:\CD1.txt set XPCD=E:
IF EXIST F:\CD1.txt set XPCD=F:
IF EXIST G:\CD1.txt set XPCD=G:
IF EXIST H:\CD1.txt set XPCD=H:
IF EXIST I:\CD1.txt set XPCD=I:
IF EXIST J:\CD1.txt set XPCD=J:

and how did you set "%install%" variable? in runonceex it's not stablished

Link to comment
Share on other sites

cls

@ECHO OFF

ECHO.

SET CDROM2=          (unnecessary)

IF EXIST D:\CD2.txt SET CDROM2=D:

IF EXIST E:\CD2.txt SET CDROM2=E:

IF EXIST F:\CD2.txt SET CDROM2=F:

IF EXIST G:\CD2.txt SET CDROM2=G:

IF EXIST H:\CD2.txt SET CDROM2=H:

IF EXIST I:\CD2.txt SET CDROM2=I:

IF EXIST J:\CD2.txt SET CDROM2=J:

IF EXIST K:\CD2.txt SET CDROM2=K:

IF EXIST L:\CD2.txt SET CDROM2=L:

IF EXIST M:\CD2.txt SET CDROM2=M:

IF EXIST N:\CD2.txt SET CDROM2=N:

You know, it's so simple I can't believe I didn't think of it sooner. Maybe because it's so simple? I've been having an odd issue lately with my TechDVD where I use finddrv along with the label to find my DVD drive and set it as a variable (%tech%).
:CDCOMMON

LH MOUSE.COM

LH MSCDEX.EXE /D:oemcd001 /L:J

A:\FINDDRV TechDVD

if errorlevel 10                set tech=j:

if errorlevel 11 set tech=k:

if errorlevel 12                set tech=l:

set tech=%tech%

path %temp%;A:;%tech%

That worked under IsoLinux with mkisofs. But with CDImage and CDShell, it can't find the drive even though if I switch manually to the drive my disc is in and do a dir listing it shows the label correctly. Well, duh. Here's this idea and it solves all my problems. I just created a blank file called TechDVD (no extension needed) and do:

if exist j:\techdvd  set tech=j:

if exist k:\techdvd  set tech=k:

if exist l:\techdvd  set tech=l:

set tech=%tech%

path %temp%;A:;%tech%

That did it. Thanks for helping me realize my ignorance ;)

And as a bonus, I even manage to get rid of an extra line, heh.

Link to comment
Share on other sites

@simonsays

I have changed the code block as you described but still getting the "cant find \install\appplications\officexp\setup.exe" error.

A question: i have added cd2.txt to the office cd iso but i dont get to use it according to the code block, is this right?

Cheers.

Link to comment
Share on other sites

@simonsays

I have changed the code block as you described but still getting the "cant find \install\appplications\officexp\setup.exe" error.

check the paths, the code SHOULD work

A question: i have added cd2.txt to the office cd iso but i dont get to use it according to the code block, is this right?
you need to stablish a second variable like in the example %OFFICE%:
IF EXIST D:\CD2.txt set OFFICE=D:

IF EXIST E:\CD2.txt set OFFICE=E:

IF EXIST F:\CD2.txt set OFFICE=F:

IF EXIST G:\CD2.txt set OFFICE=G:

IF EXIST H:\CD2.txt set OFFICE=H:

IF EXIST I:\CD2.txt set OFFICE=I:

IF EXIST J:\CD2.txt set OFFICE=J:

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