First you are going to need some files:
From this post's attachments, the Config2000sp5_date.zip file and extract it, this will also setup the necessary directory structure. The archive contains:
\InstallWin2000sp5.txt (end user guide)
\Run1_W2Ksp5.bat (install .Net 2.0, DirectX 9c and 6 minor updates, optional silent installers)
\Run2_W2Ksp5.bat (install Windows Media Player 9 and 6 hotfixes, optional silent installers)
\AddOns\Access*.lnk
\AddOns\ChOwn*.bat (optional files for running as a limited user, see notes part 3)
\AddOns\Grant_Access.txt
\AddOns\MenuReorg.bat (optional menu & desktop cleanup)
\AddOns\qtalt.ini (config file for QuickTime alternative lite installation)
\Misc\Hotfix2000sp5_date.torent (hotfixes, duh)
\Misc\Run*_W2Ksp5.bat (optional additional install passes)
\Misc\UpdatePrep.bat (renames files, also deletes outdated hotfixes and unnecessary DirectX components)
\Misc\Win2000sp5.ini (nLite session file)
Either from RyanVM's tracker, download via BitTorent the Unofficial Windows 2000 Service Pack 5.1.2195.24 Refresh, extract the actual service pack (w2ksp51.exe) from the .zip file and save it to \Misc.
OR download from MediaFire or eSnips the 3 part 7-Zip archive, recombine and save to \Misc.
MD5: B86F9385CBF2FBD3053492FD00CFA598
SHA-1: A422A40C062989BFE95AA428C094321E82394ACC
Download from MediaFire or eSnips the .NET installers (see notes part 4 for other options).
998-2KDNF11SP1.7z, save to \Hotfix
MD5: B4820DCFDCBB18026117CBEF0D1F492B
SHA-1: 40E4C8DB375E4EB32A73324DF8D8C39FC78CF6A6
2KDNF20SP2.exe, save to \RunOnce
MD5: 6B6AD8991BC5B0C4E0F957B489B3E3D3
SHA-1: 7A1FC0D00DBD1DF406555CAD3A65C108AD375765
From Microsoft you want (▼ is a direct link to the executable):
▼ Windows Media Player 9, rename it to “WMP09-Setup-98Me2000.exe” and save it to \RunOnce (sometimes Microsoft's file names are neither informative nor exclusive).
MD5: E919C4E0050B32AEBE83A5D2EB613DD4
SHA1: 580536D10657FA3868DE2869A3902D31A0DE791B
▼ EXTRACT the latest (Aug 09) DirectX redistributable to \DirectX_9c (you can get back 44MB by deleting the x64.cab files).
MD5: 3F615F38FDC5EE3A8F142DC6F7594657
SHA-1: 563B96A3D78D6038D10428F23954F083320B4019
Once again you can either:
Download the current Hotfix 7-Zip archives from MediaFire, extracting them into the same directory that you chose to extract the Config archive into, this method is recommended for new users. The archives won't necessarily be updated every month, only when there is a deletion and/or several new hotfixes.
OR open the Hotfix2000sp5_date.torent (from \Misc) into the same directory that you chose to extract the Config archive into. If you have used this guide previously, run the UpdatePrep.bat file in the \Misc directory before opening the Hotfix torent, this will remove any outdated hotfixes. Due to slow speed (about 50 hours for a full download) this method is recommended for returning users updating their hotfix list, it can also be used to error check the downloads (the torent also contains most of the other files for error checking purposes).
They both have the following contents:
At \Hotfix for direct integration
020-Windows-KB909520-v1.000-x86-ENU.exe 641,312
050-Windows2000-KB917008-x86-ENU.exe 1,337,832
060-Windows2000-KB920670-x86-ENU.exe 521,192
070-Windows2000-KB920683-x86-ENU.exe 573,416
080-Windows2000-KB921398-x86-ENU.exe 1,243,112
110-Windows2000-KB923980-x86-ENU.exe 646,632
120-Windows2000-KB924270-x86-ENU.exe 1,359,848
130-Windows2000-KB926247-x86-ENU.exe 503,272
140-Windows2000-KB928843-x86-ENU.exe 721,264
150-Windows2000-KB924667-x86-ENU.exe 1,213,928
160-Windows2000-KB918118-x86-ENU.exe 708,584
170-Windows2000-KB926436-x86-ENU.exe 532,968
180-Windows2000-KB925902-x86-ENU.exe 1,622,896
200-Windows2000-KB920213-x86-ENU.exe 1,093,608
210-MDAC253-KB927779-x86-ENU.exe 2,254,200
220-Windows2000-KB927891-x86-ENU.exe 1,276,272
240-Windows2000-KB935839-x86-ENU.exe 736,624
260-WindowsMedia6-KB925398-v2-x86-ENU.exe 797,008
270-Windows2000-KB926122-x86-ENU.exe 1,397,104
330-Windows2000-KB938827-x86-ENU.exe 990,064
350-Windows2000-KB923810-x86-ENU.exe 1,414,000
400-Windows2000-KB943485-x86-ENU.exe 1,197,424
410-Windows2000-KB942831-x86-ENU.exe 596,848
420-Windows2000-KB943055-x86-ENU.exe 761,200
440-Windows2000-KB944338-x86-ENU.exe 832,368
450-Windows2000-KB945553-x86-ENU.exe 575,856
490-Windows2000-KB950749-x86-ENU.exe 3,036,896
520-Windows2000-KB951748-x86-ENU.exe 836,320
540-Windows2000-KB950974-x86-ENU.exe 578,272
560-Windows2000-KB952954-x86-ENU.exe 524,000
610-Windows2000-KB953155-x86-ENU.exe 563,936
650-Windows2000-KB958644-x86-ENU.exe 618,024
660-Windows2000-KB955069-x86-ENU.exe 926,944
680-msxml6-KB954459-enu-x86.exe 952,840 Optional, Microsoft XML Core Services 6.0 Service Pack 1
690-Windows2000-KB957097-x86-ENU.exe 1,453,792
700-WindowsMedia64-KB954600-x86-ENU.exe 1,373,584
710-Windows2000-KB956802-x86-ENU.exe 618,024
740-Windows2000-KB958687-x86-ENU.exe 617,512
760-Windows2000-KB960225-x86-ENU.exe 561,192
780-Windows2000-KB967715-x86-ENU.exe 1,243,704
790-Windows2000-KB952004-x86-ENU.exe 3,294,432
800-Windows2000-KB960803-x86-ENU.exe 1,350,696
810-Windows2000-KB959426-x86-ENU.exe 511,544
820-Windows2000-KB923561-x86-ENU.exe 1,306,168
840-Windows2000-KB961501-x86-ENU.exe 1,319,664
860-Windows2000-KB970238-x86-ENU.exe 703,760
870-Windows2000-KB970483-x86-ENU.exe 592,632
894-Windows2000-KB961371-V2-x86-ENU.exe 581,888
896-Windows2000-KB971032-x86-ENU.exe 1,382,136
898-Windows2000-KB971557-x86-ENU.exe 529,144
900-Windows2000-KB973869-x86-ENU.exe 538,360
902-Windows2000-KB958470-x86-ENU.exe 1,517,816
904-Windows2000-KB973507-x86-ENU.exe 523,504
906-Windows2000-KB960859-x86-ENU.exe 1,219,624
908-OE6.0sp1-KB973354-Windows2000-x86-ENU.exe 2,423,184
910-Windows2000-KB956844-x86-ENU.exe 555,760
912-Windows2000-KB971961-x86-ENU.exe 693,488
914-IE6.0sp1-KB974455-Windows2000-x86-ENU.exe 4,216,728
916-Windows2000-KB973525-x86-ENU.exe 495,344
918-WindowsMedia64-KB974112-x86-ENU.exe 598,920
920-IE6.0sp1-KB958869-Windows2000-x86-ENU.exe 1,551,240
922-Windows2000-KB975254-x86-ENU.exe 537,840
924-Windows2000-KB969059-x86-ENU.exe 1,049,336
926-Windows2000-KB971486-x86-ENU.exe 1,604,344
928-Windows2000-KB974571-x86-ENU.exe 513,264
930-Windows2000-KB969947-x86-ENU.exe 1,314,040
932-IE6.0sp1-KB976749-Windows2000-x86-ENU.exe 1,769,864
At \RunOnce for installation via nLite's RunOnce / batch files
install_flash_player_ax.exe 1,962,544 Optional, Adobe Flash ActiveX control for I.E.
msxml.msi 2,434,048 Optional, Microsoft XML Core Services 4.0 Service Pack 3
rootsupd_fe44934fd80dd11fec2f0f9b24431658a4f6d589.exe 239,000 Forum thread
ShutDown.exe 19,456 - From %SystemRoot%\System32 of Win XP sp3
vcredist_x86.exe 2,745,256 Optional, Visual C++ 2005 SP1 runtime
Windows2000-DirectX9-KB971633-x86-ENU.exe 1,008,520
Windows2000-KB923191-x86-ENU.exe 791,016
Windows2000-KB941569-x86-ENU.exe 2,432,560
Windows2000-WindowsMedia9-KB973540-x86-ENU.exe 2,196,360
Windows2000-WindowsMedia-KB952069-x86-ENU.exe 3,564,944
Windows2000-WindowsMedia-KB954155-x86-ENU.exe 768,392
Windows2000-WindowsMedia-KB968816-x86-ENU.exe 1,618,832
WindowsUpdateAgent30-x86.exe 6,216,032
At \AddOns
SchTasks.exe 121,856 - if you have Win XP sp2 then you already have this file at %SystemRoot%\System32, but you would need to change hex offset E3F8 from 75 to EB for it to work with Windows 2000. SchTasks.exe is also available separately from this post's attachments.
SubInACL.exe 290,304 (both extracted from subinacl.msi)
SubInACL.htm 89,886
Note as to format, the trailing number in italics is obviously file size while the leading number is to ensure that they are integrated in the same order that Windows Update would install them. The large gaps in number are so that any future changes can be inserted into the hotfix torent without requiring name changes, re-ordering or re-downloading files. It is important to note that the tracker's IP address is at least nominally dynamic (static for months at a time though), so if you can't connect for more than a day PM me.
If you prefer to directly download all the hotfixes, UpdatePrep.bat will rename the files as appropriate. If you've done everything correctly \Hotfix should have 68 files 83,923,404 and \RunOnce should have 15 files 57,233,663.
Of course you won't get very far without nLite (1.4 beta or later) and a Windows 2000 install CD.
Now it's time to fire up nLite.
NB: must be run with administrator privileges, might need to disable anti-virus software, Vista users should run in XP compatibility mode and there is an archive of screenshots available at my MediaFire page.
1. Locate your source (my session file is located at \Misc, you should probably use it as a base).
2. Slipstream the unofficial service pack 5 (w2ksp51.exe).
3. Add all the hotfixes listed in the \Hotfix directory (use Crtl-A, check the order) and any program Addons (N.B. not all Addons will work without modification, see notes part 1).
4. Add any drivers you may need, especially textmode SATA & RAID drivers (Intel, nVidia). I've found that 7zip will extract some things WinRAR won't (also see notes part 2).
5. Unattended settings, this is the most important one. Your RunOnce file should look like this:
CODE
Ping -n 11 127.0.0.1 > nul
For %%I in (Z Y X W V U T S R Q P O N M L K J I H G F E D) do CMD /R "%%I:\Run1_W2Ksp5.bat %%I"
rem should not see me
Pause
For %%I in (Z Y X W V U T S R Q P O N M L K J I H G F E D) do CMD /R "%%I:\Run1_W2Ksp5.bat %%I"
rem should not see me
Pause
You must also set it to autologon twice to an administrator class account (read the note), fully automated mode would be an excellent idea Smithers.
6. Make any tweaks you want, then run the process.
7. Copy all the files and folders that you have downloaded, except those at \Hotfix and \Misc to your nLite working directory, maintaining the directory structure (\AddOns contains optional files, see notes part 1 & 3).
8. After you drag n drop anything else that you may want / need, go ahead and burn that image / CD / DVD.
Installation
If you have gone for the fully unattended / autologon x2 option, then all you have to do is let it be for roughly 1 1/2 hours. The system will be ready for use when a logon box is waiting for your input. The only download available will be the “Malicious Software Removal Tool”.
Here is how it works:
Gurglemeyer's excellent unofficial service pack 5 has most of the post service pack 4 updates and more importantly Internet Explorer 6 sp1, so once that is slipstreamed most of the updating is done.
The updates that are directly integrated are those that show up when you first run Windows Update on Win2000 sp5.
Note that because %Source% does not work with Windows 2000, the RunOnce file has to search for Run1_W2Ksp5.bat, this means having unusual file names is important. Here we install DirectX 9.0c, some minor updates and the hotfix that fails under nLite to integrate into the source. The order is important because KB923191 will force a system reboot, but in this case that helps us as a reboot is recommended between the installation of DirectX 9.0c and Windows Media Player 9 anyway.
Run1_W2Ksp5.bat
CODE
rem you must use either %Source% or %1:\ when referring to files on the install media
Set Source=%1:\
rem add command line shutdown ability to Windows 2000
Copy %Source%RunOnce\ShutDown.exe %SystemRoot%
rem first pass of updates
%Source%RunOnce\rootsupd_fe44934fd80dd11fec2f0f9b24431658a4f6d589.exe
%Source%RunOnce\install_flash_player_ax.exe /S
msiexec /I %Source%RunOnce\msxml.msi /Passive /NoRestart
%Source%RunOnce\vcredist_x86.exe /Q
%Source%RunOnce\2KDNF20SP2.exe
rem .Net silent install option
%Source%RunOnce\NetFx20SP2_x86.exe /Passive /NoRestart
%Source%RunOnce\NDP20SP2-KB958481-x86.exe /Passive /NoRestart
%Source%RunOnce\NDP20SP2-KB974417-x86.exe /Passive /NoRestart
%Source%RunOnce\NDP20SP2-KB971111-x86.exe /Passive /NoRestart
%Source%RunOnce\dotNetFx.exe /Q /C:"Install /Qb"
%Source%RunOnce\NDP1.1sp1-KB867460-x86.exe /Q
%Source%RunOnce\NDP1.1sp1-KB953297-x86.exe /Q
%Source%RunOnce\NDP1.1sp1-KB971108-x86.exe /Q
%Source%DirectX_9c\DXsetup.exe /Silent
%Source%RunOnce\WindowsUpdateAgent30-x86.exe /Q /WUforce
rem silent installers go here
rem add Windows Explorer to Quick Launch
Copy "%AllUsersProfile%\..\Default User\Start Menu\Programs\Accessories\Windows Explorer.lnk" "%UserProfile%\Application Data\Microsoft\Internet Explorer\Quick Launch\"
Copy "%AllUsersProfile%\..\Default User\Start Menu\Programs\Accessories\Windows Explorer.lnk" "%AllUsersProfile%\..\Default User\Application Data\Microsoft\Internet Explorer\Quick Launch\"
rem copy optional files, these make running as a limited user feasible and use no system resources
Copy %Source%AddOns\SubInACL.* %SystemRoot%
Copy %Source%AddOns\ChOwn*.bat %SystemRoot%
Copy %Source%AddOns\Grant_Access.txt %SystemRoot%
If exist %SystemRoot%\SubInACL.exe MkDir "%AllUsersProfile%\Start Menu\Programs\Grant Access\"
Copy %Source%AddOns\Access*.lnk "%AllUsersProfile%\Start Menu\Programs\Grant Access\"
rem add advanced command line task scheduling ability to Windows 2000
Copy %Source%AddOns\SchTasks.exe %SystemRoot%
rem support JohnDoe74's Daemon Tools addon (older 4.10 version only)
%SystemRoot%\daemon\dt410x86.exe
RmDir /S /Q %SystemRoot%\daemon
rem all GUI run once commands go here
rem setup for second pass
Echo Windows Registry Editor Version 5.00 > %Temp%\2ndPass.reg
Echo. >> %Temp%\2ndPass.reg
Echo [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce] >> %Temp%\2ndPass.reg
Echo "command0"="%1:\\Run2_W2Ksp5.bat %1 " >> %Temp%\2ndPass.reg
RegEdit /S %Temp%\2ndPass.reg
Del %Temp%\2ndPass.reg
rem VMware drivers
"%ProgramFiles%\7-Zip\7z" X %Source%AddOns\Windows.iso -O%Temp%\VMware
msiexec /I "%Temp%\VMware\VMware Tools.msi" ADDLOCAL=ALL /Passive /NoRestart
RmDir /S /Q %Temp%\VMware
rem this patch will force reboot
%Source%RunOnce\Windows2000-KB923191-x86-ENU.exe /Passive
Set Source=%1:\
rem add command line shutdown ability to Windows 2000
Copy %Source%RunOnce\ShutDown.exe %SystemRoot%
rem first pass of updates
%Source%RunOnce\rootsupd_fe44934fd80dd11fec2f0f9b24431658a4f6d589.exe
%Source%RunOnce\install_flash_player_ax.exe /S
msiexec /I %Source%RunOnce\msxml.msi /Passive /NoRestart
%Source%RunOnce\vcredist_x86.exe /Q
%Source%RunOnce\2KDNF20SP2.exe
rem .Net silent install option
%Source%RunOnce\NetFx20SP2_x86.exe /Passive /NoRestart
%Source%RunOnce\NDP20SP2-KB958481-x86.exe /Passive /NoRestart
%Source%RunOnce\NDP20SP2-KB974417-x86.exe /Passive /NoRestart
%Source%RunOnce\NDP20SP2-KB971111-x86.exe /Passive /NoRestart
%Source%RunOnce\dotNetFx.exe /Q /C:"Install /Qb"
%Source%RunOnce\NDP1.1sp1-KB867460-x86.exe /Q
%Source%RunOnce\NDP1.1sp1-KB953297-x86.exe /Q
%Source%RunOnce\NDP1.1sp1-KB971108-x86.exe /Q
%Source%DirectX_9c\DXsetup.exe /Silent
%Source%RunOnce\WindowsUpdateAgent30-x86.exe /Q /WUforce
rem silent installers go here
rem add Windows Explorer to Quick Launch
Copy "%AllUsersProfile%\..\Default User\Start Menu\Programs\Accessories\Windows Explorer.lnk" "%UserProfile%\Application Data\Microsoft\Internet Explorer\Quick Launch\"
Copy "%AllUsersProfile%\..\Default User\Start Menu\Programs\Accessories\Windows Explorer.lnk" "%AllUsersProfile%\..\Default User\Application Data\Microsoft\Internet Explorer\Quick Launch\"
rem copy optional files, these make running as a limited user feasible and use no system resources
Copy %Source%AddOns\SubInACL.* %SystemRoot%
Copy %Source%AddOns\ChOwn*.bat %SystemRoot%
Copy %Source%AddOns\Grant_Access.txt %SystemRoot%
If exist %SystemRoot%\SubInACL.exe MkDir "%AllUsersProfile%\Start Menu\Programs\Grant Access\"
Copy %Source%AddOns\Access*.lnk "%AllUsersProfile%\Start Menu\Programs\Grant Access\"
rem add advanced command line task scheduling ability to Windows 2000
Copy %Source%AddOns\SchTasks.exe %SystemRoot%
rem support JohnDoe74's Daemon Tools addon (older 4.10 version only)
%SystemRoot%\daemon\dt410x86.exe
RmDir /S /Q %SystemRoot%\daemon
rem all GUI run once commands go here
rem setup for second pass
Echo Windows Registry Editor Version 5.00 > %Temp%\2ndPass.reg
Echo. >> %Temp%\2ndPass.reg
Echo [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce] >> %Temp%\2ndPass.reg
Echo "command0"="%1:\\Run2_W2Ksp5.bat %1 " >> %Temp%\2ndPass.reg
RegEdit /S %Temp%\2ndPass.reg
Del %Temp%\2ndPass.reg
rem VMware drivers
"%ProgramFiles%\7-Zip\7z" X %Source%AddOns\Windows.iso -O%Temp%\VMware
msiexec /I "%Temp%\VMware\VMware Tools.msi" ADDLOCAL=ALL /Passive /NoRestart
RmDir /S /Q %Temp%\VMware
rem this patch will force reboot
%Source%RunOnce\Windows2000-KB923191-x86-ENU.exe /Passive
On the second attempt to logon the desktop will actually appear, but don't try to use it just yet, as we still have to install Media Player 9 and it's updates, which is done by Run2_W2Ksp5.bat. The batch file gets run by GuiRunOnce which was setup by the RegEdit command in Run1_W2Ksp5.bat.
Run2_W2Ksp5.bat
CODE
rem startup delay to allow disk thrashing to subside before proceeding
Ping -n 121 127.0.0.1 > nul
rem you must use either %Source% or %1:\ when referring to files on the install media
Set Source=%1:\
rem second pass of updates
%Source%RunOnce\Windows2000-DirectX9-KB971633-x86-ENU.exe /Passive /NoRestart
%Source%RunOnce\WMP09-Setup-98Me2000.exe /Q
%Source%RunOnce\Windows2000-KB941569-x86-ENU.EXE /Passive /NoRestart
%Source%RunOnce\Windows2000-WindowsMedia-KB952069-x86-ENU.exe /Passive /NoRestart
%Source%RunOnce\Windows2000-WindowsMedia9-KB973540-x86-ENU.exe /Passive /NoRestart
%Source%RunOnce\Windows2000-WindowsMedia-KB968816-x86-ENU.exe /Passive /NoRestart
%Source%RunOnce\Windows2000-WindowsMedia-KB954155-x86-ENU.exe /Passive /NoRestart
rem support Bashrat the Sneaky's Driver Packs
%SystemDrive%\DPsFnshr.exe
rem silent installers go here
rem install & configure Open Office, requires 7-Zip for configuration options (defaults shown)
"%ProgramFiles%\7-Zip\7z" X %Source%AddOns\OOo_3.1.1_Win32Intel_install_en-US.exe -O%Temp%\OpenOffice
If exist %Temp%\OpenOffice\openofficeorg31.msi msiexec /I %Temp%\OpenOffice\openofficeorg31.msi ALLUSERS=1 ADDLOCAL=ALL SELECT_WORD=1 SELECT_EXCEL=1 SELECT_POWERPOINT=1 /Qr /NoRestart
RmDir /S /Q %Temp%\OpenOffice
If Not exist "%ProgramFiles%\7-Zip\7z.exe" %Source%AddOns\OOo_3.1.1_Win32Intel_install_en-US.exe /S
Copy %SystemRoot%\Microsoft.NET\Framework\v2.0.50727\gdiplus.dll "%ProgramFiles%\OpenOffice.org 3\Basis\program\"
rem support QuicktimeAltLite for Win 2000
%Source%AddOns\Quicktimealt181lite.exe /Silent /NoRestart /LoadInf="%Source%AddOns\qtalt.ini"
rem setup for the next pass
Set NextBatch=Run3_W2Ksp5.bat
Echo Windows Registry Editor Version 5.00 > %Temp%\NextPass.reg
Echo. >> %Temp%\NextPass.reg
Echo [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce] >> %Temp%\NextPass.reg
Echo "command0"="%1:\\%NextBatch% %1 " >> %Temp%\NextPass.reg
If exist %1:\%NextBatch% RegEdit /S %Temp%\NextPass.reg
Del %Temp%\NextPass.reg
rem VirtualBox Drivers
"%ProgramFiles%\7-Zip\7z" X %Source%AddOns\VBoxGuestAdditions.iso -O%Temp%\VirtualBox
%Temp%\VirtualBox\VBoxGuestAdditions.exe /S
%Temp%\VirtualBox\VBoxWindowsAdditions-x86.exe /S
RmDir /S /Q %Temp%\VirtualBox
Xcopy "%UserProfile%\Start Menu\Programs\Sun VirtualBox Guest Additions" "%AllUsersProfile%\Start Menu\Programs\Sun VirtualBox Guest Additions\" /e
rem support JohnDoe74's Windows Defender addon (RunOnce version only)
If exist %SystemRoot%\windefender\windefender.cmd Copy %SystemRoot%\Microsoft.NET\Framework\v2.0.50727\gdiplus.dll %SystemRoot%\System32\
%SystemRoot%\windefender\hidec.exe /w %SystemRoot%\windefender\windefender.cmd
RmDir /S /Q %SystemRoot%\windefender
%Source%AddOns\mpas-fe.exe /Q
rem support Spybot - Search and Destroy
%Source%AddOns\spybotsd162.exe /Silent /SP- /Components="" /NoRestart
%Source%AddOns\spybotsd_includes.exe /S
"%ProgramFiles(x86)%\Spybot - Search & Destroy\SpybotSD.exe" /taskbarhide /autoimmunize /autoclose
rem support Avast anti-virus (must rename setup file to match)
%Source%AddOns\Avast_setupeng.exe /Silent /SP- /NoRestart
%Source%AddOns\vpsupd.exe /Silent
rem support Comodo Firewall
%Source%AddOns\Comodo2.exe
rem optional menu reorganization
rem CMD /R %Source%AddOns\MenuReorg.bat
rem VirtualPC drivers (ejects CD, must be the last command of the last batch file)
"%ProgramFiles%\7-Zip\7z" X %Source%AddOns\VMAdditions.iso -O%Temp%\VirtualPC
msiexec /I %Temp%\VirtualPC\Windows\VirtualMachineAdditions.msi ADDLOCAL=ALL /Passive /ForceRestart
ShutDown /R /F /T 20
Ping -n 121 127.0.0.1 > nul
rem you must use either %Source% or %1:\ when referring to files on the install media
Set Source=%1:\
rem second pass of updates
%Source%RunOnce\Windows2000-DirectX9-KB971633-x86-ENU.exe /Passive /NoRestart
%Source%RunOnce\WMP09-Setup-98Me2000.exe /Q
%Source%RunOnce\Windows2000-KB941569-x86-ENU.EXE /Passive /NoRestart
%Source%RunOnce\Windows2000-WindowsMedia-KB952069-x86-ENU.exe /Passive /NoRestart
%Source%RunOnce\Windows2000-WindowsMedia9-KB973540-x86-ENU.exe /Passive /NoRestart
%Source%RunOnce\Windows2000-WindowsMedia-KB968816-x86-ENU.exe /Passive /NoRestart
%Source%RunOnce\Windows2000-WindowsMedia-KB954155-x86-ENU.exe /Passive /NoRestart
rem support Bashrat the Sneaky's Driver Packs
%SystemDrive%\DPsFnshr.exe
rem silent installers go here
rem install & configure Open Office, requires 7-Zip for configuration options (defaults shown)
"%ProgramFiles%\7-Zip\7z" X %Source%AddOns\OOo_3.1.1_Win32Intel_install_en-US.exe -O%Temp%\OpenOffice
If exist %Temp%\OpenOffice\openofficeorg31.msi msiexec /I %Temp%\OpenOffice\openofficeorg31.msi ALLUSERS=1 ADDLOCAL=ALL SELECT_WORD=1 SELECT_EXCEL=1 SELECT_POWERPOINT=1 /Qr /NoRestart
RmDir /S /Q %Temp%\OpenOffice
If Not exist "%ProgramFiles%\7-Zip\7z.exe" %Source%AddOns\OOo_3.1.1_Win32Intel_install_en-US.exe /S
Copy %SystemRoot%\Microsoft.NET\Framework\v2.0.50727\gdiplus.dll "%ProgramFiles%\OpenOffice.org 3\Basis\program\"
rem support QuicktimeAltLite for Win 2000
%Source%AddOns\Quicktimealt181lite.exe /Silent /NoRestart /LoadInf="%Source%AddOns\qtalt.ini"
rem setup for the next pass
Set NextBatch=Run3_W2Ksp5.bat
Echo Windows Registry Editor Version 5.00 > %Temp%\NextPass.reg
Echo. >> %Temp%\NextPass.reg
Echo [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce] >> %Temp%\NextPass.reg
Echo "command0"="%1:\\%NextBatch% %1 " >> %Temp%\NextPass.reg
If exist %1:\%NextBatch% RegEdit /S %Temp%\NextPass.reg
Del %Temp%\NextPass.reg
rem VirtualBox Drivers
"%ProgramFiles%\7-Zip\7z" X %Source%AddOns\VBoxGuestAdditions.iso -O%Temp%\VirtualBox
%Temp%\VirtualBox\VBoxGuestAdditions.exe /S
%Temp%\VirtualBox\VBoxWindowsAdditions-x86.exe /S
RmDir /S /Q %Temp%\VirtualBox
Xcopy "%UserProfile%\Start Menu\Programs\Sun VirtualBox Guest Additions" "%AllUsersProfile%\Start Menu\Programs\Sun VirtualBox Guest Additions\" /e
rem support JohnDoe74's Windows Defender addon (RunOnce version only)
If exist %SystemRoot%\windefender\windefender.cmd Copy %SystemRoot%\Microsoft.NET\Framework\v2.0.50727\gdiplus.dll %SystemRoot%\System32\
%SystemRoot%\windefender\hidec.exe /w %SystemRoot%\windefender\windefender.cmd
RmDir /S /Q %SystemRoot%\windefender
%Source%AddOns\mpas-fe.exe /Q
rem support Spybot - Search and Destroy
%Source%AddOns\spybotsd162.exe /Silent /SP- /Components="" /NoRestart
%Source%AddOns\spybotsd_includes.exe /S
"%ProgramFiles(x86)%\Spybot - Search & Destroy\SpybotSD.exe" /taskbarhide /autoimmunize /autoclose
rem support Avast anti-virus (must rename setup file to match)
%Source%AddOns\Avast_setupeng.exe /Silent /SP- /NoRestart
%Source%AddOns\vpsupd.exe /Silent
rem support Comodo Firewall
%Source%AddOns\Comodo2.exe
rem optional menu reorganization
rem CMD /R %Source%AddOns\MenuReorg.bat
rem VirtualPC drivers (ejects CD, must be the last command of the last batch file)
"%ProgramFiles%\7-Zip\7z" X %Source%AddOns\VMAdditions.iso -O%Temp%\VirtualPC
msiexec /I %Temp%\VirtualPC\Windows\VirtualMachineAdditions.msi ADDLOCAL=ALL /Passive /ForceRestart
ShutDown /R /F /T 20
You can have as many application install reboot passes as desired. To do this simply set the system to auto-logon (in step 5) as many times as required and place the appropriate number of batch files in the root directory of your install media. The first 5 batch files are already written (at \Misc) with the needed handover command, but if you need more they are fairly self explanatory. If using VirtualPC be sure to install its drivers last.
Run3_W2Ksp5.bat
CODE
rem startup delay to allow disk thrashing to subside before proceeding
Ping -n 121 127.0.0.1 > nul
rem you must use either %Source% or %1:\ when referring to files on the install media
Set Source=%1:\
rem silent installers go here
rem setup for the next pass
Set NextBatch=Run4_W2Ksp5.bat
Echo Windows Registry Editor Version 5.00 > %Temp%\NextPass.reg
Echo. >> %Temp%\NextPass.reg
Echo [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce] >> %Temp%\NextPass.reg
Echo "command0"="%1:\\%NextBatch% %1 " >> %Temp%\NextPass.reg
If exist %1:\%NextBatch% RegEdit /S %Temp%\NextPass.reg
Del %Temp%\NextPass.reg
ShutDown /R /F /T 20
Ping -n 121 127.0.0.1 > nul
rem you must use either %Source% or %1:\ when referring to files on the install media
Set Source=%1:\
rem silent installers go here
rem setup for the next pass
Set NextBatch=Run4_W2Ksp5.bat
Echo Windows Registry Editor Version 5.00 > %Temp%\NextPass.reg
Echo. >> %Temp%\NextPass.reg
Echo [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce] >> %Temp%\NextPass.reg
Echo "command0"="%1:\\%NextBatch% %1 " >> %Temp%\NextPass.reg
If exist %1:\%NextBatch% RegEdit /S %Temp%\NextPass.reg
Del %Temp%\NextPass.reg
ShutDown /R /F /T 20
Other notes:
Part 1: Application addons
You can fit an amazing amount of stuff onto this CD, I managed to get all the following onto an install CD and still have a few MB to spare (thanks for all your hard work Rado354 & JohnDoe74 on these Program Addons): All ProgramAddons*.cab files here
DriverPacks: CPU, Chipset, MassStorage & LAN
Kels_CPL_MutliPack_Win2k_addon_v1.8.rar (Recommended)
Daemon Tools by JohnDoe74 You must use the older 4.10 version
ProgramAddons AnyDVD 6.6.0.3.cab
ProgramAddons HashTab 2.3.cab (Recommended) version 3.0 fails
ProgramAddons ImgBurn 2.5.cab
ProgramAddons Firefox 3.5.5.cab
Adobe Flash & Shockwave plugins by JohnDoe74
Silverlight.exe /Q (Silent Install)
ProgramAddons Java Runtime Environment 6 Update 17.cab
ProgramAddons SumatraPDF 0.9.4.cab
ProgramAddons GIMP 2.6.7.cab
ProgramAddons Mihov Image Resizer 1.2.cab
ProgramAddons 7-Zip 4.65.cab (Recommended)
ProgramAddons DVD Shrink 3.2.0.15.cab
DOSBox0.73-win32-installer.exe /S (Silent Install)
ProgramAddons uTorrent 1.8.2.cab
K-Lite_Codec_Pack_544_Mega.exe /Silent /NoRestart /LoadInf="%Source%AddOns\klcp_mega_unattended.ini" (Silent Install)
QuickTime Alternative Lite 1.81 (Silent Install)
Windows Defender by JohnDoe74 Detection update integration supported You must use the RunOnce version
Spybot - Search & Destroy (Silent Install) Detection update integration supported
avast! AntiVirus Home Edition (Silent Install) Detection update integration supported
Comodo Firewall (Silent Install)
However it is important to note that not all addons will work, in my tests I found that JohnDoe74's Daemon Tools and Windows Defender addons silently fail (this is fixable however).
One problem with this install method is that due to the forced reboot at the end of Run1_W2Ksp5.bat, GuiRunOnce doesn't execute on the first pass. You can get around this by moving GuiRunOnce commands to the batch files. For example, to get the Daemon Tools addon to work you take the GuiRunOnce command [%windir%\daemon\dt410x86.exe] and place it in Run1_W2Ksp5.bat just above KB923191.
As it is far easier to delete than add, compatiblity lines will be added to the batch files as they become known, as long as the worst negative consequence is a "File not found" error. A large number of command line silent install switches can be found at my similar topic for XP-64. The items listed below are supported by the batch files, unless otherwise directed simply place the end-user installer at \AddOns for automatic installation.
- Open Office: Get the version without bundled JRE (you have to uncheck a box).
- QuickTime Alternative Lite: The last version with Directshow filters was 1.81 (this was also the 2nd last version to run on W2K), it's available at my MediaFire or eSnips page, rename it to "Quicktimealt181lite.exe".
- Windows Defender: Due to the need to copy gdiplus.dll into the system path prior to installation, if you want to use JohnDoe74's Addon you must use the Windefender-Win2K-RUNONCE-ENG.cab version. Detection update integration supported
- Spybot - Search & Destroy. Detection update integration supported
- avast! AntiVirus Home Edition: You will need to rename the full (not web) installer to Avast_setupeng.exe. Detection update integration supported
- Comodo Firewall: You have to use the older 2.4.18.184 version, small, top-rated and free, unfortunately their installer doesn't allow for an unattended installation. However I've written a basic AutoIt script (my 1st) that will silently install it, available at my MediaFire or eSnips page, rename it to "Comodo2.exe" and place it at \AddOns along with the actual firewall installer.
Part 2: Bashrat the Sneaky's Driver Packs
This setup will work with the DriverPacks finisher, however due to the forced reboot at the end of Run1_W2Ksp5.bat you must use the custom finisher method. Hence the %SystemDrive%\DPsFnshr.exe line in Run2_W2Ksp5.bat (this has only been tested with slipstream method 2). You should run DPs_Base at step 7 (after nLite has finished its modifications).
If you get an "out of memory" or "file is corrupt" error during the textmode section of installation, then do NOT integrate the mass storage DriverPack as textmode (you can rerun DPbase to remove mass storage textmode). In this case you'll have to integrate any mass storage drivers you need with nLite at step 4. In Virtual PC 2007 there was an error about a denied request to install / upgrade a game port, but that did not appear to hinder the installation.
Part 3: Optional components (currently SubInACL/ChOwn & SchTasks)
Any small (<2MB) but useful optional components will be placed in the \AddOns directory. The batch files will be written to support their installation if \AddOns is copied to the nLite working directory.
SubInACL is a command line utility meant for network administrators, but it can be useful to us mere mortals as it makes running as a limited user feasible. Using the "Access *" commands I only have to logon as the Administrator about once a fortnight. Since I started setting up my friend's computers this way I haven't had to deal with the "I cancelled a print job and now my printer is gone" (they deleted the printer) or "Why do I get all these annoying pop-ups" (opened Amazing_Photos.vbs) type service calls. How many of us can truly say they have never clicked the wrong button or typed the wrong command? Remember, the neck you save might just be your own.
SchTasks.exe from XP sp2 (modified to work with Windows 2000) was originally used to launch Run2_W2Ksp5.bat, so it's inclusion is a legacy item, none the less it does add advanced command line task scheduling abilities to Windows 2000.
Part 4: .Net framework
The installers linked to in the downloads section was created using Tomcat76/Strel's script, they are used rather than the original Microsoft installers as they save 70.7MB on your install media (28.5 for 2.0, 42.2 for 1.1). If you prefer to use the original files then save the following 8 to \RunOnce:
▼ NetFx20SP2_x86.exe 25,001,480
▼ NDP20SP2-KB958481-x86.exe 8,981,856
▼ NDP20SP2-KB974417-x86.exe 11,459,928
▼ NDP20SP2-KB971111-x86.exe 1,679,720
▼ dotNetFx.exe 24,265,736
▼ NDP1.1sp1-KB867460-x86.exe 10,703,680
▼ NDP1.1sp1-KB953297-x86.exe 14,120,896
▼ NDP1.1sp1-KB971108-x86.exe 7,002,048
There is also the option of using OnePiece's .Net 1.1sp1 True AddOn, integrate it along with the hotfixes at step 3.
Part 5: Multi-media installations
Sometimes you won't be able to fit everything you want onto one CD and a DVD can't be used. In that case skip step 7 and instead burn the files & folders you would have copied to another CD. You will also have to do one of the following:
A) If you have multiple CD drives just put one CD in each, too easy.
B} Set a system boot password in BIOS and then change CDs on the second reboot.
C) Insert a Pause command as the first line of the RunOnce file (step 5), change CDs on the pause.
If you find that you've added too many AddOns and your image is over CD size, you can just delete the appropriate executables from \I386\svcpack and recreate the image. Most of the executables will be switchless installers so you could instead add them to Run1_W2Ksp5.bat or Run2_W2Ksp5.bat (open the original .cab file and read the Entries*.ini file to be sure). For instance you could do a base W2K CD with all the DriverPacks (except Graphics) and another CD with 560MB of application installs (117MB already reserved).
Part 6: Unofficial Windows 2000 Service Pack 5.1.2195.21
Both Major Geeks and Softpedia host this older version of the service pack. If at all possible the use of version 5.1.2195.24 via BitTorent or eSnips is preferred, however if you must use this version then you will need 4 additional hotfixes:
Hotfix\28-Windows2000-KB913580-x86-ENU.exe 5,470,696
Hotfix\36-Windows2000-KB911280-v2-x86-ENU.exe 928,744
Hotfix\40-Windows2000-KB914388-x86-ENU.exe 618,472
Hotfix\44-Windows2000-KB917537-x86-ENU.exe 626,152
Part 7: Testing
There are 3 free Virtualization programs that you can use to test your creation, VMware Server, Sun VirtualBox and Microsoft VirtualPC 2007.
Automatic installation of Virtual Machine drivers is supported, just place the appropriate .iso file at \AddOns (you MUST use a 7-Zip AddOn for this to work, from either Rado354 or JohnDoe74).
VMware Server 1.0.x (v2.0.x untested)
Pros: Can virtualize just about anything, including x64 guest OS's (x64 support check)
Cons: 4 times the size of the others (v2 15x), registration required
ISO: %ProgramFiles%\VMware\VMware Server\Windows.iso
Sun VirtualBox (last version to run on a Win2000 host MediaFire,eSnips)
Pros: Also good for virtualizing Linux, supports x64 guest OS's if CPU has AMD-V or VT-x
Cons: Will not virtualize Win9x properly, v2.2.4 & earlier - do NOT install Comodo Firewall on the guest
ISO: %ProgramFiles%\Sun xVM VirtualBox\VBoxGuestAdditions.iso
Microsoft VirtualPC 2007 (Host OS XP or later)
Pros: Good for virtualizing Win9x, guest usuable even without VM drivers
Cons: Will not virtualize non Microsoft OS's properly
ISO: %ProgramFiles%\Microsoft Virtual PC\Virtual Machine Additions\VMAdditions.iso
Part 8: Space / Time
According to nLite a clean install CD (no Addons / Drivers, deleted the x64 DirectX cabs and the BootDisk,Discover,Support,ValueAdd folders) uses 484 MB.
A clean installation takes 1 hour with my setup (see below).
An installation with all the applications noted in part 1 takes 1 1/2 hours (includes dealing with 1st run application screens).
An installation with all the applications and ALL the DriverPacks takes 3 hours 15 minutes (keeping all the drivers, MUCH faster on a real machine).
System specs: Virtual PC 2007 running on Win XP x64 Pro platform
Turion 64 ML-34 (1.8GHz, 1MB cache), 1GB RAM, 100GB 5400rpm HDD
Each Virtual PC was allocated 384MB RAM and a 16GB HDD on an USB-HDD
No other applications were running on the laptop during the tests.
As all these tests were performed using Virtual PC 2007, please post about your real world experiences.
