Jump to content

Time to finish this Windows 2000 SP4 Unattended!


Recommended Posts

Well, I've been working a lot on my Unattended Windows 2000 SP4 project. I've been using it a while and now I want to build a final (perfect) version.

Still I have some issues I would like to get over with:

1)RunOnceEx.cmd can be used if you copy REG.EXE into SYSTEM32 (you can get it inside your CD\SUPPORT\TOOLS\SUPPORT.CAB) BUT I install Internet Explorer 6 from a batch file (launched from cmdlines.txt) and IE6 is adding some stuff wich is run via RunOnceEx:

Navigation Services
Internet Tools
System Services

After thoses get executed, nothing happens. The system is working but the desktop won't show. You have to reboot and then everything is working perfectly.

So I find must find a way to correct this OR I could execute shutdown.exe with a delay of 2 minutes (enought time to get over those 3 entries).

1a)My other question: is there a small exe program available wich doesn't look ugly as shutdown.exe? :puke: (it looks like a big error message) Maybe something more graphical with a few buttons like Reboot Now and Cancel.

2)Hotfixe 814078. I can get it installed unattended, it always show in Windows Update... I've tried to run this one from a batch file (launched from cmdlines.txt), run it from RunOnceEx, it won't work

2a)Is there a svcpack.inf method available for Windows 2000???

3)QuickTime. Even with the latest version, I get an error message

QTPluginInstall.exe as generated some errors and will be shut down by Windows...

this is happening at the very end of the QuickTime Installation

4)OemPnPDriversPath. Is the limit still 4096 caracters? I'll need to do some further testing but not all my drivers get installed...

These are non critical issues but I would like to clear them!

Link to comment
Share on other sites


I install Internet Explorer 6  from a batch file (launched from cmdlines.txt) and IE6 is adding some stuff wich is run via RunOnceEx:

Navigation Services
Internet Tools
System Services

After thoses get executed, nothing happens. The system is working but the desktop won't show. You have to reboot and then everything is working perfectly.

Check this thread for a possible solution on this problem:

http://www.msfn.org/board/index.php?showtopic=25495

//EDIT!

Oh... :blushing: You've posted in that thread.. Maybe this only works from svcpack.inf? Try executing ie6go.exe from the batchfile after the install of IE.

//EDIT

Edited by ToBe
Link to comment
Share on other sites

I have already encountered same problems as you with IE6SP1 and 814078.

From my experience, i'm supposing is due to the order the updates and ie6setup are launched and dll registered. script version included in IE6 package should be registered first before 814078 try to update dll's.

Rather than installing Internet Explorer 6 Service Pack 1 (SP1) from cmdlines.txt, install it from SVCPACK.INF.

Copy all needed files in your i386\SVCPACK

BRANDING.CAB
CRLUPD.CAB
filelist.dat
ie6setup.exe
IEEXINST.CAB
iesetup.ini
IEW2K_1.CAB
IEW2K_2.CAB
IEW2K_3.CAB
IEW2K_4.CAB
MAILNEWS.CAB
MPLAY2U.CAB
OEEXCEP.CAB
WAB.CAB

SCRIPTFR.EXE

IE6START.EXE

That all the files needed for silent installation of IE6SP1.

SCRIPTFR.EXE, it's a more recent update (replacement) than 814078. Don't forget to remove KB814078.EXE from your SVCPACK folder.

IE6START.EXE is an iexpress package (a creation from GreenMachine 2KCreate) which do the following:

START "RunOnce" /WAIT RUNDLL32.EXE IERNONCE.DLL,RunOnceExProcess

The SVCPACK.INF looks like

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

[SetupData]
CatalogSubDir="\i386\svcpack"

[SetupHotfixesToRun]
DX9NTOPK.EXE /Q:A /R:N
IE6SETUP.EXE /Q:A /R:N
IE6START.EXE /Q:A /R:N <<< GreenMachine package >>>

<<< all HotFixes type 1 here. Silent switch: /Q /U /O /N /Z >>>

