Jump to content

Win2k unattended problems


Recommended Posts

I have a problem with my Win2k installation.

it install itself nicely until you get into Win2k the first time and it should start to install all the programs i defined in my batch install scripts.

but instead it hangs just showing the background image of win2k and the cursor. i can press CTRL+ALT+DELETE to get the windows Job Manager and start explorer.exe myself. and when the machine has rebooted, it starts the batch install scripts....

i hope you guys have all the info you need or else ask for more :)

my conf files are as follows:

Winnt.sif


[Data]
   AutoPartition=0
   MsDosInitiated="0"
   UnattendedInstall="Yes"

[Unattended]
   OemPreinstall=Yes
   WaitForReboot=No
   FileSystem=*
   UnattendSwitch=yes
   UnattendMode=FullUnattended
   OemSkipEula=Yes
   TargetPath=\WINDOWS
   OemPnPDriversPath="Drivers\Matsonic\Chipset;Drivers\Asus533\Chipset;Drivers\Asus800\Chipset;Drivers\mb133\Chipset;Drivers\NvGrafik;Drivers\Matsonic\Grafik;Drivers\Asus533\Grafik;Drivers\Asus800\Grafik;Drivers\mb133\Grafik;Drivers\Matsonic\LAN;Drivers\Asus533\LAN;Drivers\Asus800\LAN;Drivers\mb133\LAN;Drivers\Matsonic\lyd;Drivers\Asus533\Lyd;Drivers\Asus800\Lyd;Drivers\mb133\lyd;\Drivers\Dlink"
   DriverSigningPolicy=Ignore

[GuiUnattended]
   AdminPassword=*
   EncryptedAdminPassword=NO
   OEMSkipRegional=1
   TimeZone=105
   OemSkipWelcome=1
   AutoLogon=Yes
   AutoLogonCount=1

[UserData]
   ProductID =
   FullName="Euc Midt"
   OrgName="Euc Midt"
   ComputerName=*

[Display]
   BitsPerPel=32
   Xresolution=1024
   YResolution=768
   Vrefresh=60

[RegionalSettings]
   LanguageGroup=1
   Language=00000406

[Identification]
   JoinWorkgroup=WORKGROUP

[Networking]
   InstallDefaultComponents=Yes

[Components]
   msnexplr=off
   msmsgs=off
   zonegames=off

[Shell]
   DefaultStartPanelOff=Yes

[GuiRunOnce]
   %systemdrive%\install\install.bat
   %systemdrive%\install\\hotfixes\hotfixes.cmd
   %systemdrive%\install\hotfixes\removing.cmd

Svcpack.inf

[Version] 
Signature="$Windows NT$"
MajorVersion=5
MinorVersion=0
BuildNumber=2195

[SetupData]
CatalogSubDir="\i386\Update"

[ProductCatalogsToInstall]

[SetupHotfixesToRun]
ie6setup.exe /Q:A /R:N
KB822603.exe /Q /O /N /Z

KB842526.exe /Q /O /N /Z
KB841872.exe /Q /O /N /Z
KB828749.exe /Q /O /N /Z
Q329115.exe /Q /O /N /Z
KB826232.exe /Q /O /N /Z
823559.exe /Q /O /N /Z
KB82088.exe /Q /O /N /Z
822831.exe /Q /O /N /Z

KB837272.exe /Q /O /N /Z
KB823182.exe /Q /O /N /Z
KB824105.exe /Q /O /N /Z
KB825119.exe /Q /O /N /Z
KB826939.exe /Q /O /N /Z
KB828035.exe /Q /O /N /Z
KB828741.exe /Q /O /N /Z
KB835732.exe /Q /O /N /Z
KB837001.exe /Q /O /N /Z
KB839645.exe /Q /O /N /Z
KB840315.exe /Q /O /N /Z
KB841873.exe /Q /O /N /Z
814078.exe /Q:A /R:N
KB823353.exe /Q:A /R:N
KB867801.exe /Q:A /R:N
KB870669.exe /Q:A /R:N
qchain.exe

