Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 12

Preinstalling

Microsoft® Windows NT® 4.0


with Service Pack 6
for OEMs and System Builders
Windows NT Development
September 1999
Information in this document, including URL and other Internet web site references,
is subject to change without notice. The example companies, organizations,
products, people and events depicted herein are fictitious. No association with any
real company, organization, product, person or event is intended or should be
inferred. Complying with all applicable copyright laws is the responsibility of the
user. Without limiting the rights under copyright, no part of this document may be
reproduced, stored in or introduced into a retrieval system, or transmitted in any
form or by any means (electronic, mechanical, photocopying, recording, or
otherwise), or for any purpose, without the express written permission of Microsoft
Corporation.

Microsoft may have patents, patent applications, trademarks, copyrights, or other


intellectual property rights covering subject matter in this document. Except as
expressly provided in any written license agreement from Microsoft, the furnishing
of this document does not give you any license to these patents, trademarks,
copyrights, or other intellectual property.

© 1999Microsoft Corporation. All rights reserved. Microsoft products are licensed to


OEMs by Microsoft Licensing Inc., a wholly owned subsidiary of Microsoft
Corporation.

Microsoft, MS-DOS, Windows, and Windows NT are either registered trademarks or


trademarks of Microsoft Corporation in the U.S.A. and/or other countries.

The names of actual companies and products mentioned herein may be the
trademarks of their respective owners.
Contents
Introduction.............................................................................................................. 1
Preinstalling Windows NT 4.0 with SP6...................................................................1
Limitations and Notes.........................................................................................2
Preinstallation Steps for System Builders Using Rollback.exe.............................3
Preinstalling Windows NT 4.0 with SP6 and Microsoft Internet Explorer 5..............4
Limitations and Notes.........................................................................................8
Preinstallation Steps for System Builders Using Rollback.exe.............................8
Command-Line Switches...................................................................................10

Introduction
This document provides the information and instructions necessary for original
equipment manufacturer (OEM) system builders to complete the following
processes:

· Preinstall Microsoft® Windows NT® 4.0 with Service Pack 6 (SP6)


· Preinstall Windows NT 4.0 with SP6 and Microsoft Internet Explorer 5

For more information about installing Windows NT 4.0, see the


Microsoft Windows NT Workstation 4.0 Resource Kit.

Preinstalling Windows NT 4.0 with SP6


By using the standard Windows NT 4.0 OEM preinstallation tools and methods, you
can preinstall Windows NT 4.0 with SP6. This process automatically installs SP6
during Windows NT 4.0 Setup. If you want to preinstall Windows NT 4.0 with both
SP6 and Internet Explorer 5, see “Preinstalling Windows NT 4.0 with SP6 and
Microsoft Internet Explorer 5,” later in this document.

When SP6 is preinstalled, the following events occur:

· The Windows NT 4.0 Setup wizard begins.


· When the Windows NT 4.0 Setup wizard completes and SP6 is installed, your
computer restarts.
· After selecting Windows NT 4.0 from the boot loader menu, Windows NT 4.0
loads, and the user can now log on.
· To preinstall Windows NT 4.0 with SP6
1. Create a distribution share folder named Nt4.
2. To create the necessary directories within the new distribution share folder
directory, at the command prompt, type:
mkdir C:\Nt4\$oem$
mkdir C:\Nt4\$oem$\C
mkdir C:\Nt4\$oem$\C\SP6
3. Copy the SP6 installation program from the Windows NT 4.0 SP6 compact disc
(CD) to the SP6 directory.
For an Intel-based computer, at the command prompt, type:
copy D:\SP6i386.exe C:\Nt4\$oem$\C\SP6
where D is the letter of your CD-ROM drive.
For an Alpha-based computer, at the command prompt, type:
copy D:\SP6alpha.exe C:\Nt4\$oem$\C\SP6
where D is the letter of your CD-ROM drive.
4. Create a Cmdlines.txt file using a text editor program, such as Notepad, with the
following content:
For an Intel-based computer:
[Commands]
“C:\SP6\SP6i386 /n /u /o /z”