889669.EXE /Q /U /O /N /Z  <<< IE6 HotFix corporate version of 889293 >>>
GDITOOL.EXE /Q:A /R:N  <<< Repackaged, now silent >>>
KB833989.EXE /Q:A /R:N <<< IE6 HotFix >>>
KB870669.EXE /Q:A /R:N
ROOTSUPD.EXE /Q:A /R:N
SCRIPTFR.EXE /Q:A /R:N
"MDAC_TYP.EXE /Q:A /R:N /C:""DAHOTFIX.EXE /Q /N"""
"Q832483.EXE /Q:A /R:N /C:""DAHOTFIX.EXE /Q /N"""
KB823353.EXE /Q:A /R:N <<< OE6 HotFix >>>
QCHAIN.EXE

[ProductCatalogsToInstall]

Download links for the needed files for IE6SP1 Win2K only Windows 2K Security Updates for 2KCreate by GreenMachine

Create a silent GDITOOL.EXE package here

About IE6START.EXE, previously IE6GO.EXE

Link to comment
Share on other sites

The only way I managed to install 814078 correctly was this way:

1- From cmdlines.txt I launched a batch file to install IE6 silently

2- IE6 is adding some entry in RunOnceEx wich are executed FIRST!

3- All the updates are in a batch file launched from RunOnceEx in the END

This way, it is installing properly BUT you will get a few error messages after RunOnceEx is finished and the desktop is loading. Once you reboot, everything is normal and you don't get any error messages.

SO this is why I moved my Hotfixes installation to be executed from cmdlines.txt (after IE6) instead of the end of RunOnceEx. This way, Windows reboot before the first logon (and RunOnceEx execution) and I don't get theses error messages... but now 814078 isn't properly installed...

Link to comment
Share on other sites

Don't waste your time with 814078, switch to SCRIPTFR.EXE

thanks to urgan for reporting the difference in versions here

in IE6 SP1 (scripten.cab) the jscript.dll is 5.6.0.6626

in 814078 (JS56NFR.EXE) the jscript.dll is 5.6.0.8513

SCRIPTFR.INF

DriverVer = 08-09-2004, 5.6.0.8825

Product = "Microsoft Windows Script 5.6"

Link to comment
Share on other sites

YES, thanks to GreenMachine 2KCreate, you can install ALL the HotFixes from SVCPACK.INF. Actually, 2KCreate could not handle correctly the 841356 HotFix and as mentionned before, i'm still investigating how to integrate last recommended update 887797 for OE6.

Problem with 887797 integration solved !

Edited by Bilou_Gateux
Link to comment
Share on other sites

Well I have tried a few things but I think I will NOT switch to the svcpack method.

I know the problem I get is from IE6 and his RunOnceEx entries. So I've tried a couple of things:

1- added your IE6GO.EXE right after the IE6 installation (batch file launched from cmdlines.txt)= NO RESULTS

2- just added a reboot command as the first thing to be executed in RunOnceEx so this way, IE6 stuff is going on, then the RunOnceEx window is closing but since I ordered the reboot command BEFORE, windows is rebooting and is finishing the rest of my RunOnceEx installation. This is not elegant but now I have 2 options:

A- I've read somewhere that you can execute the entries in RunOnceEx immediatly using this command:

rundll32.exe iernonce.dll,RunOnceExProcess

So if this works, right after IE6 is intalled, the process will be executed...

B- The other option is to execute 2 RunOnceEx files. I've seen it somewhere it is possible to break it in 2 separate files. It would be much cleaner!

So for now, using method no.2, 814078 is not showing up in Windows Update.

Link to comment
Share on other sites

OK! got it now! I turn out that the Hotfixe 823353 is messing up the IE6 entries in RunOnceEx !!! I had to build a lot of simulations to isolate this one!

IE6 is NOT the cause of the RunOnceEx hang

So here is my current working method (keep in mind it is for Win2000 SP4):

cmdlines.txt

[Commands]
".\GDITool.cmd"
".\ie6.bat"
".\wmp.bat"
".\Hotfixes.cmd"
".\RunOnceEx.cmd"

GDITool.cmd is a simple registry entry for the annoying KB873374

IE6, WMP and the Hotfixes could also be done with svcpack.inf

Remember you have to put REG.EXE in SYSTEM32 in order to use RunOnceEx.cmd:

