Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

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

Featured Replies

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

Good, it's working PROPERLY then.

$OEM$ contents are NEVER copied over. The inside folders are (if they're the predefined folders)

  • Author

Um.. ok..

Any idea why cmdlines.txt never runs?

Thanks.

Um.. ok.. 

Any idea why cmdlines.txt never runs?

Thanks.

Yes...

1) remove the quotes, unnecessary (don't know if it matters though)

2) Use BACKSLASHES instead of slashes, so \ instead of /

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

that should work

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

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

  • Author

OK, trying this:

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

Will report back in a few.

Thanks!

  • Author

NFG..

Did not work again.

cmdlines.txt never happens.

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"

  • Author

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

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

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.

  • Author

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

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.