Jump to content

Unattend not working entirely


Recommended Posts

I have tried 4 cd burns now and still failure. Been at this 12 hrs now.

I'll give as much info as accurately as I can so someone can help find my mistakes.

1) Copied entire slipstreamed sp1(not sp1a) to C:\WXP

2) Created $OEM$\$1\DRIVERS

$OEM$\$1\DRIVERS\ATA

$OEM$\$1\DRIVERS\DISPLAY

$OEM$\$1\DRIVERS\MOUSE

$OEM$\$1\DRIVERS\NIC

$OEM$\$1\DRIVERS\PRINTER

$OEM$\$1\DRIVERS\VIDEO

$OEM$\$1\SOFTWARE

$OEM$\$1\SVCPACK

Problems:

I guess the biggest one is $OEM$ not being copied to the %systemdrive%

Beyond that I'm not sure I am understanding completely how to type the paths for the Drivers, and to the batch cmd's.

Also I thought I had it set to not ask to set up user accounts and just log right in as Administrator (It does this) but not w/o making me create at least on account.

Here are excerpts from my WINNT.SIF and my batch files so that someone may help me.

SVCPACK.CMD Excerpt:

CLS

@echo off

ECHO.

ECHO Installing Windows Update Hotfixes

ECHO.

ECHO Installing Q329115...

start /wait %systemdrive%\$OEM$\$1\SVCPACK\Q329115.EXE /Q /M /Z

PAUSE

EXIT

SOFTWARE.CMD Excerpt:

CLS

@echo off

ECHO Installing Microsoft DirectX 9.0B 4.09.0000.0902

ECHO Please wait...

start /wait %systemdrive%\$OEM$\$1\SOFTWARE\DXSETUP.EXE /opk

PAUSE

EXIT

WINNT.SIF

[Data]

AutoPartition=0

MsDosInitiated="0"

UnattendedInstall="Yes"

[unattended]

UnattendMode=FullUnattended

OemSkipEula=Yes

OemPreinstall=No

TargetPath=\WINDOWS

Repartition=No

UnattendSwitch="No"

WaitForReboot="No"

DriverSigningPolicy=Ignore

OemPnPDriversPath="\$OEM$\$1\DRIVERS\ATA;\$OEM$\$1\DRIVERS\VIDEO;\$OEM$\$1\DRIVERS\DISPLAY;\$OEM$\$1\DRIVERS\NIC;\$OEM$\$1\DRIVERS\MOUSE;\$OEM$\$1\DRIVERS\PRINTER"

[GuiUnattended]

AdminPassword=*

EncryptedAdminPassword=NO

AutoLogon=Yes

AutoLogonCount=1

OEMSkipRegional=1

TimeZone=90

OemSkipWelcome=1

[GuiRunOnce]

\$OEM$\$1\SOFTWARE\SOFTWARE.CMD

\$OEM$\$1\SOFTWARE\SVCPACK.CMD

I can say that if I copy the $OEM$ to my HDD root and go into either SVCPACK or SOFTWARE and run my batch each runs in its entirety w/o errors

Thank you in advance for you help.

Link to comment
Share on other sites


Actually I had this set then used the wrong edit of winnt.sif here is what I have now and meant to use last try.

Add this to my other info and then lets see what needs fixed before I try again LOL

[Data]

AutoPartition=0

MsDosInitiated="0"

UnattendedInstall="Yes"

[unattended]

UnattendMode=FullUnattended

OemSkipEula=Yes

OemPreinstall=Yes

TargetPath=\WINDOWS

Repartition=No

UnattendSwitch="Yes"

WaitForReboot="No"

DriverSigningPolicy=Ignore

OemPnPDriversPath="%systemdrive%\$OEM$\$1\DRIVERS\ATA;%systemdrive%\$OEM$\$1\DRIVERS\VIDEO;%systemdrive%\$OEM$\$1\DRIVERS\DISPLAY;%systemdrive%\$OEM$\$1\DRIVERS\NIC;%systemdrive%\$OEM$\$1\DRIVERS\MOUSE;%systemdrive%\$OEM$\$1\DRIVERS\PRINTER"

[GuiUnattended]

