Burke Posted May 6, 2005 Share Posted May 6, 2005 Hi guys. I hope someone is able to help me with this both annoying and unfathomable problem I have. I know this topic has been posted before, but none of the offered solutions work. I am stuck completely.My problem is, that I have the CD (Windows 2000 pro with SP4 integrated). My $oem$ directory is in the root, and I have the $$ and $1 directories as well. Inside $1 is placed directories Drivers and Install. Drivers is obvious but inside Install I have WMP, MSN Messenger etc. to install using cmdlines.txt. The cmdlines.txt is placed inside the $oem$ root side by side with directories Drivers and Install.When installing, all drivers are installed perfectly. But the cmdlines.txt is not parsed somehow. I know that my batchfile is correct, as I can call it without any problems whatsoever from an open command prompt. Thus all commands in there must be correct. My problem is, that I cannot get cmdlines.txt to execute my batchfile. I do not understand this problem, as I have used the same method for years now. All my files (scripts) are placed on a floppy alongside WinNT.sif. At some point my floppy just killed itself, and I had no backup. Now I am trying to recreate all my scripts, but unfortunately now I just can't seem to get it right.I would be very greatful for any help or suggestion to this problem. Thanks.My cmdlines.txt:[COMMANDS]"A:\CMDLINES\CMDLINES.CMD" (I keep the file on floppy)This is my CMDLINES.CMD file:@CLS@ECHO OFFECHO.ECHO Adding User USERNAME to AdministratorsECHO Please wait...start /wait net user "USERNAME" PASSWORD /Addstart /wait net localgroup Administrators "USERNAME" /AddECHO.ECHO Logging in User USERNAMEECHO Please wait...start /wait REGEDIT /S A:\REGISTRY\AutoLogon.regECHO.ECHO Hiding Set Program Access DefaultsECHO Please wait...start /wait REGEDIT /S A:\REGISTRY\HideSetProgAccessDefaults.regECHO.ECHO Disabling Windows Auto UpdatesECHO Please wait...start /wait REGEDIT /S A:\REGISTRY\NoAutoUpdates.regECHO.ECHO Adding WinZip 9.0 to the registryECHO Please wait...start /wait REGEDIT /S A:\REGISTRY\WinZip90.regECHO.ECHO Installing Adaptec ASPI Layer v4.71.2ECHO Please wait...start /wait %systemdrive%\Install\ASPI\aspiinst.exe /silentECHO.ECHO Installing DirectX 9.0cECHO Please wait...start /wait %systemdrive%\Install\DIRX90C\dxsetup.exe /install /silentECHO.ECHO Installing Microsoft Internet Explorer 6 SP1ECHO Please wait...start /wait %systemdrive%\Install\IE6SP1\ie6setup.exe /Q:A /R:NECHO.ECHO Installing MSN Messenger Service 7.0.0777ECHO Please wait...start /wait %systemdrive%\Install\MSNMSGS\MSNMSGS700777.MSI /qnECHO.ECHO Installing Windows Media Player 9 build 2980ECHO Please wait...start /wait %systemdrive%\Install\WMP9\WMP900002980.EXE /Q:A /R:NECHO.ECHO Installing Windows Media Encoder 9 build 2980ECHO Please wait...start /wait %systemdrive%\Install\WME9\WME900002980.EXE /Q:A /R:NECHO.ECHO Installing Sun Java VM 1.5.0.02ECHO Please wait...start /wait %systemdrive%\Install\SUNJAVA\SJAVA15002.EXE /s /v"/qn ADDLOCAL=jrecore IEXPLORER=1"ECHO.ECHO Removing useless shortcuts...DEL "%systemdrive%\Documents and Settings\All Users\Start Menu\Windows Update.lnk"DEL "%systemdrive%\Documents and Settings\All Users\Start Menu\Set Program Access and Defaults.lnk"ECHO.ECHO Removing Temp Installation Files...RD /S /Q %systemdrive%\DriversRD /S /Q %systemdrive%\InstallEXITTHIS IS MY WINNT.SIF file;SetupMgrTag[Data] AutoPartition =0 ;1=Windows automatically chooses a partition to install upon (0 = Requesting user input) MsDosInitiated ="0" Unattendedinstall ="Yes"[unattended] UnattendMode =FullUnattended OemSkipEula =Yes OemPreinstall =Yes ;Yes=Looks for alternate drivers (No=Default installed drivers) TargetPath =\WINNT OemPnPDriversPath =\Drivers\00_INF;\Drivers\01_VIAIDE;\Drivers\02_VIAGART;\Drivers\03_VIAAGP1;\Drivers\04_AC97;\Drivers\RTLNDIS;\Drivers\USB20;\Drivers\CATALYST DriverSigningPolicy =Ignore ;Only valid if OemPreinstall=Yes; Repartition =No; FileSystem =LeaveAlone[GuiUnattended] AdminPassword =PassWord ;*=Empty password; AutoLogon =Yes; AutoLogonCount =1 OEMSkipRegional =1 ;Prevents Windows from asking for user input during [RegionalSettings] TimeZone =105 OemSkipWelcome =1[userData] FullName ="USERNAME" OrgName =Home ComputerName =desktop[Display] BitsPerPel =32 Xresolution =1280 YResolution =1024 Vrefresh =75[RegionalSettings] LanguageGroup =13,17,3,2,5,16,4,12,15,7,8,10,11,9,6,14,1; Language =00000409 SystemLocale =00000409 ;Ignored if Language is set UserLocale =00000409 ;Ignored if Language is set InputLocale =00000409:00000409 ;Ignored if Language is set;[KeyboardDrivers];[PointingDeviceDrivers];[OEMBootFiles]; Driver.Sys; Driver.INF; Driver.CAT; Txtsetup.oem[OEM_Ads] Background =backgrnd.bmp[FavoritesEx][branding] BrandIEUsingUnattended =Yes Home_Page =http://www.google.com Search_Page =http://www.google.com/ie/[Proxy] Proxy_Enable =0 Use_Same_Proxy =0[GuiRunOnce] Command0 ="REGEDIT /S A:\REGISTRY\DeletePassword.reg"[identification] JoinWorkgroup =MYNET[Networking] InstallDefaultComponents =No[NetAdapters] Adapter1 =params.Adapter1 Adapter2 =params.Adapter2[params.Adapter1] INFID =pci\ven_10ec&dev_8139[params.Adapter2] INFID =pci\ven_10ec&dev_8139[NetClients] MS_MSClient =params.MS_MSClient[NetServices] MS_SERVER =params.MS_SERVER[NetProtocols] MS_TCPIP =params.MS_TCPIP[params.MS_TCPIP] DNS =Yes UseDomainNameDevolution =No EnableLMHosts =Yes AdapterSections =params.MS_TCPIP.Adapter1,params.MS_TCPIP.Adapter2[params.MS_TCPIP.Adapter1] SpecificTo =Adapter1 DHCP =No IPAddress =192.168.0.6 SubnetMask =255.255.255.0 WINS =No NetBIOSOptions =1[params.MS_TCPIP.Adapter2] SpecificTo =Adapter2 DHCP =No IPAddress =10.10.10.6 SubnetMask =255.0.0.0 WINS =No NetBIOSOptions =2[Components] Freecell =off ;Default=On Minesweeper =off ;Default=On Pinball =off ;Default=On Solitaire =off ;Default=On Link to comment Share on other sites More sharing options...
k0pect8 Posted May 6, 2005 Share Posted May 6, 2005 from my winnt.sif:[Unattended] UnattendMode = FullUnattended UnattendSwitch = Yes OemPreinstall = Yes OemSkipEula = Yes FileSystem = * WaitForReboot = No NoWaitAfterTextMode = 1 NoWaitAfterGUIMode = 1 TargetPath = \WINNT DriverSigningPolicy = Ignore NonDriverSigningPolicy = Ignore Hibernation = Nomaybe the UnattendSwitch = Yes (?) Link to comment Share on other sites More sharing options...
Tokyudo Posted May 6, 2005 Share Posted May 6, 2005 Try running your unattended applications install using:[GuiRunOnce]"%systemdrive%\install\batch_file1.cmd" (example)I don't think cmdlines.txt was meant to run so many apps like that. If you want to use cmdlines.txt, try cleaning things up little and have it call a batch file that will install your apps. Hope this helps. Link to comment Share on other sites More sharing options...
Burke Posted May 6, 2005 Author Share Posted May 6, 2005 Thanks for the input. Unfortunately I still have the same problem. As I am using the W2000 Pro, I cannot use the switch "UnattendSwitch = Yes" as suggested. I believe this switch is for WinXP only?When I first made my CD and the scripts, I was following the guide on MSFN.org. But since then the guide has been altered completely, and now the solution to my problem does not seem to be there.Unfortunately I do not remember who made the guide at the time, but I guess he must have the information, which I need? So if you are reading this, please post your suggestions. Thanks. Link to comment Share on other sites More sharing options...
k0pect8 Posted May 7, 2005 Share Posted May 7, 2005 As I am using the W2000 Pro, I cannot use the switch "UnattendSwitch = Yes" as suggested. I believe this switch is for WinXP only?<{POST_SNAPBACK}>you're right - bad memory Link to comment Share on other sites More sharing options...
prathapml Posted May 7, 2005 Share Posted May 7, 2005 Read stickies and announcements before posting please.....http://www.msfn.org/board/index.php?act=announce&f=70&id=3 Link to comment Share on other sites More sharing options...
Recommended Posts