Jump to content

Microsoft Windows 2000 Unattended


Recommended Posts

Microsoft Windows 2000 Unattended

Quick Guide for people who wish to make a Unattended Windows 2000 CD Setup!

Lets start with copying your windows 2000 pro cd to a folder on C:\ called Win2k

and then remove the folders called VALUEADD, SUPPORT, SETUPTXT, DISCOVER & BOOTDISK

and then you can remove these folder for the i386 folder LANG, COMPDATA, WIN9XMIG,

WIN9XUPG and WINNTUPG. This should leave you with about 189MB of Windows Files.

Now we need to get some files to help setup the Windows 2000 Unattended CD.

Download Here <----This File contains the setupmgr.exe to make your Unattended Answer File,

deptool.chm the help guide for the Windows 2000 Unattended CD and an Example WINNT.SIF file to

help you with your CD. Also the file called unattend.doc contains information on different values

for the WINNT.SIF, and they is a Win2k_Pro ISO Image it the download to make your CD bootable.

The Winnt.sif

Here is an example Winnt.sif for you to look that and see how to make your own.

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

[Unattended]
   UnattendMode=FullUnattended
   OemSkipEula=Yes
   OemPreinstall=Yes
   TargetPath=\WINNT
   DriverSigningPolicy=Igorne
   OemPnPDriversPath=drivers\001;drivers\002;drivers\003

[GuiUnattended]
   AdminPassword=*
   AutoLogon=Yes
   AutoLogonCount=1
   OEMSkipRegional=1
   TimeZone=85
   OemSkipWelcome=1

[UserData]
   FullName="Your Name"
   OrgName=Org Name
   ComputerName=Your Computer Name
   ProductID=*****-*****-*****-*****-*****

[Display]
   BitsPerPel=32
   Xresolution=800
   YResolution=600

[TapiLocation]
   CountryCode=44
   Dialing=Tone
   AreaCode=0116

[RegionalSettings]
   LanguageGroup=1
   SystemLocale=00000809
   UserLocale=00000809
   InputLocale=0809:00000809

[Identification]
   JoinWorkgroup=Your Workgroup

[Networking]
   InstallDefaultComponents=Yes

This winnt.sif has been made so that you can install your other applications using the Windows

Update Method.

In your win2k directory where you placed your win2k setup files make your $OEM$\$1\Install folder

for your applications like in the Windows XP Unattended Setup. And also to include your drives

make the folder $OEM$\$1\drivers like in the Windows XP Unattended Setup.

Now Slipstreaming the SP4 service pack to your Win2k Unattended CD this can be found HERE

all that remains is the hotfixes but i do not know of a method to do that yet will update when

i have tested some methods.

Its seems that cmdlines.txt is supported in Windows 2000 so you dont need i bacth file under [GuiRunOnce].

Now to install your applications make a cmdlines.txt in the $OEM$ directory and add this to it

[COMMANDS]
".\install.CMD"

::NOTE:: to add a user account add this extra line to the cmdlines.txt.

".\user.cmd"

To use the Windows Update Method that Fisrt boot we must now make a file called install.cmd

in the $OEM$ folder in that file add this:

CLS
@echo off
ECHO.

ECHO Adding Windows Update Method
REGEDIT /S %systemdrive%\install\Setup.reg
ECHO.

::NOTE:: to make a user account make another file called user.cmd in the $OEM$ directory

folder and add this to it:

CLS
@echo off
ECHO.

ECHO Adding User Your Name...
net user Your Name /add
net localgroup "administrators" Your Name /add
ECHO.

Where is says your name put your name for the user account.

Next to make your applications install we need a file called setup.reg

to create a setup.reg open notepad and put this that the top and then save it in the

$OEM$\$1\Install folder.

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx]
Title = "Unattended CD Setup"

Here is an example of how to install applications just add this as the next line to install

your application but you will need to edit the path to the program and the Program name to fit your needs

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz110]
"1"="C:\\Install\\DirectX9b\\dxsetup.exe /opk"
@="DirectX 9b"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz120]
"1"="C:\\Install\\NetFramework\\netfx.msi /QN"
@="Dot NET Framework v1.1"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz130]
"1"="C:\\Install\\Sygate\\setup.exe -r"
@="Sygate Personal Firewall"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz140]
"1"="C:\\Install\\NAV\\NAVCE.MSI /QB"
@="NAV Corp v7.6"

Link to comment
Share on other sites

  • 2 months later...

CODE

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx]Title = "Unattended CD Setup"

Here is an example of how to install applications just add this as the next line to install