cmdow @ /HID
@echo off

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

REG ADD %KEY% /V TITLE /D "Your Title" /f

REG ADD %KEY%\zz01 /VE /D "Installation de DirectX 9.0c" /f
REG ADD %KEY%\zz01 /V 1 /D "%systemdrive%\install\Applications\directx\dxsetup.exe /silent" /f

Your Software...

REG ADD %KEY%\zz10 /VE /D "Microsoft Hotfixes" /f
REG ADD %KEY%\zz10 /V 1 /D "%systemdrive%\install\hotfixes\KB814078.exe /Q:A /R:N" /f
REG ADD %KEY%\zz10 /V 2 /D "%systemdrive%\install\hotfixes\KB823353.exe /Q:A /R:N" /f

REG ADD %KEY%\zz11 /VE /D "Computer will Reboot in 2 minutes/f
REG ADD %KEY%\zz11 /V 1 /D "%systemdrive%\install\cleanup.cmd" /f

EXIT

KB814078 and KB823353 are the only Hotfixes that must be done here.

Also I am using zz01 to zz11 just to make sure that the stuff IE6 is adding to RunOnceEx is Executed First.

So now I have to find a solution to the QuickTime error... and something to replace this ugly shutdown.exe

Link to comment
Share on other sites

@Bilou_Gateux

No I am not planning to add this one... only Critical Updates! ;)

I'd like to add some reg tweak in Windows 2000 like I do in Windows XP, but it doesn't seems to work. For instance if I add this to my cmdlines.txt:

[Commands]
".\AllUsers.reg"

Allusers.reg

Windows Registry Editor Version 5.00 

;-----------------------
;Operating System Tweaks
;-----------------------

; Pays = Canada
[HKEY_CURRENT_USER\Control Panel\International]
"iCountry"="2"
"iCurrDigits"="2"
"iCurrency"="3"
"iDate"="2"
"iDigits"="2"
"iLZero"="1"
"iMeasure"="0"
"iNegCurr"="15"
"iTime"="1"
"iTLZero"="1"
"Locale"="00000C0C"
"s1159"=""
"s2359"=""
"sCountry"="Canada"
"sCurrency"="$"
"sDate"="-"
"sDecimal"=","
"sLanguage"="FRC"
"sList"=";"
"sLongDate"="d MMMM yyyy"
"sShortDate"="yyyy-MM-dd"
"sThousand"=" "
"sTime"=":"
"sTimeFormat"="HH:mm:ss"
"iTimePrefix"="0"
"sMonDecimalSep"=","
"sMonThousandSep"=" "
"iNegNumber"="1"
"sNativeDigits"="0123456789"
"NumShape"="1"
"iCalendarType"="1"
"iFirstDayOfWeek"="6"
"iFirstWeekOfYear"="0"
"sGrouping"="3;0"
"sMonGrouping"="3;0"
"sPositiveSign"=""
"sNegativeSign"="-"

[HKEY_CURRENT_USER\Control Panel\International\Geo]
"Nation"="39"

; Clavier canadien-francais
[-HKEY_CURRENT_USER\Keyboard Layout]
[HKEY_CURRENT_USER\Keyboard Layout\IMEtoggle]
[HKEY_CURRENT_USER\Keyboard Layout\IMEtoggle\scancode]
[HKEY_CURRENT_USER\Keyboard Layout\Preload]
"1"="00000c0c"
[HKEY_CURRENT_USER\Keyboard Layout\Profile]
"B0A57A8"=hex:00,27,89,e5,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,4f,\
e6,28,04,a9,57,0a,0b
"22983098"=hex:60,8a,14,6d,b2,ab,b2,2d,cb,fb,9a,22
[HKEY_CURRENT_USER\Keyboard Layout\Substitutes]
"00000c0c"="00001009"
[HKEY_CURRENT_USER\Keyboard Layout\Toggle]
"Hotkey"="1"
"Language Hotkey"="1"
"Layout Hotkey"="2"

