Jump to content

$OEM$ copies now, but cmdlines.txt wont run.


Recommended Posts

NOT using a CD install (for testing), I moved th $OEM$ folder under i386 on the distribution.

I kick of the install with:

\xpcd\i386\winnt.exe /u:\xpcd\i386\unattend.txt /s:\xpcd\i386
\xpcd\i386\UNATTEND.TXT
[Data]

MsDosInitiated = "0"

UnattendedInstall = "Yes"

AutomaticUpdates=yes

[unattended]

Unattendmode=FullUnattended

OemSkipEula=Yes

OemPreinstall=Yes

TargetPath = *

Filesystem = LeaveAlone

WaitForReboot="No"

OemPnPDriversPath = "Drivers\LSIU320;Drivers\NVIDIA"

\xpcd\i386\$oem$\cmdlines.txt

[COMMANDS]"pause"

"./REGEDIT /S %systemdrive%\install\regtwks.reg"

"./RunOnceEx.cmd"

"pause"

As you can see, I put pause in there to see if it was running or not, and it is not.

When the install is done, the files which are at the \xpcd\i386\$oem$\ level are NOT on the c drive, but items in $1 and $$ are.

I am guessing this is another behavior difference bewteen installing from CD or a distribution? Is there a list of them somewhere? :unsure:

Marc

Link to comment
Share on other sites


[COMMANDS]
".\REGEDIT /S %systemdrive%\install\regtwks.reg"
".\RunOnceEx.cmd"

./ is NOT valid, as Bashrat pointed out.

I recommend leaving the quotes however. and PAUSE does NOT work directly from CMDLINES.TXT, you must open a command prompt or similar.

Link to comment
Share on other sites

[COMMANDS]
".\REGEDIT /S %systemdrive%\install\regtwks.reg"
".\RunOnceEx.cmd"

./ is NOT valid, as Bashrat pointed out.

I recommend leaving the quotes however. and PAUSE does NOT work directly from CMDLINES.TXT, you must open a command prompt or similar.

Never seen those quotes, imo they're completely useless here...

And I even didn't think any further about that PAUSE command :P You can't use there indeed...

Link to comment
Share on other sites

If You Are Going To Try A Hard Drive Installl

Try This

Cmd I Use, must be in the same location as the source files.

The Location Of The Source Files H:\XPCD-SP2-HD-Install

Tempdive, is the location you want To Install To

echo off
start i386\winnt32.exe /noreboot /tempdrive:D: /unattend:winnt.sif

CmdLines.txt

[COMMANDS]
"UserAcount.cmd"
"REGEDIT /S 000.reg"
"REGEDIT /S 020.reg"
"REGEDIT /S 040.reg"
"REGEDIT /S 060.reg"
"REGEDIT /S 080.reg"
"UaPrestart.cmd"
"RunOnceEx.cmd"

Link to comment
Share on other sites

Your saying the directory you run winnt.exe (or winnt32.exe) matters??

I see you cmdlines.txt has quotes..

BTW, I got the initial information on this from: Microsoft

As you see, they use quotes and the "./" stuff.. Also use "pause" in the example.

In my case, it looks like maybe cmdlines.txt is not being copied to the target disk? (rememeber, I am not doing a CD install).

Link to comment
Share on other sites

1\

Save The Below As StartHD.cmd

Re Edit To Match The Location You Want

Now The Cmd

echo off
start i386\winnt32.exe /noreboot /tempdrive:D: /unattend:winnt.sif

Modified Winnt.bat

@rem SetupMgrTag
@echo off

for %%i in (C: D: E: F: G: H: I: J: K: L: M: N: O: P: Q: R: S: T: U: V: W: X: Y: Z:) do if exist %%i\SETUP.exe set CDROM=%%i

rem
rem This is a SAMPLE batch script generated by Setup Manager.
rem If this script is moved from the location where it was generated, it may have to be modified.
rem

set AnswerFile=.\winnt.sif
set SetupFiles=%CDROM%:\i386

.\i386\winnt32 /s:%SetupFiles% /unattend:%AnswerFile% /copysource:lang

Normal Winnt.sif Typo Error

Normal Winnt.bat

@rem SetupMgrTag 
@echo off

for %%i in (C: D: E: F: G: H: I: J: K: L: M: N: O: P: Q: R: S: T: U: V: W: X: Y: Z:) do if exist %%i\SETUP.exe set CDROM=%%i

rem
rem This is a SAMPLE batch script generated by Setup Manager.
rem If this script is moved from the location where it was generated, it may have to be modified.
rem

set AnswerFile=.\winnt.sif
set SetupFiles=%CDROM%:\i386

%CDROM%:\i386\winnt32 /s:%SetupFiles% /unattend:%AnswerFile% /copysource:lang

I have Test Many Times And Never Had A Failure

Remove By Gsm old post

Edited by gunsmokingman
Link to comment
Share on other sites

Normal Winnt.sif

@rem SetupMgrTag 
@echo off

for %%i in (C: D: E: F: G: H: I: J: K: L: M: N: O: P: Q: R: S: T: U: V: W: X: Y: Z:) do if exist %%i\SETUP.exe set CDROM=%%i
.....  snip .....
%CDROM%:\i386\winnt32 /s:%SetupFiles% /unattend:%AnswerFile% /copysource:lang

I've never seen a winnt.sif file with batch/cmd file entries!!!!

I only thought it could contain stuff such as the following...

[some section name]
variable = value

please point me to the resources that allow such stuff in winnt.sif. I'd be VERRRRY interested in learning this.

Link to comment
Share on other sites

gunsmokingman; You keep saying to use winnt32.exe, but I am installing from DOS.

I did the following:

\xpcd\i386\winnt.exe /u:\xpcd\i386\unattend.txt /t:C: /s:\xpcd\i386

And, it still did NOT run the cmdlines.txt

I dont have a winnt.bat, besides.. when would this run?

as of now, I still cant get it to work. :(

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