Jump to content

Unattended Xpcd Setup Script


Recommended Posts


DaveXP,

I found a small error in the script:

Line if %CDROM%==A GOTO :CD_ERR

But here is no condition

CD_ERR

In the script….

I did break up the script in several step because I you don’t need to run several step again if for example you add some hotfixes in the original you hade to go true the whole process again.

Here is what I did…

ECHO.

ECHO  Unattended Windows XP Setup Script

ECHO.

ECHO This will setup a Windows XP Unattended CD for you all you have to do it follow

ECHO the simple instruction on screen which will be displayed from time to

ECHO time the rest is done by its self.

ECHO DaveXP CMD Unattended Script Copyright © 2002-03

ECHO With thanks to devil270975 for his help with the script.

ECHO 1. Want to extract the original Windows XP CD? Press 1.

ECHO 2. Want to Creating Unattended Install setup directories? 2.

ECHO 3. Want to Extracting Service packs and slipstream them? 3.

ECHO 4. Want to Removing Useless Files From the Update and Creating Need Folder? 4.

ECHO 5. Want to Creating Folders For Unattended Applications and Tweaks? 5.

ECHO 6. Want to Creating WinNT.Sif file? 6.

ECHO 7. Want to Creating CMDLINES.TXT and USER Accounts? 7.

ECHO 8. Want to Creating Programs Setup.reg file? 8.

ECHO 9. Want to Copying Needed Unattended Files? 9.

ECHO 10. Want to Creating ISO file for later and/or burn 2 CD or DVD? 10.

ECHO 0. Quit

ECHO.

ECHO.

it give the option then to jump to the right part.

Ill upload the script later this evening from home so you could perhaps include it in your zips.

Keep up the good work

W

Should be like this and i will make the changes later.

SET MyInput=
ECHO 1. Want to extract the original Windows XP CD? Press 1.
ECHO 2. Want to Creating Unattended Install setup directories? 2.
ECHO 3. Want to Extracting Service packs and slipstream them? 3.
ECHO 4. Want to Removing Useless Files From the Update and Creating Need Folder? 4.
ECHO 5. Want to Creating Folders For Unattended Applications and Tweaks? 5.
ECHO 6. Want to Creating WinNT.Sif file? 6.
ECHO 7. Want to Creating CMDLINES.TXT and USER Accounts? 7.
ECHO 8. Want to Creating Programs Setup.reg file? 8.
ECHO 9. Want to Copying Needed Unattended Files? 9.
ECHO 10. Want to Creating ISO file for later and/or burn 2 CD or DVD? 10.
ECHO 0. Quit
ECHO.
SET /P MyInput=Please Chosen Your Section Now...:
IF %MyInput% == 1 GOTO 1
IF %MyInput% == 2 GOTO 2
IF %MyInput% == 3 GOTO 3
IF %MyInput% == 4 GOTO 4
IF %MyInput% == 5 GOTO 5
IF %MyInput% == 6 GOTO 6
IF %MyInput% == 7 GOTO 7
IF %MyInput% == 8 GOTO 8
IF %MyInput% == 9 GOTO 9
IF %MyInput% == 10 GOTO 10
IF %MyInput% == 0 GOTO 0

also note to do this i will have to re make the script if you only want to choses one option or more than one option.

Link to comment
Share on other sites

I've been having problems with the following statements in the script

FOR /f "usebackq delims==" %%i in (`dir /b xpsetup\Hotfixes\Type1\*.exe`) do (if exist xpsetup\Hotfixes\Type1\%%~ni.exe echo start /wait %%sytemdrive%%\Install\Hotfixes\%%~ni.exe /Q /M /Z >> XPCD\$OEM$\$1\Install\Hotfixes.cmd)

another script :

for /f "usebackq delims==" %%i in (`dir /b HFTYPE1\*.exe`) do echo %%~ni.exe /n /q /u /z >> svcpack.inf

I don't know why they don't work I haven't seen anyone complain about them but my command doesn't like this for /f "usebackq delims==" %%i for some reason

for /f "usebackq delims==" %i instead is accepts this

but then doesn't do the rest of the setup ?

anyone know why?

Link to comment
Share on other sites

Hi there,

First i'd like to thank Dave for his Script: i'm gonna create my first unattended XPcd, and it's obvious that this script is like a "god's gift" for me. :rolleyes:

I already have a custom XP pro SP1 CD, and i wonder if the options you just added to your script would allow me to bypass the slipstreaming SP1 step of the original script ?

I guess yes, but who knows :D

TIA

PS: please forgive my bad english :)

Link to comment
Share on other sites

Hi there,

First i'd like to thank Dave for his Script: i'm gonna create my first unattended XPcd, and it's obvious that this script is like a "god's gift" for me. :rolleyes:

I already have a custom XP pro SP1 CD, and i wonder if the options you just added to your script would allow me to bypass the slipstreaming SP1 step of the original script ?

I guess yes, but who knows  :D

TIA

PS: please forgive my bad english  :)

I have do a option script but there is a problem it wont go back to the start so give a another day or two, to fix that.

@XtremeMaC make sure when it asks wat it is put D for Directory.

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