Jump to content

Recommended Posts

Posted

Hello

Im trying to make a second cd for my Unattended XP install cd.

My first cd is pretty much made like the guide on this great page - im using a .bat called start.bat to install with.

Could someone tell my if this will work:

At the very end of my start.bat im writing this:

ECHO.
ECHO Deleting ASP.NET User Account created by .NET Framework 1.1...
net user aspnet /delete

ECHO.
ECHO Deleting Temp Installation Files...
RD /S /Q %systemdrive%\drivers
RD /S /Q %systemdrive%\install

EcHO.
ECHO Now getting ready to install Office 2000 and Games...

ECHO.
ECHO If you don't want to install Office 2000 and Games
ECHO press "CTRL+C" - answer Yes and press "ENTER"

ECHO.
ECHO If you do want to install Office 2000 and Games
ECHO do the following:

ECHO.
ECHO 1. Insert CD 2 ( Office 2000 and Games )
ECHO .
ECHO 2. Press any key to continue...
Pause

ECHO.
ECHO Continueing with the installation...
ECHO It might take a few seconds to start - please be patient...

IF EXIST %systemdrive%\Windows\System32\cd.bat GOTO RUNBATCH
SET CDROM2=
IF EXIST D:\install\cd.bat SET CDROM2=D:
IF EXIST E:\install\cd.bat SET CDROM2=E:
IF EXIST F:\install\cd.bat SET CDROM2=F:
IF EXIST G:\install\cd.bat SET CDROM2=G:
IF EXIST H:\install\cd.bat SET CDROM2=H:
IF EXIST I:\install\cd.bat SET CDROM2=I:
IF EXIST J:\install\cd.bat SET CDROM2=J:
IF EXIST K:\install\cd.bat SET CDROM2=K:
IF EXIST L:\install\cd.bat SET CDROM2=L:
IF EXIST M:\install\cd.bat SET CDROM2=M:
IF EXIST N:\install\cd.bat SET CDROM2=N:
IF EXIST O:\install\cd.bat SET CDROM2=O:

IF NOT EXIST %CDROM2%\install\cd.bat GOTO RUNBATCH

ECHO.
ECHO Please be patient while files are copied to your hard drive.
xcopy %CDROM2%\install %systemdrive%\install\ /S /C /Q /H /Y
ECHO.


:RUNBATCH
:: cmdow @ /hid

:: ECHO Running Main Batch ...
:: ECHO.
:: start /wait %systemdrive%\install\cd.bat

This should ( i think ) copy all the files from my CD to my %systemdrive% in a folder called install ( right ? ) and the start cd.bat ?

In my cd. bat is the following code:

ECHO.
ECHO Installing Wolfenstein Enemy Territory
ECHO Please wait...
start /wait %systemdrive%\install\Games\Wolf\Wolf.exe /S

ECHO.
ECHO Applying Update 1.02
ECHO Please wait...
start /wait %systemdrive%\install\Games\Wolf\Wolf102.exe /S

ECHO.
ECHO Importing personal settings and scripts to ET
ECHO Please wait...
xcopy %systemdrive%\install\Games\Wolf\Scripts %systemdrive%\Programmer\Wolfensten - Enemy Territory\ /S /C /Q /H /Y

ECHO.
ECHO Extracting Office 2000 ( Takes a few minuts perhaps )
start /wait %systemdrive%\install\unrar.exe x -o+ %systemdrive%\install\office\office.rar *.* %systemdrive%\install\

ECHO.
ECHO Installing Office 2000
ECHO Please wait...
start /wait %systemdrive%\install\Office\setup.exe TRANSFORMS=%CDROM%:\Office\Pez.MST /qn+

ECHO.
ECHO Deleting Temp Installation Files...
RD /S /Q %systemdrive%\drivers
RD /S /Q %systemdrive%\install

EXIT

Will this work ?

Thx Pezzie


Posted

silly question - why do you

xcopy %CDROM2%\install %systemdrive%\install\ /S /C /Q /H /Y
???

why not save a heck of a lot of time and install from CD???

Posted

also - does this :%systemdrive%\Programmer actually equate to the Program Files folder? If so try %programfiles% instead of what you got -but with your language - it might not work....

I think Continueing is spelled wrong....

also when you first run this: RD /S /Q %systemdrive%\install does it delete the BAT file that calls disc 2? (is the bat file that is running live in that volume?) if so, it will get deleted and not run anything else. Usually that has to be the last thing.

Posted

Ok thx for the input ( have corrected it already )

Let me explain it a bit more then.

After Win installation i call ( from GUIrunonce or something ) start.bat

This .bat file installes a load of hotfixes and so on.

At the end of the start.bat it calls to search for the cd.bat on the second cd.

When it findes the second cd with the cd.bat on it should then copy the whole thing on to the harddrive.

So the end of start.bat is actually a pause and then change of CD and then search for cd.bat.

I ask it to copy to the harddrive due to the .rar file - it needs to be extracted before i can install it. It seems therefore the most simple way to do it and since I just started a few days ago with this whole thing - it might be the best to do for the moment. ( besides buying a DVD drive )

Thx for the fast reply

Pezzie

Posted

instead of RAR files - try SFXs - it makes it easier to extract.

also, you can unRAR or extract from the cd to the hard drive, instead of copying the file over and then extracting. half the work.

get a copy of VmWare or Virtual PC to test your stuff. Make ISO files and mount them and swap them. Works practically the same.

Search the forums for installing from cd - it is a lot faster than copying files over from the cd and then installing. So instead of copying wolf from cd to hard drive and then installing, just install from the cd. you could do something like this -

start /wait %cdrom2%\install\Games\Wolf\Wolf.exe /S

You just need to define the cdrom2 variable in any bat file that it is used in.

not perfect match but look here - http://unattended.msfn.org/xp/runonceex_cd.htm

also - \$OEM$\$Progs on the CD equals the program files folder, so you could put some stuff there and it gets copied over when windows installs.

At the end of the start.bat it calls to search for the cd.bat on the second cd.
if your start.bat is in the %systemdrive%\install folder, it will get deleted when that command is executed, so it will never make it to the point where it looks for cd.bat know what I mean?

%systemdrive%\Windows = %systemroot%

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