your application but you will need to edit the path to the program and the Program name to fit your needs

CODE

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz110]

"1"="C:\\Install\\DirectX9b\\dxsetup.exe /opk"

@="DirectX 9b"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz120]

"1"="C:\\Install\\NetFramework\\netfx.msi /QN"

@="Dot NET Framework v1.1"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz130]

"1"="C:\\Install\\Sygate\\setup.exe -r"

@="Sygate Personal Firewall"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz140]

"1"="C:\\Install\\NAV\\NAVCE.MSI /QB"

@="NAV Corp v7.6"

I was not successful in using the method above to install apps during an unattended install of Win2K. All that happens is the Windows Update box opens, and each item is quickly highlighted. No apps are installed after the reboot.

Link to comment
Share on other sites

alright this is a goofy question but still related, but a few years ago i redid my win2k cd and added the cd key to the install so i wouldn't have to keep putting it in. and for the life of me i can't find the directions on how to find it, so i can make a winnt.sif file now to remake the cd again unattended.

without me digging through a dozen boxes i still havent opened since i moved to find the original cd and case with the key, is there any other file on the cd the key might be stored in so i can do this?

Link to comment
Share on other sites

alright this is a goofy question but still related, but a few years ago i redid my win2k cd and added the cd key to the install so i wouldn't have to keep putting it in.  and for the life of me i can't find the directions on how to find it, so i can make a winnt.sif file now to remake the cd again unattended.

without me digging through a dozen boxes i still havent opened since i moved to find the original cd and case with the key, is there any other file on the cd the key might be stored in so i can do this?

Download KeyFinder.

Link to comment
Share on other sites

Here is my current post SP4 hotifx script (current through December):

CLS
@echo off
REM start /wait %systemdrive%\install\Hotfixes\msjavwu.Exe /Q:A /R:N
ECHO.
ECHO Installing MS03-023
start /wait %systemdrive%\install\Hotfixes\Q823559.EXE_W2K_x86_ENU.exe -u -z -q
ECHO.
ECHO Installing MS03-033
start /wait %systemdrive%\install\Hotfixes\Q823718_MDAC_x86_ENU.exe /Q:A /R:N /C:"dahotfix.exe /Q /N"
ECHO.
ECHO Installing MS03-034
start /wait %systemdrive%\install\Hotfixes\Windows2000-KB824105-x86-ENU.exe -u -z -q
ECHO.
ECHO Installing MS03-039
start /wait %systemdrive%\install\Hotfixes\Windows2000-KB824146-x86-ENU.exe -u -z -q
ECHO.
ECHO Installing MS03-040
start /wait %systemdrive%\install\Hotfixes\WindowsMedia-KB828026-x86-ENU.exe /passive /norestart /quiet
ECHO.
ECHO Installing MS03-041
start /wait %systemdrive%\install\Hotfixes\Windows2000-KB823182-x86-ENU.exe -u -z -q
ECHO.
ECHO Installing MS03-042
start /wait %systemdrive%\install\Hotfixes\Windows2000-KB826232b-x86-ENU.exe -u -z -q
ECHO.
ECHO Installing MS03-043
start /wait %systemdrive%\install\Hotfixes\Windows2000-KB828035b-x86-ENU.exe -u -z -q
ECHO.
ECHO Installing MS03-044
start /wait %systemdrive%\install\Hotfixes\Windows2000-KB825119-x86-ENU.exe -u -z -q
ECHO.
ECHO Installing MS03-045
start /wait %systemdrive%\install\Hotfixes\Windows2000-KB824141b-x86-ENU.exe -u -z -q
ECHO.
ECHO Installing MS03-048
start /wait %systemdrive%\install\Hotfixes\IE501SP4_q824145.exe /Q:A /R:N
ECHO.
ECHO Installing MS03-049
start /wait %systemdrive%\install\Hotfixes\Windows2000-KB828749-x86-ENU.exe /passive /norestart /quiet
ECHO.
ECHO Running Qchain
start /wait %systemdrive%\install\Hotfixes\qchain.exe
EXIT

Link to comment
Share on other sites

  • 1 month later...

homie,

I was having the same problem as you so I did some research and found out the the RunOnceExe does not support value type REG_EXPAND_SZ, hence we cannot use environment variables during the installation. To get around this (you have to excuse me if I commit a FUBAR here as the reference I´m quoting is from a French site and my French is not that sharp) you would use a parse.bat script and a file called sed.exe. Sed.exe converts a plain text file into a reg file with full use of environment variables. Here is what mine looks like:

parse.bat