For an Alpha-based computer:


[Commands]
“C:\SP6\SP6alpha /n /u /o /z”

5. Save the Cmdlines.txt file in the distribution share folder in the $oem$ directory.
6. Create or update an existing Unattend.txt file that contains the following line in
the [Unattended] section:
[Unattended]
OemPreinstall = Yes

7. By using the Unattend.txt file you created or updated in Step 6, run


Windows NT 4.0 Setup in unattended mode.

Limitations and Notes


The following limitations and notes apply to preinstalling Windows NT 4.0 with
SP6:
· This preinstallation is not a slipstream of a Service Pack. You must reapply SP6
when the system state changes.
· To uninstall SP6, you must remove the /n flag from [Commands] in
Cmdlines.txt.
· If you are running Winnt.exe, you must use a $$Rename.txt file in each directory
with a long filename. For more information about $$Rename.txt, see the
Microsoft Windows NT Workstation 4.0 Resource Kit or the Microsoft
Windows NT 4.0 OEM Preinstallation Kit (OPK).
· If you want to use the rollback system auditing tool (Rollback.exe) for auditing
systems that are preinstalled with SP6, you must complete several additional
preinstallation steps to avoid system problems. For more information, see
“Preinstallation Steps for System Builders Using Rollback.exe,” later in this
document.

Preinstallation Steps for System Builders Using


Rollback.exe
SP6 includes fixes that are incompatible with the rollback system auditing tool
(Rollback.exe), which is included with the Microsoft Windows NT 4.0 OPK. If you
plan to use Rollback.exe for auditing systems that are preinstalled with SP6, you
must uninstall the Service Pack before running Rollback.exe. If you run
Rollback.exe on a system with SP6 installed, several problems can occur, including
being unable to restart the system.

If you are preinstalling Windows NT 4.0 Workstation, you can use Sysprep.exe to
prepare your audited system for shipment. Sysprep.exe replaces Rollback.exe as the
preferred tool for preparing systems for users. You do not need to uninstall SP6
before running Sysprep.exe, and you can run Sysprep.exe as many times as
necessary before shipping the system. If you are a system builder and you need a
copy of Sysprep.exe, visit the Microsoft OEM System Builder Program Web site at:
http://www.microsoft.com/oem/

If you plan to audit systems with Rollback.exe, complete the steps in the following
procedure to preinstall Windows NT 4.0 with SP6.

· To preinstall Windows NT 4.0 with SP6 if you plan to use Rollback.exe


1. Copy Rollback.exe to a floppy disk. This floppy disk is your rollback utility disk.
2. Use a text editor program, such as Notepad, to create a file called Rollback.inf,
and save the file to the rollback utility disk created in Step 1.
To run Rollback.exe, the Rollback.inf file must reside in the same directory.
However, because Rollback.inf does not require any special commands to run
correctly, you can use an empty file.
Note

3. Preinstall Windows NT 4.0 with SP6 by using the procedure “To preinstall
Windows NT 4.0 with SP6,” under “Preinstalling Windows NT 4.0 with SP6,”
earlier in this document, with one exception. In Step 4, omit the /n flag in
Cmdlines.txt. Without this flag, Windows NT 4.0 Setup creates an uninstall
directory.
4. Just before graphical user interface (GUI)-mode Setup begins, insert the rollback
utility disk into the floppy drive.
Just before GUI-mode Setup, Windows NT 4.0 Setup provides a hidden insertion
point that you can use to prevent the system from deleting Setup files required by
Rollback.exe.
5. Before the system restarts, remove the rollback utility disk from the floppy drive.
6. Log on normally, which puts the system in audit mode.
7. In Control Panel, use Add/Remove Programs to uninstall SP6.
Or, to uninstall SP6 in unattended mode, at the command prompt, type:
C:\Winnt\$ntservicepackuninstall$\spuninst\spuninst /u

