Jump to content

Issues with $OEM$ folder with install


Recommended Posts

Hi all, my first time posting here. was wondering if someone could help me out, i've been working with the unatended install all night, and im at the frustrated point with the batch i have setup for the applications i have. i followed the directions 100% as stated on the website.

here is my config.

I386 and $OEM$ in the same folder

$1 under $OEM$

Install under $1

APplications under install

etc...

My batch file is located in $1 install folder and the winnt.sif file states:

[GuiRunOnce]

%systemdrive%\install\start.cmd

but nothing is copying over when i test the iso in Virtual PC. anyone can help me out id appreciate it!

Thanks

Mike

Link to comment
Share on other sites


ok, i did this, now the unattended install doesnt work correctly. Now it ask me select "next" during the very first GUI windows XP setup piece.

Then, it automates the rest of the process and once windows loads it does not run the setup.cmd file i designed automatically

any thoughts?

Link to comment
Share on other sites

UnattendedMode=FullUnattended in your [unattended] ?? :)

yes, this is selected, here is my entire .sif file, any can help?

;SetupMgrTag

[Data]

AutoPartition=0

MsDosInitiated="0"

UnattendedInstall="Yes"

AutomaticUpdates=yes

[unattended]

UnattendMode=FullUnattended

OemSkipEula=Yes

OemPreinstall=yes

TargetPath=\WINDOWS

UnattendSwitch="yes"

FileSystem=*

WaitForReboot="No"

AutoActivate = Yes

DriverSigningPolicy=Ignore

[GuiUnattended]

AdminPassword=*

EncryptedAdminPassword=NO

OEMSkipRegional=1

TimeZone=35

OemSkipWelcome=0

[userData]

ProductKey=xxxx-xxxx-xxxx-xxxx-xxxx

FullName="Mike"

OrgName=""

ComputerName=MIKE

[Display]

BitsPerPel=32

Xresolution=1600

YResolution=1200

[TapiLocation]

CountryCode=1

AreaCode=508

[identification]

JoinWorkgroup=mshome

[Networking]

InstallDefaultComponents=Yes

[branding]

BrandIEUsingUnattended=Yes

Home_Page=about:blank

[WindowsFirewall]

Profiles = WindowsFirewall.TurnOffFirewall

[Components]

msnexplr=off

msmsgs=off

freecell=off

hearts=off

minesweeper=off

pinball=off

solitaire=off

spider=off

zonegames=off

[shell]

DefaultStartPanelOff = no

DefaultThemesOff = no

[GuiRunOnce]

%systemdrive%\install\start.cmd

Link to comment
Share on other sites

1. Make sure that your [guirunonce] lines are quoted.

2. Open up %windir%\system32\$winnt$.inf to see what Windows did to your unattend when it parsed it... if it found bad characters/formatting in there it may have decided to remove your guirunonce line.

Link to comment
Share on other sites

ok all i came across something weird with this...

it seems as though when the PC logs in automatically, its loggin in under the name i set it to which is "mike". when the system logs in as mike, it does not install the programs, however when i log off mike and log on as administrator, the programs start to install automatically using the guirunonce

any thoughts??

here is my setup

in my $oem$ folder i have

"autologon.reg"

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]

"DefaultUserName"="Mike"

"DefaultPassword"="XXXXXX"

"AutoAdminLogon"="1"

then "cmdlines"

[COMMANDS]

"useraccounts.cmd"

"REGEDIT /S regtweaks.reg"

then "useraccounts.cmd"

net user Mike xxxxxx /add

net localgroup Administrators Mike /add

net accounts /maxpwage:unlimited

REGEDIT /S autologon.reg

EXIT

Then my second question is this, why is Mike not log in with admin privileges?

Thanks all

Mike

Link to comment
Share on other sites

Sorry I took so long to come back to you Mike. The guide does work. The only difference that I can see in your setup and the one that I use a dozen times every week is the way that you are using the [GuiRunOnce] to start your installs. Try automating instead from RunOnceEx (guide in the usual place) - you will find that you have to change very little.

Just to show that it does work - here are my files to compare;

winnt.sif

[GuiRunOnce]
EMPTY

cmdlines.txt

[COMMANDS]
"useraccounts.cmd"
"RunOnceEx.cmd"

useraccounts.cmd

net user "Ben Dover" XXXXX /add
net localgroup Administrators "Ben Dover" /add
net accounts /maxpwage:unlimited
REGEDIT /S autologon.reg
EXIT

autologon.reg

Windows Registry Editor Version 5.00 

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"DefaultUserName"="Ben Dover"
"DefaultPassword"="XXXXX"
"AutoAdminLogon"="1"

RunOnceEx.cmd

cmdow @ /HID
@echo off

IF EXIST D:\CD.txt set CDROM=D:
IF EXIST E:\CD.txt set CDROM=E:
IF EXIST F:\CD.txt set CDROM=F:
IF EXIST G:\CD.txt set CDROM=G:
IF EXIST H:\CD.txt set CDROM=H:
IF EXIST I:\CD.txt set CDROM=I:
IF EXIST J:\CD.txt set CDROM=J:
IF EXIST k:\CD.txt set CDROM=k:
IF EXIST l:\CD.txt set CDROM=l:
IF EXIST m:\CD.txt set CDROM=m:
IF EXIST n:\CD.txt set CDROM=n:
IF EXIST o:\CD.txt set CDROM=o:
IF EXIST p:\CD.txt set CDROM=p:
IF EXIST q:\CD.txt set CDROM=q:
IF EXIST r:\CD.txt set CDROM=r:
IF EXIST s:\CD.txt set CDROM=s:
IF EXIST t:\CD.txt set CDROM=t:
IF EXIST u:\CD.txt set CDROM=u:
IF EXIST v:\CD.txt set CDROM=v:
IF EXIST w:\CD.txt set CDROM=w:
IF EXIST x:\CD.txt set CDROM=x:
IF EXIST y:\CD.txt set CDROM=y:
IF EXIST z:\CD.txt set CDROM=z:


SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "Installing Core Applications and Settings" /f


REG ADD %KEY%\001 /VE /D "Preparing Installation..." /f
REG ADD %KEY%\001 /V 1 /D "%CDROM%\Install\001-PREP\prepare.cmd" /f
REG ADD %KEY%\001 /V 2 /D "%CDROM%\Install\001-PREP\rename.cmd" /f

REG ADD %KEY%\002 /VE /D "Windows Components and Add-Ons" /f
REG ADD %KEY%\002 /V 1 /D "%CDROM%\Install\002-COMPO\compo.cmd" /f

REG ADD %KEY%\004 /VE /D "Media Codecs and Players" /f
REG ADD %KEY%\004 /V 1 /D "%CDROM%\Install\004-MEDIAP\mediap.cmd" /f

etc etc . . .

For the more experienced - Yea I know that the CD lines can be shorter - but they were already working so wotdahell, and yea all my installs run from secondary batches - it saves on messing with pauses etc

Link to comment
Share on other sites

I386 and $OEM$ in the same folder

I'm not sure but I see this

Those are separate folder's like this under the CD root

I386

$OEM$

1 other thing under

[unattended]

OemFilesPath="..\$OEM$"

but thats with $OEM$ on root.

Edited by maxXPsoft
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...