My own install scripts.

Install.bat

ECHO.
ECHO Installing MSN Messenger 6.0.0602 Final
ECHO Please wait...
start /wait %systemdrive%\install\MSN\MsnMsgs.msi /QB
ECHO.
ECHO Installing DirectX 9.0b
ECHO Please wait...
start /wait %systemdrive%\install\DirectX9b\DX9NTopk.exe
ECHO.
ECHO Installing Microsoft JavaVM - Build 3810
ECHO Please wait...
start /wait %systemdrive%\install\JavaVM\MSJavaVM_3810.exe
ECHO.
ECHO Installing WinRAR 3.20
ECHO Please wait...
start /wait %systemdrive%\install\WinRAR\wrar.exe /s
ECHO.
ECHO Installing Adobe Reader 6
ECHO Please wait...
start /wait %systemdrive%\install\AdobeReader6\AdbeRdr60_dan_full.exe -p"-s /v\"/qn\""
ECHO.
ECHO Installing Movie Maker 2.0
ECHO Please wait...
start /wait %systemdrive%\install\MovieMaker\mm20.msi /qn
ECHO.
ECHO Installing Windows Media Player 9
ECHO Please wait...
start /wait %systemdrive%\install\WMP9\MPSetup2k.exe /Q:A /R:N
ECHO.
ECHO Installing .NET Framework v1.1
ECHO Please wait...
start /wait %systemdrive%\install\NetFramework\netfx.msi /qb

Edited by prathapml
Link to comment
Share on other sites


