Jump to content

Recommended Posts

Posted

I've been working on a DVD that would boot into WinPE 2004 to do basic recovery and Windows XP SP2 installations.

It also has the complete Office 2003 product family with SP1 setup via an administrative installation point.

I've got everything working except the $OEM$ part.

The scripts I'm using are below with thier paths.

X:\i386\System32\StartNet.cmd

echo off
title Title
echo Starting PE Network Configurator
PENetCfg /UseProfile
CD /D X:\WinXP\i386\
cls
echo.
echo Windows Preinstallation Environment 2004
echo.
echo Extra tools include WinSCP, PuTTY, and RealVNC
echo.
echo Enter "Wipe0" or "Wipe1" to create a partition
echo.
echo Enter "WinXP" to install Windows XP with SP2

X:\i386\System32\Wipe#.bat

DISKPART /S WIPE#.TXT

X:\i386\System32\Wipe#.txt

Select Disk #
Clean
Create Partition Primary
Assign
Active

X:\WinXP\i386\WinXP.bat

cls
@echo off
echo.
echo Formating C: (NTFS)
FORMAT C: /FS:NTFS /Q /Y
echo.
echo Copying $OEM$ to C:
MD C:\$OEM$
CD /D X:\WinXP\$OEM$
XCOPY /E *.* C:\$OEM$
echo.
echo Copying i386 to C:
MD C:\i386
Attrib +H C:\i386
CD /D X:\WinXP\i386
XCOPY /E *.* C:\i386
echo.
echo Installing Windows XP
CD /D C:\i386
WinNT32 /S:C:\i386 /Unattend:Unattend.txt
Exit

C:\i386\Unattend.txt

;SetupMgrTag
[Data]
   AutomaticUpdates=1
   AutoPartition=0
   MsDosInitiated=0
   UnattendedInstall=1

[Unattended]
   Win9xUpgrade=No
   NTUpgrade=No
   TargetPath=\Windows
   UnattendMode=ProvideDefault
   UnattendSwitch=Yes
   OemPreinstall=Yes
   OemPnPDriversPath="%SystemDrive%\$OEM$\$1\Drivers\0_Chipset;%SystemDrive%\$OEM$\$1\Drivers\Drivers\1_Network"
   OemSkipEula=Yes

[GuiUnattended]
   EncryptedAdminPassword=No
   ProfilesDir="C:\Documents & Settings\"
   OEMSkipRegional=1

[UserData]
   ProductKey=XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
   FullName=""
   OrgName=""

[Display]
   BitsPerPel=32
   Xresolution=1024
   YResolution=768
   Vrefresh=75

[TapiLocation]
   CountryCode=1
   Dialing=Tone

[Identification]
   JoinWorkgroup=Workgroup

[Networking]
   InstallDefaultComponents=Yes

[Components]
   msnexplr=off
   zonegames=off

C:\i386\SvcPack.inf

[Version] 
Signature="$Windows NT$"
MajorVersion=5
MinorVersion=1
BuildNumber=2600

[SetupData]
CatalogSubDir="\i386\HotFixes"

[ProductCatalogsToInstall]

[SetupHotfixesToRun]
KB834707.exe /Q /O /N /Z
qchain.exe

C:\$OEM$\CmdLines.txt

ECHO.
ECHO Installing .NET Framework v1.1
start /wait %SystemDrive%\Install\NetFramework\netfx.msi /QB
ECHO.
ECHO Installing .NET Framework v1.1 SP1
start /wait %SystemDrive%\Install\NetFramework\KB867460.exe /Q
ECHO.
ECHO Installing Windows Media Player 10
start /wait %SystemDrive%\Install\WMP10\MP10Setup.exe /q:A /c:"setup_wm.exe /Q /R:N /DisallowSystemRestore"
ECHO.
ECHO Installing Windows Messenger 5.0
start /wait %SystemDrive%\Install\Messenger\Messenger.msi /QB

The DVD boots, I can wipe whatever drive I want, the WinXP.bat copies the $OEM$ & i386 directories to the C: drive, Starts an unattended installation, completes the install without error, but MSN Explorer 7 and MSN Zone Games are installed when I scripted them not to be, SvcPack.inf ran successfully but CmdLines.txt did not.

It seems like $OEM$ never gets processed? I've read most of http://unattended.msfn.org and the searched the Microsoft Windows Corporate Deployment Tools User's Guide (CHM)


Posted

since you're executing the install from within WIndows, $OEM$ needs to be within I386 i believe.

CMDLINES.TXT does not work, because you didn't write one. You have a file called CMDLINES.TXT but it is NOT the proper format.

[Commands]
"COmmand 1"
"COmmand 2"

Is how CMDLINES.TXT should look. Most people call a batch file (what you currently have) from CMDLINES.TXT because alot of DOS functions are not available directly from CMDLINES.TXT but calling a batch file solves that.

As for MSN Explorer and MSN Messenger, do a search. SOmetimes its the placement within WINNT.SIF and it fixes it (usually right after GUIUnattend). If that doesn't, try using nLite to completely remove it.

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