After you complete this procedure, run Rollback.exe. When the user receives the
system, SP6 reinstalls automatically. At startup, the operating system runs the GUI-
mode phase of Setup, which re-executes the “C:\SP6\SP6i386 /u /o /z” or “C:\SP6\
SP6alpha /u /o /z” command in the Cmdlines.txt file.

You should fully test the SP6 uninstall program with your specific preinstallation
process.

Preinstalling Windows NT 4.0 with SP6 and Microsoft


Internet Explorer 5
By using the standard Windows NT 4.0 OEM preinstallation tools and methods, you
can preinstall Windows NT 4.0 with both SP6 and Internet Explorer 5. This process
automatically installs Internet Explorer 5 after Windows NT 4.0 Setup completes
and the system restarts.

When SP6 and Internet Explorer 5 are preinstalled, the following events occur:

· The Windows NT 4.0 Setup wizard begins.


· When the Windows NT 4.0 Setup wizard completes and SP6 is installed, your
computer restarts.
· After selecting Windows NT 4.0 from the boot loader menu, Windows NT 4.0
loads, and the system automatically logs on using the Administrator account.
Note

· The desktop and shell initialize, and the Internet Explorer 5 Setup wizard starts
automatically.
· Internet Explorer 5 Setup wizard pages and progress bars appear, but the user is
not prompted for input.
· When the Internet Explorer 5 Setup wizard completes, the operating system
automatically restarts.
· Windows NT 4.0 is now ready for the user to log on, and Internet Explorer 5 is
installed and available as the default browser.

Internet Explorer 5 Setup runs automatically by using a shortcut in the Explorer


Startup group. However, after Internet Explorer 5 Setup completes, you must remove
it from the Explorer Startup group. Step 5 in the procedure below describes how to
install Ieinst.exe, which removes Internet Explorer 5 Setup for you. To preserve the
user experience, the default Windows NT 4.0 Welcome screen does not appear.
However, after Internet Explorer 5 installs, the Internet Explorer 5 Welcome screen
appears.

If you want to customize Internet Explorer 5, use the Internet Explorer


Administration Kit (IEAK). Then, replace the standard Internet Explorer 5 package
with your IEAK customized package.

· To preinstall Windows NT 4.0 with SP6 and Internet Explorer 5


1. Create a distribution share folder named Nt4.
2. To create the necessary directories within the new distribution share folder
directory, at the command prompt, type:
mkdir C:\Nt4\$oem$\C
mkdir C:\Nt4\$oem$\C\IE5
mkdir C:\Nt4\$oem$\C\SP6
mkdir C:“\Nt4\$oem$\C\Winnt\Profiles\All Users\
Start Menu\Programs\Startup”
3. Copy the SP6 installation program from the Windows NT 4.0 SP6 CD to the SP6
directory.
For an Intel-based computer, at the command prompt, type:
copy D:\SP6i386.exe C:\Nt4\$oem$\C\SP6
where D is the letter of your CD-ROM drive.
For an Alpha-based computer, at the command prompt, type:
copy D:\SP6alpha.exe C:\Nt4\$oem$\C\SP6
where D is the letter of your CD-ROM drive.
4. Copy all the files required to install Internet Explorer 5 from the
Windows NT 4.0 SP6 CD to the IE5 directory.
For an Intel-based computer, at the command prompt, type:
xcopy D:\Valueadd\MSIE5\i386 C:\Nt4\$oem$\C\IE5 /s
where D is the letter of your CD-ROM drive.
For an Alpha-based computer, at the command prompt, type:
xcopy D:\Valueadd\MSIE5\Alpha C:\Nt4\$oem$\C\IE5 /s
where D is the letter of your CD-ROM drive.
5. At the command prompt, type:
copy D:\Valueadd\MSIE5\Oem\Ieinst.exe C:\Nt4\$oem$\C\IE5
This command copies the Ieinst.exe file from the Windows NT 4.0 SP6 CD to the
IE5 directory. Ieinst.exe is the executable file required to automatically install
Internet Explorer 5. Ieinst.exe starts the Internet Explorer 5 Setup wizard and
removes the shortcut that starts Internet Explorer 5 from the Explorer Startup
group.
6. Create a shortcut called Ieinst.lnk that has the following target path (to view the
shortcut target path, from the shortcut menu, click Properties):
C:\Ie5\Ieinst.exe [C:\ie5\ie5setup.exe /q:a /c:“ie5wzd
/s:““#e”” /q /i:n /r:n”] [C:\oops] [C:\Winnt\Profiles\All Users
\Start Menu\Programs\Startup\Ieinst.lnk]
This target path includes the following arguments:
· The first argument starts the Internet Explorer 5 installation program with the
necessary flags.
· The second argument includes a path that does not exist. If this argument is
empty, Ieinst.exe does not run properly.
· The third argument deletes the shortcut from the Explorer Startup group after
the installation completes.