AdminPassword=*

EncryptedAdminPassword=NO

AutoLogon=Yes

AutoLogonCount=1

OEMSkipRegional=1

TimeZone=90

OemSkipWelcome=1

[GuiRunOnce]

%systemdrive%\$OEM$\$1\SOFTWARE\SOFTWARE.CMD

%systemdrive%\$OEM$\$1\SOFTWARE\SVCPACK.CMD

Link to comment
Share on other sites

also you have the wrong file paths in your files they all need to be changed. for instance you have this

[GuiRunOnce]

\$OEM$\$1\SOFTWARE\SOFTWARE.CMD

\$OEM$\$1\SOFTWARE\SVCPACK.CMD

it need to be changed to this

[GuiRunOnce]

%systemdrive%\SOFTWARE\SOFTWARE.CMD

%systemdrive%\SOFTWARE\SVCPACK.CMD

this needs to be changed in all your cmd files also.

oh and one more thing.

try this for you hot fixes. if you want them installed that way.

CLS
@echo off
ECHO Installing All Pre-SP2 Hotfixes...
ECHO Please Wait...
CD "%systemdrive%\install\Hotfixes1
for %%i in (*.exe) do start /wait %%i -u -f -o -z -q -m
ECHO Done.
ECHO Installing All Pre-SP2 Cumulative patches...
ECHO Please Wait...
CD "%systemdrive%\install\Hotfixes2
for %%i in (*.exe) do start /wait %%i /Q:A /R:N
ECHO Done.
ECHO Installing All Pre-SP2 Extra patches...
ECHO Please Wait...
CD "%systemdrive%\install\Hotfixes3
for %%i in (*.exe) do start /wait %%i /C:"dahotfix /q /n" /Q
ECHO Done.
EXIT

I have it setup with 3 different hot fix directories the old style go in Hotfixes1

. The new style with the colored icons go into Hotfixes2 and last but not least the last hotfix for mdac goes into hotfixes3.

Hope this helps.

Link to comment
Share on other sites

Okay, let's go that through step by step:

1.) Copying $OEM$ content to %systemdrive%:

[unattended]UnattendMode=FullUnattended

OemSkipEula=Yes

OemPreinstall=No

Change OemPreinstall=No to OemPreinstall=Yes. This will tell Windows to copy the $OEM$\$1$ content to %systemdrive% at the end of the non-gui version of the Windows Setup routine.

2.) Problem with driver paths:

Your OemPnPDriversPath is not entirely correct. Change it to

OemPnPDriversPath="DRIVERS\ATA;DRIVERS\VIDEO;DRIVERS\DISPLAY;\DRIVERS\NIC;DRIVERS\MOUSE;DRIVERS\PRINTER"

you musn't write the \$OEM$\$1\ parts in there.

3.) Running your final batch (SVCPACK.CMD):

I am not quite sure about the folder namings being allowed/recognized by the setup routine. I will have a closer look at that tomorrow. BUT you must edit you batch. If your CD's folder structure looks like this $OEM$\$1$\software then the setup routine will copy the software folder (and only the software folder) onto you systemdrive. The result will look like this %systemdrive%\software and NOT %systemdrive%\$OEM$\$1$\software. Be carful with that.

With this information in mind you need to edit your batches to pathes like this:

start /wait %systemdrive%\SVCPACK\Q329115.EXE /Q /M /Z

Finally a piece of information: Get yourself a copy of VMware or VirtualPC (by Connectix). These Software emulate a naked PC under a running Windows Operating System. With this you may create ISOs to install from so you don't need to burn that much CDs. Might save you a little fortune :)

I hope I could help and good luck.

Link to comment
Share on other sites

@Nephilim I've looked at the guide quite a bit actually, just started second guessing myself....big thing about that was I thought the whole $OEM$ and contents where copied to the root, thats why the paths in the guide did not make sense to me

Link to comment
Share on other sites

WOW I am IMPRESSED with all the help here. This actually just started off as a learning exp. then got a little tedious, but I like challenges. This all started off here: http://www.microsoft.com/windowsxp/pro/dow...p1/hfdeploy.asp read the "The Combination Installation" section it's about integrating the hotfixes into the installation....that was a complete disaster...again I only followed that as well as my common sense allowed me to, then I remebered this guide from MSFN that I had stumbled across and bookmarked weeks ago.

