MarcL Posted February 2, 2005 Share Posted February 2, 2005 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=FullUnattendedOemSkipEula=YesOemPreinstall=YesTargetPath = *Filesystem = LeaveAloneWaitForReboot="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? Marc Link to comment Share on other sites More sharing options...
Alanoll Posted February 2, 2005 Share Posted February 2, 2005 Good, it's working PROPERLY then.$OEM$ contents are NEVER copied over. The inside folders are (if they're the predefined folders) Link to comment Share on other sites More sharing options...
MarcL Posted February 2, 2005 Author Share Posted February 2, 2005 Um.. ok.. Any idea why cmdlines.txt never runs?Thanks. Link to comment Share on other sites More sharing options...
Bâshrat the Sneaky Posted February 2, 2005 Share Posted February 2, 2005 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 / Link to comment Share on other sites More sharing options...
MCT Posted February 2, 2005 Share Posted February 2, 2005 [COMMANDS]REGEDIT /S %systemdrive%\install\regtwks.regRunOnceEx.cmdthat should work Link to comment Share on other sites More sharing options...
Alanoll Posted February 2, 2005 Share Posted February 2, 2005 [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 More sharing options...
Bâshrat the Sneaky Posted February 2, 2005 Share Posted February 2, 2005 [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 You can't use there indeed... Link to comment Share on other sites More sharing options...
MarcL Posted February 2, 2005 Author Share Posted February 2, 2005 OK, trying this:[COMMANDS]CMD /C pauseREGEDIT /S %systemdrive%\install\regtwks.reg"RunOnceEx.cmdCMD /C pauseWill report back in a few.Thanks! Link to comment Share on other sites More sharing options...
MarcL Posted February 2, 2005 Author Share Posted February 2, 2005 NFG.. Did not work again. cmdlines.txt never happens. Link to comment Share on other sites More sharing options...
gunsmokingman Posted February 2, 2005 Share Posted February 2, 2005 If You Are Going To Try A Hard Drive InstalllTry ThisCmd I Use, must be in the same location as the source files.The Location Of The Source Files H:\XPCD-SP2-HD-InstallTempdive, is the location you want To Install Toecho offstart i386\winnt32.exe /noreboot /tempdrive:D: /unattend:winnt.sifCmdLines.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 More sharing options...
MarcL Posted February 2, 2005 Author Share Posted February 2, 2005 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: MicrosoftAs 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 More sharing options...
gunsmokingman Posted February 2, 2005 Share Posted February 2, 2005 (edited) 1\Save The Below As StartHD.cmdRe Edit To Match The Location You WantNow The Cmd echo offstart i386\winnt32.exe /noreboot /tempdrive:D: /unattend:winnt.sifModified Winnt.bat@rem SetupMgrTag@echo offfor %%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=%%iremrem 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.remset AnswerFile=.\winnt.sifset SetupFiles=%CDROM%:\i386.\i386\winnt32 /s:%SetupFiles% /unattend:%AnswerFile% /copysource:langNormal 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=%%irem 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:langI have Test Many Times And Never Had A FailureRemove By Gsm old post Edited April 28, 2006 by gunsmokingman Link to comment Share on other sites More sharing options...
JoeMSFN Posted February 2, 2005 Share Posted February 2, 2005 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:langI'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 = valueplease 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 More sharing options...
MarcL Posted February 3, 2005 Author Share Posted February 3, 2005 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\i386And, it still did NOT run the cmdlines.txtI 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 More sharing options...
Bilou_Gateux Posted February 3, 2005 Share Posted February 3, 2005 Add one line in unattend.txt section [unattended]OemFilesPath = "..\$OEM$" Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now