On the Windows NT 4.0 SP6 CD, the Valueadd\MSIE5\Oem directory includes a


sample Ieinst.lnk file.
7. Use the Shortcut.exe tool to disable link tracking for the Ieinst.lnk shortcut, and
then review the shortcut contents to verify your results. At the command prompt,
type:
shortcut -c -s -n A:Ieinst.lnk
shortcut -c -n A:Ieinst.lnk -u all
where A is the location of the shortcut.
You can obtain the Shortcut.exe tool from the Microsoft Windows NT Server 4.0
Resource Kit CD.
8. In the Ieinst.lnk shortcut menu, on the Properties page, in the Start in box, type:
C:\IE5
9. To copy the Ieinst.lnk shortcut to the Startup directory you created in Step 2, at
the command prompt, type:
copy ieinst.lnk C:“\Nt4\$oem$\C\Winnt\Profiles\All Users\
Start Menu\Programs\Startup”
10. Create a Cmdlines.txt file using a text editor program, such as Notepad, with the
following content:
For an Intel-based computer:
[Commands]
“C:\SP6\SP6i386 /n /u /o /z”
“Regedit.exe /S .\autolog.reg”
“Regedit.exe /S .\welcome.reg”

For an Alpha-based computer:


[Commands]
“C:\SP6\SP6alpha /n /u /o /z”
“Regedit.exe /S .\autolog.reg”
“Regedit.exe /S .\welcome.reg”

The two registry scripts enable automatic log on and disable the Windows NT 4.0
Welcome screen.
On the Windows NT 4.0 SP6 CD, the Valueadd\MSIE5\Oem directory includes a
sample Cmdlines.txt file for Intel-based computers.
11. Save the Cmdlines.txt file in the distribution share folder in the $oem$ directory.
12. By using Regedit or Notepad, create the following two registry scripts in the C:\
Nt4\$oem$ directory:
For the Welcome.reg script, type:
REGEDIT4

[HKEY_USERS\DEFAULT\Software\Microsoft\Windows\
CurrentVersion\Explorer\Tips]
"Show" = dword:00000000

For the Autolog.reg script, type:


REGEDIT4

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\
Windows NT\CurrentVersion\Winlogon]
"AutoAdminLogon" = "1"
"DefaultUserName" = "Administrator"
"DefaultDomainName" = "$COMPUTERNAME$"
"DefaultPassword" = ""

The $COMPUTERNAME$ is the name of the computer.


On the Windows NT 4.0 SP6 CD, the Valueadd\MSIE5\Oem directory includes
sample Welcome.reg and Autolog.reg files.
13. Create or update an existing Unattend.txt file that contains the following line in
the [Unattended] and [GuiUnattended] sections:
[Unattended]
OemPreinstall = Yes

[GuiUnattended]
OEMBlankAdminPassword = 1

This [GuiUnattended] command sets the Administrator password to blank, which


allows Windows NT 4.0 to automatically log on as the administrator and install
Internet Explorer 5.
14. By using the Unattend.txt file you created or updated in Step 12, run
Windows NT 4.0 Setup in unattended mode.
For more information about command-line switches for running Setup, see
“Command-Line Switches,” later in this document.

Limitations and Notes


