Jump to content

CMDLINES Not Being Parsed


Recommended Posts

OK, so I've slimmed down my install to about 150MB using nLite and gosh's method (yes, both of them). My unattended install works fine, except for the fact that cmdlines.txt is not getting parsed. I have my $OEM$ folder on the root of the CD. Here are the contents of my winnt.sif file:

[Data]
Autopartition = 0
MsDosInitiated = 0
UnattendedInstall = Yes

[Unattended]
UnattendMode = FullUnattended
UnattendSwitch = No
OemPreinstall = Yes
OemSkipEula = Yes
FileSystem = *
WaitForReboot = No
NoWaitAfterTextMode = 1
NoWaitAfterGUIMode = 1
TargetPath = Windows
DriverSigningPolicy = Ignore
NonDriverSigningPolicy = Ignore

[Display]
Xresolution = 1024
Yresolution = 768
BitsPerPel = 32
Vrefresh = 60

[GuiUnattended]
EncryptedAdminPassword = No
AdminPassword = "123456"
TimeZone = 035
OEMSkipRegional = 1
OemSkipWelcome = 1

[Components]
Indexsrv_system = Off

[UserData]
ProductKey = "XXXXX-XXXXX-XXXXX-XXXXX-XXXXX"
ComputerName = SLIM-XP
FullName = "Your Mom"
OrgName = "Home"

[RegionalSettings]
Language = 0409

[Networking]
InstallDefaultComponents = Yes

[Identification]
JoinWorkgroup = HOME

Everything looks fine to me. OemPreinstall is set to YES, so everything in the $OEM$ folder, in theory, should do something, right?

Here is my cmdlines.txt:

[COMMANDS]
"useraccounts.cmd"
"REGEDIT32.EXE /S tweaks.reg"

And my useraccounts.cmd:

net user Michael nottellingyou /add
net localgroup Administrators Michael /add
net accounts /maxpwage:unlimited
EXIT

All I'm trying to do is basic stuff. Adding a user account and adding some registry tweaks. None of this happens during the install. I've tried different things for the past few days, reinstalling XP on VMware about 20 times, but NOTHING works.

One more thing; All the files (cmdlines.txt, useraccounts.cmd, tweaks.reg) are in the $OEM$ folder. What am I doing wrong!?

Link to comment
Share on other sites


If it's anything like my experience with cmdlines.txt, the only way I could get it to work at all was to use this syntax:

[COMMANDS]
command1="useraccounts.cmd"
command2="REGEDIT32.EXE /S tweaks.reg"

-Eric

Link to comment
Share on other sites

Remember, now... I used nLite as well as gosh's method... ;) Also, the winnt.sif file is working fine in the BOOT folder...

The BOOT folder has all the files necessary to partition the drive, etc. Also includes the setup file, txtsetup.sif...

The I386 folder has all the necessary XP files to be installed.

The rest of the files in the root of the CD are for my CD's menu, such as DELOAD.BIN, DISKEM1X.BIN, LOADER.BIN, and DISKEMU.CMD... The DAT files are Disk images... ;)

If you don't know how gosh's method works, I suggest you read his tutorial:

http://gosh.msfnhosting.com

See screeny:

post-1828-1118777236_thumb.jpg

Link to comment
Share on other sites

I've finally figured it out... :)

I chose an option in nLite that removes the net.exe file... Just... I don't know which component removes it and I'd rather not use the box to keep files... :}

Anyone know what option removes net.exe? (I know, this should be in the nLite forum, but it started off with cmdlines.txt not working) ;)

Edit: I was removing Command-Line Tools without thinking... Hopefully it will work this time! :thumbup

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