I have experienced similar. My workaround was to give the RunOnceEx code a kick start from SVCPACK, using RUNDLL... (I don't remember the exact code). I don't have the tools with me to better answer your question, but I think the attached file, run just after ie6setup, should do the trick.

IE6GO.EXE

Link to comment
Share on other sites

I have experienced similar. My workaround was to give the RunOnceEx code a kick start from SVCPACK, using RUNDLL... (I don't remember the exact code). I don't have the tools with me to better answer your question, but I think the attached file, run just after ie6setup, should do the trick.

I Have tried that, but i still doesn't work i get a Rundl32.dll error... any1 else got some suggestions?

Link to comment
Share on other sites

This command to kick-start the processing of RunOnceEx, will work only from within a batch-file, and only on win2k/xp/2k3:

rundll32.exe iernonce.dll,RunOnceExProcess

I suppose this is what GM was referring to. And it should work perfectly fine, please give more details on what are the scripts/cmds/methods you are using on your uA install.

Link to comment
Share on other sites

in Winnt.sif in my [GuiRunOnce] i have 3 scripts install.bat hotfixes.bat and removing.bat

SVCPACK.inf

that file installs all my hotfixes and also the IE ver 6 that works fine under the installation i have tried adding the attached file to the scripts here but that is where the error occurs. any ideas now? :)

Install.bat

i use that to install programs like WinRAR and WMP9 etc.

Hotfixes.bat

i use this one to install hotfixes for WMP9

Removing.bat

to delete $oem$ created folders after install and reboot the machine

Link to comment
Share on other sites

I couldn't get this to work either, I think it has something to do with localized versions... Are you using a danish version of Win2k?

What I did was to grab a copy of reg.exe from an windows XP installation, and created a batch file that copies reg.exe to win2k, deletes the runonceex keys in the registry and register the services before first logon.

Hope I make sense....

First get a copy of reg.exe from Windows XP

Then put IE6_ROE.EXE in the svcpack folder. It contains this batch file:

@ECHO OFF
SET CDROM=
IF EXIST D:\CDROM_NT.5 SET CDROM=D:
IF EXIST E:\CDROM_NT.5 SET CDROM=E:
IF EXIST F:\CDROM_NT.5 SET CDROM=F:
IF EXIST G:\CDROM_NT.5 SET CDROM=G:
IF EXIST H:\CDROM_NT.5 SET CDROM=H:
IF EXIST I:\CDROM_NT.5 SET CDROM=I:
IF EXIST J:\CDROM_NT.5 SET CDROM=J:
IF EXIST K:\CDROM_NT.5 SET CDROM=K:
IF EXIST L:\CDROM_NT.5 SET CDROM=L:
IF EXIST M:\CDROM_NT.5 SET CDROM=M:
IF EXIST N:\CDROM_NT.5 SET CDROM=N:
IF EXIST O:\CDROM_NT.5 SET CDROM=O:
IF EXIST P:\CDROM_NT.5 SET CDROM=P:
IF EXIST Q:\CDROM_NT.5 SET CDROM=Q:
IF EXIST R:\CDROM_NT.5 SET CDROM=R:
IF EXIST S:\CDROM_NT.5 SET CDROM=S:
IF EXIST T:\CDROM_NT.5 SET CDROM=T:
IF EXIST U:\CDROM_NT.5 SET CDROM=U:
IF EXIST V:\CDROM_NT.5 SET CDROM=V:
IF EXIST W:\CDROM_NT.5 SET CDROM=W:
IF EXIST X:\CDROM_NT.5 SET CDROM=X:
IF EXIST Y:\CDROM_NT.5 SET CDROM=Y:
IF EXIST Z:\CDROM_NT.5 SET CDROM=Z:

COPY /Y %CDROM%\I386\SVCPACK\REG.EXE %SYSTEMROOT%\system32\reg.exe

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG DELETE HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx /v Title /f
REG DELETE HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx /v Flags /f

REG DELETE HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\101 /f
REG DELETE HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\102 /f
REG DELETE HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\103 /f
REG DELETE HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\104 /f
REG DELETE HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\500 /f
REG DELETE HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\800 /f

REGSVR32.EXE /s %SYSTEMROOT%\system32\mlang.dll
REGSVR32.EXE /s %SYSTEMROOT%\system32\browseui.dll
REGSVR32.EXE /s /i %SYSTEMROOT%\system32\browseui.dll
REGSVR32.EXE /s %SYSTEMROOT%\system32\shdocvw.dll
REGSVR32.EXE /s /i %SYSTEMROOT%\system32\shdocvw.dll
REGSVR32.EXE /s %SYSTEMROOT%\system32\urlmon.dll
REGSVR32.EXE /s %SYSTEMROOT%\system32\browsewm.dll
REGSVR32.EXE /s %SYSTEMROOT%\system32\mshtml.dll
REGSVR32.EXE /s %SYSTEMROOT%\system32\msrating.dll
REGSVR32.EXE /s %SYSTEMROOT%\system32\plugin.ocx
REGSVR32.EXE /s %SYSTEMROOT%\system32\sendmail.dll
REGSVR32.EXE /s %SYSTEMROOT%\system32\asctrls.ocx
REGSVR32.EXE /s /i %SYSTEMROOT%\system32\inetcpl.cpl
REGSVR32.EXE /s /i %SYSTEMROOT%\system32\mshtml.dll
REGSVR32.EXE /s %SYSTEMROOT%\system32\mshtmled.dll
REGSVR32.EXE /s %SYSTEMROOT%\system32\proctexe.ocx
%SYSTEMROOT%\system32\mshta.exe /register
REGSVR32.EXE /s %SYSTEMROOT%\system32\dxtrans.dll
REGSVR32.EXE /s %SYSTEMROOT%\system32\dxtmsft.dll
REGSVR32.EXE /s %SYSTEMROOT%\system32\mstime.dll
REGSVR32.EXE /s /i %SYSTEMROOT%\system32\comctl32.dll
REGSVR32.EXE /s %SYSTEMROOT%\system32\corpol.dll

REGSVR32.EXE /s %SYSTEMROOT%\system32\imgutil.dll
REGSVR32.EXE /s %SYSTEMROOT%\system32\pngfilt.dll
REGSVR32.EXE /s %SYSTEMROOT%\system32\msxml3.dll

REGSVR32.EXE /s %SYSTEMROOT%\system32\csseqchk.dll

REGSVR32.EXE /s %SYSTEMROOT%\system32\actxprxy.dll
REGSVR32.EXE /s %SYSTEMROOT%\system32\cdfview.dll
REGSVR32.EXE /s %SYSTEMROOT%\system32\inseng.dll
REGSVR32.EXE /s /i %SYSTEMROOT%\system32\iesetup.dll
REGSVR32.EXE /s %SYSTEMROOT%\system32\webcheck.dll
REGSVR32.EXE /s %SYSTEMROOT%\system32\occache.dll
REGSVR32.EXE /s /i %SYSTEMROOT%\system32\occache.dll
REGSVR32.EXE /s %SYSTEMROOT%\system32\iepeers.dll
REGSVR32.EXE /s "%ProgramFiles%\delade filer\Microsoft Shared\MSInfo\ieinfo5.ocx"
REGSVR32.EXE /s %SYSTEMROOT%\system32\msident.dll
REGSVR32.EXE /s %SYSTEMROOT%\system32\cryptdlg.dll

REGSVR32.EXE /s /i:HKLM %SYSTEMROOT%\system32\digest.dll
REGSVR32.EXE /s /i:HKLM %SYSTEMROOT%\system32\wininet.dll
REGSVR32.EXE /s /i:HKLM %SYSTEMROOT%\system32\urlmon.dll
REGSVR32.EXE /s %SYSTEMROOT%\system32\msieftp.dll
REGSVR32.EXE /s %SYSTEMROOT%\system32\tdc.ocx
REGSVR32.EXE /s "%ProgramFiles%\delade filer\Microsoft Shared\VGX\vgx.dll"

REGSVR32.EXE /s %SYSTEMROOT%\system32\inetcomm.dll
REGSVR32.EXE /s "%ProgramFiles%\Outlook Express\msoe.dll"
REGSVR32.EXE /s "%ProgramFiles%\Outlook Express\oeimport.dll"
REGSVR32.EXE /s "%ProgramFiles%\Outlook Express\oemiglib.dll"
REGSVR32.EXE /s "%ProgramFiles%\delade filer\System\directdb.dll"
REGSVR32.EXE /s %SYSTEMROOT%\system32\msoeacct.dll
REGSVR32.EXE /s "%ProgramFiles%\delade filer\System\wab32.dll"
REGSVR32.EXE /s "%ProgramFiles%\Outlook Express\wabimp.dll"
REGSVR32.EXE /s "%ProgramFiles%\Outlook Express\wabfind.dll"

EXIT

You should edit the lines with "delade filer" to your language, in english it's "´common files", and then package it with iexpress. See greenmachines page on how to use it. This file also assumes that the folder i386 is in the root of the cd.

It should be able to make all of this with an inf instead, then there is no need for reg.exe from winxp, but I will look into that when time is available....

Add this file to your svcpack.inf on the line after ie6setup.exe as shown below:

ie6setup.exe /Q:A /R:N
IE6_ROE.EXE /Q:A /R:N

I have included a zip with this post that you can use. The reg.exe is from a swedsh version of WinXP, but I hope that doesn't matter, and you should make your own ie6_roe.exe with the proper lines in the cmd file. I've included the sed file so you can make your own iexpress package.

Hope this will help you to get this working.

EDIT Sorted out some typos.. Thanks to Bilou_Gateux! EDIT

IE6_ROE.zip

Edited by ToBe
Link to comment
Share on other sites

Registry Console Tool For Windows 2000 - version 2.0
Copyright (C) Microsoft Corp. 1981-1999.  All rights reserved

REG Operation [Parameter List]

 Operation  [ QUERY   | ADD    | DELETE  | COPY    |
              SAVE    | LOAD   | UNLOAD  | RESTORE |
              COMPARE | EXPORT | IMPORT ]

Return Code: (Except of REG COMPARE)

 0 - Succussful
 1 - Failed

For help on a specific operation type:

 REG Operation /?

Examples:

 REG QUERY /?
 REG ADD /?
 REG DELETE /?
 REG COPY /?
 REG SAVE /?
 REG RESTORE /?
 REG LOAD /?
 REG UNLOAD /?
 REG COMPARE /?
 REG EXPORT /?
 REG IMPORT /?

The Windows 2000 Support Tools are located in the Support\Tools\ directory of the Microsoft® Windows® 2000 operating system CD. This directory contains directories for a Master Setup Program (Setup.exe) for the Windows 2000 Support Tools that is separate from the Windows 2000 operating system installation. When you run this Setup program, it installs all of the Support Tools from Support.cab onto your computer's hard drive.

Important The tools in Support.cab have not been localized: they are written and tested in English only. Using these tools with a different language version of Windows 2000 might produce unpredictable results.

Note The tools in Deploy.cab are for deployment/preinstallation purposes only and are not installed when Setup is run. The tools (Setup Manager and Sysprep) in Deploy.cab are localized.

The files for the Windows 2000 Support Tools are included as compressed cabinet (.cab) files on the Windows 2000 CD. You can extract individual files from these .cab files.

Extract reg.exe from support.cab.

Link to comment
Share on other sites

  • 4 months later...

Add REG.EXE (from the support tools) and REGINI.EXE (Obtain the Regini.exe program from the Windows 2000 Resource Kit) tools to your 2K Unattended CD:

Compress both files and place them in the I386 folder of your unattended CD.

%CD% is the current dir which contains both files

%DESTDIR% is the destination folder

Batch File

SET DESTDIR=CDROOT\I386
IF EXIST %CD%\*.EXE FOR /F "USEBACKQ DELIMS==" %%J IN (`DIR /A-D /OGN /B %CD%\*.EXE 2^>NUL`) DO MAKECAB /D CompressionMemory=21 /D CompressionType=LZX /L %DESTDIR% %CD%\%%J

During the first phase of the unattended setup, all system files are temporarily copied to C:\$Win_nt$.~ls and C:\$Win_nt$.~bt. The Dosnet.inf lists the files that have to be copied to the system.

Therefore, the next step is to edit the Dosnet.inf and add the following lines to the end of the [Files] section:

d1,REGINI.EXE
d1,REG.EXE

The Txtsetup.sif file is used during the text-mode phase of the unattended setup. This file tells the setup process which files have to be copied to the hard disk.

The next step is to modify the Txtsetup.sif. Add the following lines to the end of the [sourceDisksFiles] section of the Txtsetup.sif file:

REGINI.EXE  = 1,,,,,,,2,0,0
REG.EXE     = 1,,,,,,,2,0,0

Adding these lines causes the files above to be copied to the System32 directory.

Link to comment
Share on other sites

I turn out that the Hotfixe 823353 is messing up the IE6 entries in RunOnceEx and this was the reason of the HANG for me.

When installing IE6, theses entry are added in RunOnceEx:

Navigation Services
Internet Tools
System Services

You must let them run BEFORE installing KB823353 otherwise it will halt

@Bilou_Gateux

Isn't it simpler to add these 2 exe in your $OEM$\$$\SYSTEM32 folder? This way you don't have to mess with the I386 source folder.

Link to comment
Share on other sites

  • 2 weeks later...

Hi there,

After completing my Unattended Windows XP CD, I have just started the Unattended Windows 2000 CD yesterday. Strangely, the ProductID is not accepted in winnt.sif file. Can you please enlighten me on how to automate providing the Serial Number for Windows 2000? Everything else is fine i.e. works unattended.

Cheers,

McoreD

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