The following limitations and notes apply to preinstalling Windows NT 4.0 with SP6
and Internet Explorer 5:

· This preinstallation is not a slipstream of a Service Pack. You must reapply SP6
when the system state changes.
· To uninstall SP6, you must remove the /n flag from [Commands] in
Cmdlines.txt.
· The Internet Explorer 5 installation requires an Administrator-level account.
Internet Explorer 5 displays a message about this requirement. The preinstallation
process sets the administrator password to blank. The user must change this
password after Internet Explorer 5 is installed. For more information about
installing Internet Explorer 5, review the Internet Explorer 5 release notes
(Ie.txt), which are located on the Windows NT 4.0 SP6 CD in the \Valueadd\
MSIE5 folder.
· The Welcome.reg and Autolog.reg registry scripts were previously used in the
Zero Administration Kit for Microsoft Windows NT 4.0.
· If you are running Winnt.exe, you must use a $$Rename.txt file in each directory
with a long filename. For more information about $$Rename.txt, see the
Microsoft Windows NT Workstation 4.0 Resource Kit or the Microsoft
Windows NT 4.0 OPK.
· There are some issues with the order for uninstalling SP6 and Internet Explorer 5.
Therefore, to prevent the system from creating an uninstall directory, the
preinstallation process uses the /n flag. However, an uninstall directory is
necessary for auditing systems using Rollback.exe. For more information, see
“Preinstallation Steps for System Builders Using Rollback.exe,” later in this
document.

Preinstallation Steps for System Builders Using


Rollback.exe
SP6 and Internet Explorer 5 include fixes that are incompatible with the rollback
system auditing tool (Rollback.exe), which is included with the Microsoft
Windows NT 4.0 OPK. If you plan to use Rollback.exe for auditing systems that are
preinstalled with SP6 and Internet Explorer 5, you must uninstall both SP6 and
Internet Explorer 5 before running Rollback.exe. If you run Rollback.exe on a
system with SP6 and Internet Explorer 5 installed, several problems can occur,
including being unable to restart the system.

If you are preinstalling Windows NT 4.0 Workstation, you can use Sysprep.exe to
prepare your audited system for shipment. Sysprep.exe replaces Rollback.exe as the
preferred tool for preparing systems for users. You do not need to uninstall SP6 and
Internet Explorer 5 before running Sysprep.exe, and you can run Sysprep.exe as
many times as necessary before shipping the system. If you are a system builder and
you need a copy of Sysprep.exe, visit the Microsoft OEM System Builder Program
Web site at:
http://www.microsoft.com/oem/

If you plan to audit systems with Rollback.exe, complete the steps in the following
procedure to preinstall Windows NT 4.0 with SP6 and Internet Explorer 5.

· To preinstall Windows NT 4.0 with SP6 and Internet Explorer 5 if you plan
to use Rollback.exe
1. Copy Rollback.exe to a floppy disk. This floppy disk is your rollback utility disk.
2. Use a text editor program, such as Notepad, to create a file called Rollback.inf,
and save the file to the rollback utility disk created in Step 1.
To run Rollback.exe, the Rollback.inf file must reside in the same directory.
However, because Rollback.inf does not require any special commands to run
correctly, you can use an empty file.
3. Preinstall Windows NT 4.0 with SP6 and Internet Explorer 5 by using the
procedure “To preinstall Windows NT 4.0 with SP6 and Internet Explorer 5,”
under “Preinstalling Windows NT 4.0 with SP6 and Microsoft Internet
Explorer 5,” earlier in this document, with one exception. In Step 9, omit the /n
flag in Cmdlines.txt. Without this flag, Windows NT 4.0 Setup creates an
uninstall directory.
4. Just before GUI-mode Setup begins, insert the rollback utility disk into the floppy
drive.
Note