; Clavier Canadien Francais
[-HKEY_USERS\.DEFAULT\Keyboard Layout\Preload]
[HKEY_USERS\.DEFAULT\Keyboard Layout\Preload]
"1"="00000c0c"
[-HKEY_CURRENT_USER\Keyboard Layout\Preload]
[HKEY_CURRENT_USER\Keyboard Layout\Preload]
"1"="00000c0c"

;Désactiver l'update GDI+ KB873374
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\GdiDetectionTool]
"GDITool"=dword:00000001

;Toujours décharger les DLL à la fermeture d'un programme
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer]
"AlwaysUnloadDLL"=dword:00000001

;Désactivation de l'îcone de ATi
[HKEY_LOCAL_MACHINE\SOFTWARE\ATI Technologies\Desktop]
"EnableIcon"=:"0"

;Arrêt plus rapide de l'ordinateur
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control]
"WaitToKillServiceTimeout"="1000"
[HKEY_CURRENT_USER\Control Panel\Desktop]
"HungAppTimeout"="1000"
[HKEY_CURRENT_USER\Control Panel\Desktop]
"WaitToKillAppTimeout"="1000"

;Prefetcher tweak(faster booting)
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters]
"EnablePrefetcher"=dword:00000003

;Disable links folder in explorer favorites so it never appears again.
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Toolbar]
"LinksFolderName"=""
"Locked"=dword:00000001

I don't get any error messages but it doesn't works

do I have to convert to the format you gave me for GDItool? If so, how do I do?

cmdow @ /HID
ECHO OFF
:: http://support.microsoft.com/kb/873374/en-us
:: Set Microsoft GDI+ Detection Tool to completed
REG ADD "HKLM\SOFTWARE\Microsoft\GdiDetectionTool" /v "GDITool" /t REG_DWORD /d "00000001" /f
EXIT

also can I use this syntax in svcpack.inf for IE6 installation?

ie6setup.exe /C:"ie6wzd /S:""#e"" /Q:A /R:N"

Link to comment
Share on other sites

You should add some quotation marks " to make it works but i have not figured where to put them.

Silent install: ie6setup.exe /Q:A /R:N [/C:"ie6wzd /S:""#e"" /Q:A /R:N"] section in brackets not mandatory

Yes, you can switch from your reg file to a batch file using REG.EXE tool commands, and launch it from CMDLINES.TXT.

one example i use

CMDLINES.TXT

[Commands]
".\PISTART.EXE .\filedisk.cmd"
".\PISTART.EXE .\memmgmt.cmd"
".\PISTART.EXE .\explorer.cmd"
".\PISTART.EXE .\icw.cmd"
".\PISTART.EXE .\srvwiz.cmd"
".\PISTART.EXE .\gditool.cmd"
".\PISTART.EXE .\regopts.cmd"
".\muiinst\muisetup.exe /i 040c /d 040c /r /s"
".\muiinst\IEUI2KFR.EXE"

FILEDISK.CMD

ECHO OFF
:: FileDisk is a virtual disk driver for Windows NT/2000/XP that uses one or more files to emulate physical disks.
:: http://www.acc.umu.se/~bosse/
INSTDRVW.EXE FileDisk %SYSTEMROOT%\SYSTEM32\DRIVERS\filedisk.sys
:: Set Number of Devices
REG ADD "HKLM\SYSTEM\CurrentControlSet\Services\FileDisk\Parameters" /v NumberOfDevices /t REG_DWORD /d 4 /f

PISTART.EXE is an OEM tool from my notebook manufacturer which launch CMD scripts hidden. Same result as using cmdow @ /HID in your script.

INSTDRVW.EXE is a tool to install a kernel-mode device driver.

MEMMGMT.CMD

ECHO OFF
:: Memory Management
:: http://www.microsoft.com/windows2000/techinfo/reskit/en-us/default.asp?url=/windows2000/techinfo/reskit/en-us/regentry/29931.asp
REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "ClearPageFileAtShutdown" /t REG_DWORD /d 1 /f
REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "DisablePagingExecutive" /t REG_DWORD /d 1 /f
REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "IoPageLockLimit" /t REG_DWORD /d 68000 /f
REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "LargeSystemCache" /t REG_DWORD /d 0 /f  

EXPLORER.CMD

