Jump to content

I am ripping my head off


Recommended Posts

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 OFF

ECHO.

ECHO Adding User USERNAME to Administrators

ECHO Please wait...

start /wait net user "USERNAME" PASSWORD /Add

start /wait net localgroup Administrators "USERNAME" /Add

ECHO.

ECHO Logging in User USERNAME

ECHO Please wait...

start /wait REGEDIT /S A:\REGISTRY\AutoLogon.reg

ECHO.

ECHO Hiding Set Program Access Defaults

ECHO Please wait...

start /wait REGEDIT /S A:\REGISTRY\HideSetProgAccessDefaults.reg

ECHO.

ECHO Disabling Windows Auto Updates

ECHO Please wait...

start /wait REGEDIT /S A:\REGISTRY\NoAutoUpdates.reg

ECHO.

ECHO Adding WinZip 9.0 to the registry

ECHO Please wait...

start /wait REGEDIT /S A:\REGISTRY\WinZip90.reg

ECHO.

ECHO Installing Adaptec ASPI Layer v4.71.2

ECHO Please wait...

start /wait %systemdrive%\Install\ASPI\aspiinst.exe /silent

ECHO.

ECHO Installing DirectX 9.0c

ECHO Please wait...

start /wait %systemdrive%\Install\DIRX90C\dxsetup.exe /install /silent

ECHO.

ECHO Installing Microsoft Internet Explorer 6 SP1

ECHO Please wait...

start /wait %systemdrive%\Install\IE6SP1\ie6setup.exe /Q:A /R:N

ECHO.

ECHO Installing MSN Messenger Service 7.0.0777

ECHO Please wait...

start /wait %systemdrive%\Install\MSNMSGS\MSNMSGS700777.MSI /qn

ECHO.

ECHO Installing Windows Media Player 9 build 2980

ECHO Please wait...

start /wait %systemdrive%\Install\WMP9\WMP900002980.EXE /Q:A /R:N

ECHO.

ECHO Installing Windows Media Encoder 9 build 2980

ECHO Please wait...

start /wait %systemdrive%\Install\WME9\WME900002980.EXE /Q:A /R:N

ECHO.

ECHO Installing Sun Java VM 1.5.0.02

ECHO 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%\Drivers

RD /S /Q %systemdrive%\Install

EXIT

THIS 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


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 = No

maybe the UnattendSwitch = Yes (?)

Link to comment
Share on other sites

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

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

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...