Just before GUI-mode Setup, Windows NT 4.0 Setup provides a hidden insertion
point that you can use to prevent the system from deleting Setup files required by
Rollback.exe.
5. Before the system restarts, remove the rollback utility disk from the floppy drive.
6. Log on normally, which puts the system in audit mode.
7. In Control Panel, using Add/Remove Programs, uninstall Internet Explorer 5 by
clicking the first option: Remove Internet Explorer 5 and all components.
8. Restart the computer, and when dialog boxes from the Internet Explorer 5
Uninstall wizard prompt you to remove all user settings, click Yes.
9. In Control Panel, using Add/Remove Programs, uninstall SP6.
Or, to uninstall SP6 in unattended mode, at the command prompt, type:
C:\Winnt\$ntservicepackuninstall$\spuninst\spuninst /u
10. At the command prompt, type:
copy C:\Winnt\system32\msnsspc.dll C:\$WIN_NT$.~LS\i386
Internet Explorer 5 overwrites the original Msnsspc.dll file installed by
Windows NT 4.0 Setup. To prevent a version conflict, you must copy the
Mnsnsspc.dll file from the System32 directory.

After you complete this procedure, run Rollback.exe. When the user receives the
system, SP6 reinstalls automatically. At startup, the operating system runs the GUI-
mode phase of Setup, which re-executes the “C:\SP6\SP6i386 /u /o /z” or “C:\SP6\
SP6alpha/u /o /z” command in the Cmdlines.txt file.

You should fully test the SP6 uninstall program with your specific preinstallation
process.

Command-Line Switches
Internet Explorer 5 Setup is made up of two components: Ie5setup.exe and
Ie5wzd.exe. Ie5setup.exe is an installation wrapper around Ie5wzd.exe, the Setup
wizard. Running Ie5setup.exe by itself causes Ie5wzd.exe to run with a set of default
switches. To preinstall Internet Explorer 5 on a user’s computer, you must run
Internet Explorer 5 Setup in batch mode using a set of command-line switches in
conjunction with Ie5wzd.exe. These switches allow you to control how the setup
process looks to the user.

The following table lists the command-line switches that you can use for Internet
Explorer 5 Setup.

Command-line switch Description


/q: Quiet mode
/q:a Administrator Quiet mode, which skips all system
checks and does not display any messages
/m:[1|2] Install mode, where 1 is standard (default) and 2 is
full
/i:[y|n] Install Windows Desktop Update (Y is the default)
/r:n Disable hardboot and softboot
/s: Path to Ie5setup.exe

When Internet Explorer 5 Setup runs in Quiet mode, no user input is required.
Because no input is provided, Setup attempts to determine the channel locale based
on the locale of the computer. For example, if the computer is being shipped to
Australia, the user would probably want Australian channels. However, if you
specify a Quiet-mode installation, the user would receive U.S. channels. Therefore,
you must use the IEAK to build a separate Internet Explorer 5 package for each
channel locale. Also, if you use the IEAK to customize the browser in any way, a
separate package for each channel locale is necessary.

The following examples describe how specific command-line switches affect


Internet Explorer 5 Setup:

· Ie5setup.exe
Specifying no command-line switches causes Setup to display each wizard page
to the user and allows the user to choose the type of installation and the channel
locale. The user can also decide whether to install the Windows Desktop Update.
· Ie5setup.exe /q /c:“ie5wzd.exe /q /m:1 /s:““#e”””
This set of command-line switches runs Setup in Quiet mode. No user input is
required, but Setup progress displays. Setup installs the standard components.
Also, /s:““#e”” directs Ie5wzd.exe to the source path for Ie5setup.exe.
· Ie5setup /q:a /c:“ie5wzd.exe /q:a /r:n /m:2 /i:y /s:““#e”””
This set of command-line switches runs Setup in Administrator Quiet mode. No
user input is required, and no Setup progress displays. Setup selects a full
installation, including Windows Desktop Update, and does not automatically
restart the computer.

If you use the IEAK to customize Internet Explorer 5, these command-line switches
are still valid. However, the Install-mode switch (/m) corresponds to the installation
mode that you specify within the IEAK. In this case, /m:0 corresponds to the first
option (minimum), /m:1 is the second option, and so forth.

You might also like