@echo off
echo INSTALLATION PARAMETERS
echo .
echo INSTALLATION...
echo .
echo PLEASE BE PATIENT
type %systemdrive%\winapps\reg\runonce.txt|%windir%\system32\sed.exe
                              's/\%%systemdrive\%%/%systemdrive%/g'>%systemdrive%\winapps\reg\runonce.reg

Note: between sed.exe and 's/\%%..... there is only one space and not a ENTER. I had to split it this way for a better graphic representation.

Having done this I now create a runonce.txt file and dump it to \winapps\reg folder

My runonce.txt file looks like this:

runonce.txt

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx]
TITLE = "Unattended Application Setup"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz100]
"1"="%systemdrive%\\WINAPPS\\Chipset\\Setup.exe -s -f1%systemdrive%\\winapps\\Chipset\\setup.iss"
@="Intel 875 Chipset Driver"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz110]
"1"="%systemdrive%\\WINAPPS\\NVIDIA\\Setup.exe -s -f1%systemdrive%\\winapps\\setup.iss"
@="NVIDIA Graphics Driver"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz140]
"1"="%systemdrive%\\WINAPPS\\OfficeXP\\PROPLUS.MSI /QB"
@="Office XP Professional with FrontPage"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz150]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz160]
"1"="%systemdrive%\\WINAPPS\\CloneCD\\clonecd.vbs"
@="Elby CloneCD 4202"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz190]
"1"="%systemdrive%\\WINAPPS\\JASC\\JPSP8.msi /qn"
@="JASC Photoshop 8 Pro"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz215]
"1"="%systemdrive%\\WINAPPS\\CDRWin\\cdr39.exe /s"
@="CDRWin 3.9"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz220]
"1"="%systemdrive%\\WINAPPS\\ISOBuster\\IsoBuster15.exe /VERYSILENT /SP-"
@="ISOBuster 1.5"
"2"="pskill.exe isobuster.exe"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz255]
"1"="%systemdrive%\\WINAPPS\\INNO\\ISetup4011.exe /VERYSILENT /SP-"
@="INNO Setup 4.0.0.1"

I then create a runonce.bat file and place it in $OEM$ as I will execute it from cmdlines.txt file. It looks like this:

runonce.bat

@echo off
echo System Parameters
echo .
echo Installation...
echo .
echo Please be patient
%windir%\regedit.exe /s %systemdrive%\winapps\reg\runonce.reg

My cmdlines.txt looks like this:

cmdlines.txt

[COMMANDS]
".\ie6.bat"
".\register.bat
".\usracnts.bat"
".\parse.bat"
".\runonce.bat"

Only glitch is I have to manually reboot the machine after all apps are installed. Have found a reboot.exe file but it does not work with W2K. Open to suggestions...

The Old Dude :)

SED.EXE

Link to comment
Share on other sites

  • 3 weeks later...
  • 6 months later...
Microsoft Windows 2000 Unattended

DaveXP great walkthru.

I came across a procedure from ms found in the deploy.cab "unattend.doc" on my Win2kpro disk that I thought would be easy to try. Basically it made light of using your standard win2k setup disk to boot from and then using a floppy to provide the winnt.sif file. However I've not had much luck with this method. I keep getting the error "Line 1 invalid in INF file" .

Do you know what could be causing this problem?

according to the instructions the file is basically an unattended.txt file thats been renamed to winnt.sif. The structure is the same as any other answer file MS uses in their other examples. I actually tried using the sample files they provided and the wizard as well only to get the same error.

The way I understand it. The pc boots off the win2k cd but in the first few seconds the windows installer checks the a: drive for the winnt.sif file, if present, its loaded. Mine loads but always yeilds the error.

FYI My Win2k disk has been slip streamed with sp4. Is there any chance this has had any effect on the installer?

Appreciate any help you can provide.

scruge

WINNT.SIF follows:

[Data]

AutoPartition =0

MsDosInitiated = 0

UnattendedInstall = Yes

[unattended]

FileSystem = LeaveAlone

TargetPath = WINNT

DriverSigningPolicy = ignore

OemPnPDriversPath = drivers\AGP\nvidia;drivers\AGP\sis;drivers\AGP\VIA;drivers\Audio\CMI973x

OemSkipEula = yes

[GuiUnattended]

timezone = 020

[userData]

computerName = 00000

FullName = scr

OrgName =

[Display]

BitsPerPel = 16

Vrefresh = 60

XResolution = 1024

YResolution = 768

[TapiLocation]

AreaCode = 281

[Networking]

[identification]

DomainAdmin = ADMIN

JoinWorkgroup = WORKGROUP

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