So anyway w/o getting anymore complicated am I to understand that just my SVCPACK and SOFTWARE and DRIVERS dir's will be copied to the root of the install drive? Another question as far as the drivers go, if this is all copied at the end of the install am I to assume that Windows install does not search the drivers you specify in winnt.sif until that time instead of during the hardware detection phase of the setup? OK thats 2 questions now #3 will this work for me now?

winnt.sif

[Data]    AutoPartition=0

    MsDosInitiated="0"

    UnattendedInstall="Yes"

[unattended]

    UnattendMode=FullUnattended

    OemSkipEula=Yes

    OemPreinstall=Yes

    TargetPath=\WINDOWS

    Repartition=No

    UnattendSwitch="Yes"

    WaitForReboot="No"

    DriverSigningPolicy=Ignore

    OemPnPDriversPath="DRIVERS\ATA;DRIVERS\VIDEO;DRIVERS\DISPLAY;DRIVERS\NIC;DRIVERS\MOUSE;DRIVERS\PRINTER"

[GuiUnattended]

    AdminPassword=*

    EncryptedAdminPassword=NO

    AutoLogon=Yes

    AutoLogonCount=1

    OEMSkipRegional=1

    TimeZone=90

    OemSkipWelcome=1

[GuiRunOnce]

    %systemdrive%\SOFTWARE\SOFTWARE.CMD

    %systemdrive%\SVCPACK\SVCPACK.CMD

SVCPACK.CMD

CLS

@echo off

ECHO.

ECHO Installing Windows XP Critical Updates & Service Packs

ECHO.

ECHO Installing Q329115...

start /wait %systemdrive%\SVCPACK\Q329115.EXE /Q /M /Z

ECHO.

ECHO Installing Q329048...

start /wait %systemdrive%\SVCPACK\Q329048.EXE /Q /M /Z

ECHO.

ECHO Installing Q323255...

start /wait %systemdrive%\SVCPACK\Q323255.EXE /Q /M /Z

ECHO.

ECHO Installing Q329834...

start /wait %systemdrive%\SVCPACK\Q329834.EXE /Q /M /Z

ECHO.

ECHO Installing Q329170...

start /wait %systemdrive%\SVCPACK\Q329170.EXE /Q /M /Z

Ect Ect Ect

PAUSE

EXIT

SOFTWARE.CMD
CLS

@echo off

ECHO.

ECHO Installing Windows Software Components

ECHO.

ECHO Installing MSN Explorer 7.2.11.2700

ECHO Please wait...

start /wait %systemdrive%\SOFTWARE\MSNSETUP.EXE /Q:A /R:N

ECHO.

ECHO Installing Windows Messenger 5.0.0.381

ECHO Please wait...

start /wait %systemdrive%\SOFTWARE\MESSENGER.MSI /qb

ECHO.

ECHO Installing Windows Movie Maker 2.0.3312.0

ECHO Please wait...

start /wait %systemdrive%\SOFTWARE\MM20.MSI /qn

ECHO.

ECHO Installing Windows Media Player 9.0.0.2980

ECHO Please wait...

start /wait %systemdrive%\SOFTWARE\MPSETUPXP.EXE /Q:A /R:N

ECHO.

ECHO Installing MSN Messenger 6.0.0.602

ECHO Please wait...

start /wait %systemdrive%\SOFTWARE\MSNMSGS.MSI /QB

ECHO.

ECHO Installing Microsoft DirectX 9.0B 4.09.0000.0902

ECHO Please wait...

start /wait %systemdrive%\SOFTWARE\DXSETUP.EXE /opk

PAUSE

EXIT

Link to comment
Share on other sites

ah thats nothing wait till you see the next thing I'm going to post about. It'll take few days but I'll have it all automated and other good stuff.

There will also be a allot of inf file usage to pretty it up and also a few other little things to hide cmd files.

I hope I have enough time to get it done. I just posted the other stuff because so many have been asking for it.

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