ECHO OFF
:: settings for explorer, full path in header
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\CabinetState" /v "Settings" /t REG_BINARY /d "0c0002000b01002060000000" /f
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\CabinetState" /v "FullPath" /t REG_DWORD /d 1 /f
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\CabinetState" /v "FullPathAddress" /t REG_DWORD /d 1 /f

:: Explorer Custom Settings
:: isg.ee.ethz.ch/tools/realmen/down/tune-default-user.reg
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "Hidden" /t REG_DWORD /d 1 /f
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "ShowCompColor" /t REG_DWORD /d 1 /f
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "HideFileExt" /t REG_DWORD /d 0 /f
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "DontPrettyPath" /t REG_DWORD /d 0 /f
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "ShowInfoTip" /t REG_DWORD /d 1 /f
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "HideIcons" /t REG_DWORD /d 0 /f
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "MapNetDrvBtn" /t REG_DWORD /d 0 /f
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "WebView" /t REG_DWORD /d 0 /f
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "Filter" /t REG_DWORD /d 0 /f
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "SuperHidden" /t REG_DWORD /d 1 /f
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "SeparateProcess" /t REG_DWORD /d 1 /f
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "StartMenuInit" /t REG_DWORD /d 1 /f
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "ShowSuperHidden" /t REG_DWORD /d 1 /f
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "ClassicViewState" /t REG_DWORD /d 1 /f

ICW.CMD

ECHO OFF
:: Windows 2000 Registry: System and Startup Settings
:: http://support.microsoft.com/?kbid=250380
:: Remove Internet Connection Wizard from the Desktop in Windows 2000
REG ADD HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce /v "^SetupICWDesktop" /t REG_SZ /d "||icwconn1.exe /restoredesktop" /f
REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Welcome\ICW /f
REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Welcome\ICW /v "@" /t REG_DWORD /d 1 /f

SRVWIZ.CMD

ECHO OFF
:: Windows 2000 Registry: System and Startup Settings
:: http://www.microsoft.com/technet/prodtechnol/windows2000serv/maintain/featusability/systeman.mspx
:: Suppress the Windows 2000 Configure Your Server Wizard
REG ADD "HKCU\Software\Microsoft\Windows NT\CurrentVersion\Setup\Welcome" /v srvwiz /t REG_DWORD /d 0 /f

GDITOOL.CMD

ECHO OFF
:: http://support.microsoft.com/kb/873374/en-us
:: Set Microsoft GDI+ Detection Tool to completed
REG ADD "HKLM\SOFTWARE\Microsoft\GdiDetectionTool" /v "GDITool" /t REG_DWORD /d "00000001" /f

REGOPTS.CMD

:: http://www.microsoft.com/resources/documentation/Windows/XP/all/reskit/en-us/Default.asp?url=/resources/documentation/Windows/XP/all/reskit/en-us/prff_mul_mbou.asp
:: Changing Language and Regional Options
rundll32.exe shell32,Control_RunDLL intl.cpl,,/f:"c:\winnt\system32\$winnt$.inf"
:: Time Zone Brussels, Copenhagen, Madrid, Paris
RUNDLL32.EXE SHELL32.DLL,Control_RunDLL TIMEDATE.CPL,,/Z (GMT+01:00) Brussels

$winnt$.inf

[RegionalSettings]
  LanguageGroup=1
  Language=040c
  SystemLocale=040c
  UserLocale=040c
  InputLocale=040c:0000040c
  UserLocale_DefaultUser=040c
  InputLocale_DefaultUser=040c:0000040c
  MUILanguage=040c
  MUILanguage_DefaultUser=040c

Link to comment
Share on other sites

Copy and Past without some keyboard input will not convert a reg file (.reg) to a script (.cmd).

You have to rewrite some parts:

.REG

;Toujours décharger les DLL à la fermeture d'un programme
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer]
"AlwaysUnloadDLL"=dword:00000001

.CMD

;Always Unload DLL's
;http://www.xs4all.nl/~laar2002/tweak/win98/unload-dll.html
REG ADD "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer" /v "AlwaysUnloadDLL" /t REG_DWORD /d 1 /f

Do you see the light ;)

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