Jump to content

Recommended Posts

Posted

In the guide to Unattended Installation of XP where you get windows on first boot to run a batch file, is it possible for a popup to come up asking for you to insert the correct CD and then when you put the CD in, press OK and ot starts using that CD for installation of programs rather than it on the acutual unattended windows CD?

This could be useful if you want to change what programs you want to install for different computers and have the programs on different CD's


Posted

Kind of defeats the purpose of an "unattended" install, but I suppose it could be done like so:

IF NOT EXIST %CDROM%\xxxxx.txt GOTO INSCD

:INSCD
ECHO.
ECHO Please insert CD 2
PAUSE
IF NOT EXIST %CDROM%\xxxxx.txt GOTO INSCD
IF EXIST %CDROM%\xxxxx.txt GOTO INSTALL

:INSTALL
%CDROM%\whatever

:FINISH
ECHO.
ECHO Please insert Windows Unattended CD-ROM
PAUSE
IF NOT EXIST %CDROM%\win51 GOTO FINISH
IF EXIST %CDROM%\win51 GOTO QUIT

:QUIT
EXIT

Now, for that to work you'll need some way to define %CDROM% and replace xxxxx.txt with whatever file you want. But that should do it. I haven't tested it, mind you, but it should.

Posted

Right, jito's code above will do what you want.

Also, you can go to the Unattended Windows forum, and see the "stickied" topics there. There's one called "Threads of Interest" - it lists a topic that has been discussing exactly this (how to do a 2 CD install).

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