![]() |
![]() |
All Products | Support | Search | microsoft.com Home | |
![]() |
![]() |
||
TechNet Home | Site Map | Events | Downloads | Personalize | Worldwide | Advanced Search | |
![]() |
![]() Automating Windows NT Setup Deployment Guide Supplement
Microsoft® Windows NT® Operating System
Advanced Sysdiff
White Paper
Written by Lee Grigsby This supplement to the Microsoft® Windows NT® Deployment Guide: Automating Windows NT Setup provides new information and procedures that were unavailable at the publication of the initial Windows NT Deployment Guide.
Microsoft Windows NT includes many tools and features that can be used to automate the setup process. This supplement further addresses the use of Sysdiff.exe in such a manner as to allow you to install sound, tape, video, and other devices through the use of the Sysdiff Pre-Installation tool as a part of the deployment process. You will find detailed information and examples of this installation procedure in the following chapters.
This supplement to the Microsoft® Windows NT® Deployment Guide: Automating Windows NT Setup provides new information and procedures that were unavailable at the publication of the initial Windows NT Deployment Guide. This supplement is not designed to replace the previous version, but is to be used in conjunction with the Deployment Guide, by Information Systems professionals whose task it is to install either Windows NT Workstation or Windows NT Server on many computers.
Microsoft Windows NT includes many tools and features that can be used to automate the setup process. This supplement further addresses the use of Sysdiff.exe in such a manner as to allow you to install sound, tape, video, and other devices through the use of the Sysdiff Pre-Installation tool as a part of the deployment process. You will find detailed information and examples of this installation procedure in the following chapters.
This chapter includes an overview of the Microsoft Windows NT deployment tools, steps to automate the deployment process, a partial listing of what can and cannot be accomplished in a Windows NT deployment, and details about creating a distribution share for Windows NT.
You can do the following with the Windows NT deployment tools:
You cannot do the following with the Windows NT deployment tools:
Setup Manager is the starting point for building a basic Windows NT setup script. Setup Manager is located in the Support\Deptools directory on the Windows NT 4.0 retail compact disc. Setup Manager does not require any special installation procedure. The utility can be run from the compact disc or copied to a directory and run from the hard disk.
The System Difference tool enables you to automatically distribute and install applications and limited hardware devices during or after Windows NT setup. This tool can significantly reduce deployment time and costs. It can be used to record the changes made to your system when an application or device, excluding network adapters, is installed. Sysdiff can capture changes in a "package" and then "apply" or install the package on another system of the same type during or after the setup process. Only versions of this file updated by Service Pack 2 and/or dated April 30, 1997, or later should be used.
Regedit.exe is a utility supplied with Windows NT for working with the registry. Regedit.exe is very similar to the one provided with Microsoft® Windows® 95. If you are familiar with the Import and Export features used often in Windows 95, the same functionality is provided with Windows NT. For examples of how to use Regedit.exe with Windows NT, see Chapter 5, "Customizing Windows NT," in the Windows NT Deployment Guide: Automating Windows NT Setup.
Regedt32.exe is a utility supplied with Windows NT for working with the registry hives. Regedt32.exe provides features that Regedit.exe does not provide. Regedt32.exe is used to modify the default registry hive supplied with the Windows NT 4.0 operating system prior to installation of Windows NT. For examples of how to use Regedt32.exe, see Chapter 5, "Customizing Windows NT," in the Windows NT Deployment Guide: Automating Windows NT Setup.
Regini.exe is a Windows NT 4.0 Resource Kit utility that provides the ability to make simple modifications to the SYSTEM and SOFTWARE registry hives of the Windows NT registry. Regini.exe also provides the ability to apply or change security to the registry. Regini.exe is included with the Windows NT 4.0 Resource Kit. For examples of how to use Regini.exe, see Chapter 5, "Customizing Windows NT," in the Windows NT Deployment Guide: Automating Windows NT Setup.
If you plan to install Windows NT from a network distribution point on systems with newly formatted hard disks, you will need to build a client disk that includes a network client. If you have Windows NT Server, a network client is provided on the Windows NT Server retail CD in the Clients\Msclient directory. The Microsoft Client can also be downloaded from the Microsoft FTP server at
ftp://ftp.microsoft.com/bussys/clients
.
Windows NT includes both a 16-bit and a 32-bit version of Setup. Both provide the same basic functionality; however, the 32-bit version, Winnt32.exe, will only run on Windows NT and should be used to upgrade an existing installation of Windows NT.
winnt [/s[:]sourcepath] [/t[:]tempdrive] [/i[:]inffile] /s[:]sourcepath
/t[:]tempdrive
/i[:]inffile
/b
/u:
/r:
%systemroot%\directory_name\
/rx:
drive_letter:\$win_nt$.~ls\distribution_share_point_ /e:
/w
Start by creating a basic Windows NT setup script. You can create this script by using one of the examples included in this document or by using the Windows NT Setup Manager. After you have created and tested your basic script, add the more advanced options of the Windows NT setup script. For syntax, parameters, and more details on creating your setup script, see Chapter 2, "The Windows NT Workstation 4.0 Setup Script File (Unattend.txt)," in the Windows NT Deployment Guide: Automating Windows NT Setup. For information on automating your process beyond what is possible with the Windows NT Setup script, review Chapter 5, "Customizing Windows NT," in the Windows NT Deployment Guide: Automating Windows NT Setup.
Use the System Difference (Sysdiff) tool to automate pre-installation of applications and limited hardware devices during Windows NT Setup. Sysdiff will be addressed further later in this guide.
Create a Uniqueness Database (UDB) file or create computer-specific setup script files. You have several options for building a setup process that includes configuring systems with computer-specific information without requiring user interaction during setup. For more information, see Chapter 3, "Configuring Machine-Specific Information," in the Windows NT Deployment Guide: Automating Windows NT Setup.
The final step in this process is distributing the Windows NT source files and any other files to each computer. You can use a network distribution point, specific hard disk drive duplication methods, software distribution tools such as Microsoft Systems Management Server, or a local device such as a compact disc. If you are installing Windows NT on a newly formatted hard disk, you will need a boot disk to either access the network or, possibly, access a local device.
Before you begin the process of automating Windows NT Setup, you must build a distribution server. In most cases, the best distribution point is a network server. Make sure you have read, write, and change privileges on the network server you use.
To build the distribution server, copy Windows NT source files from the Windows NT retail CD to your network server. For Intel and Intel-compatible processors, copy the i386 directory and all of its contents to your network server. For RISC-based processors, such as Alpha computers, copy the Alpha directory and all of its contents to your network server.
Windows NT setup includes a feature that can be used to automatically copy directories, standard MS-DOS 8.3 files, and any tools needed for your automated installation process to the local hard disk during setup. This feature is based on a predefined directory name and structure. If you include this directory name and structure in the root of your distribution point, the files and directories will be copied to your local hard disk during Windows NT Setup.
The predefined directory name is $OEM$. If Windows NT Setup finds the $OEM$ directory in the root of the distribution point, it will copy all of the files found in this directory to the temporary directory created during the text mode portion of Windows NT Setup.
Note The Application Pre-Installation Tool (Sysdiff.exe) is used to prepare the files needed for the Advanced Sysdiff procedures and to create the $OEM$ directory structure described in this paper. By using Sysdiff.exe to create the $OEM$ directory, you eliminate the likelihood of errors that may occur if you create the $OEM$ directory and subdirectories manually. In addition, because Sysdiff.exe also automatically handles long file names, you will not have to create the necessary $$Rename.txt files. For more information about Sysdiff.exe, see Chapter 4, "Windows NT 4.0 Application Pre-Installation Tool (Sysdiff.exe)," in the Windows NT Deployment Guide: Automating Windows NT Setup. For more information about the $$Rename.txt file, see "Converting Short File Names to Long File Names" later in this chapter.
The following shows the directory structure of the distribution share point
where:
The Distribution_directory includes the Windows NT source files and the $OEM$ directory.
The $OEM$ directory includes:
"regedit.exe /s autolog.reg"
you would copy Regedit.exe and Autolog.reg to the $OEM$ directory.
For example, if you install Windows NT in a directory named C:\Winnt and you want Setup to copy a custom bit map file, Mybitmap.bmp, to the C:\Winnt directory, you can copy Mybitmap.bmp to the Distribution_directory\$OEM$\$$ directory.
For example, to create a directory named Data and copy files to this directory on drive D, you would create a directory with the following name on your distribution share and copy all of the files you want Setup to copy to this directory:
Distribution_directory\$OEM$\D\Data
Tip If your MS-DOS tools cannot copy directories with path names longer than 64 characters, you can use short file names for the directories and then use $$Rename.txt to rename them later. For more information see Microsoft Knowledge Base article Q169632, "Unattended Err Msg: Setup Was Unable to Create the Following..."
Windows NT Setup uses a special file, $$Rename.txt, which contains information on converting short file names to long file names. You can create the file manually using a text editor or automatically by using the System Difference tool in /inf mode. If you plan to use this file, be sure to place it in the directory of the distribution directory containing the files that need to be converted.
The syntax for $$Rename.txt is as follows
[section_name_1] where:
Sample $$Rename.txt file:
[\Data] The following methods are the only methods currently supported by Microsoft for distributing Windows NT by means of disk duplication.
Note Microsoft supports duplication of disks if they are duplicated after the GUI mode portion of Windows NT 4.0 Setup, but only when done so in conjunction with the use of the Microsoft Sysprep utility. Using another method may compromise the integrity of your systems.
The 16-bit Windows NT Setup program, Winnt.exe, is subject to the same conventional memory limitations as any other 16-bit MS-DOS application. Memory management and disk caching are important to ensure the best performance during the text mode phase of Windows NT Setup.
If possible, use the Microsoft NetBEUI protocol for network connectivity. The NetBEUI protocol is small and very fast. Although the NetBEUI protocol is very fast for unattended installation, it is a non-routable protocol. When using NetBEUI, you need to ensure that access to the distribution point does not require crossing a network router. If you want to use NetBEUI on a segmented network, the deployment image can be copied to a local share point on each segment. The distribution server can be any computer that provides networking support. For example, if you want, a portable computer with Microsoft Windows 95 can be used as a portable distribution server.
If you are using Microsoft Client 3.0, ensure that the Change Redirector option is set to Use the Basic Redirector. The basic redirector provides all standard workgroup functions. It also uses less memory and disk space than the full redirector uses.
Using Himem.sys and Emm386.exe to maximize the available memory, and using Smartdrv.exe to manage disk caching, can have a significant impact on the time necessary to complete the first phase of setup. In some cases, it can cut the time for completion by more than 60 percent. Refer to the MS-DOS user's guide for additional information.
You can eliminate up to 25 MB of file transfer during the initial text mode phase of setup by removing unneeded components.
When you install Microsoft Windows NT Workstation 4.0 using an Unattend.txt file, there is no option to install Peer Web Services. Peer Web Services can be automated after the installation of Windows NT (see Chapter 5, "Customizing Windows NT," in the Windows NT Deployment Guide: Automating Windows NT Setup). Because Peer Web Services is not installed during Setup, you can remove the Inetsrv directory and save approximately 5 MB of file transfer. Note This does not apply to Microsoft Windows NT Server 4.0. The Dosnet.inf file controls what optional directories are copied during the text mode phase of Setup. To prevent Setup from copying the Inetsrv directory, edit Dosnet.inf with a text editor, locate Inetsrv under the [OptionalSrcDirs] section, and place a semicolon (;) at the beginning of the line. For example:
[OptionalSrcDirs] During the installation of Windows NT 4.0, the Drvlib.nic optional source directory is copied, by default, during the initial text mode phase of setup.
Commenting out Drvlib.nic can save up to 20 MB of file transfers. To stop the copy of the Drvlib.nic directory, edit Dosnet.inf with a text editor, locate Drvlib.nic under the [OptionalSrcDirs] section, and place a semicolon (;) at the beginning of the line. For example:
[OptionalSrcDirs] Special consideration must be given before commenting out Drvlib.nic with a semicolon. If the network adapters being used require files from Drvlib.nic, do not comment out the line; instead, remove all directories that are not needed. This option will still provide an increase in performance.
Sysdiff is a Microsoft tool that creates a system difference package, applies a system difference package to a Windows NT installation, and, additionally, can generate Windows NT installation information files (INFs) and $OEM$ distribution share points.
You first run Sysdiff /snap to take a snapshot of a system just prior to making changes to it (such as installing applications). After changes are completed, you run Sysdiff /diff to obtain the difference between the new system state and the earlier snapshot. The output is a Sysdiff package file, which is a type of "image" that contains a description of .ini file changes, registry changes, and file changes that, when applied to a similar Windows NT installation, will duplicate the changes made (such as by an application installation) to the system. This image even includes changes to individual file data; thus, the resulting Sysdiff packages can be quite large. The Sysdiff package file can be applied by using Sysdiff /apply, provided the package file is available and the correct command line is specified. However, when applying a package, Sysdiff must copy each file from the package to its final location on the hard disk, meaning that, for large applications, creating and applying Sysdiff packages may take a considerable amount of time.
To facilitate ease of installation, Sysdiff can generate an INF and an $OEM$ directory structure from a package by running Sysdiff /inf. The resulting INF contains registry and .ini file entries, and can be applied during the GUI mode of Windows NT Setup by using Cmdlines.txt or an external command. The $OEM$ directory structure is used during a Windows NT unattended setup for customization of the installation being made to the target system. This $OEM$ and INF structure offers the system administrator or OEM the flexibility to manipulate the changes to be applied, because the $OEM$ directory tree and INFs are editable text files.
In addition, Sysdiff generates the $OEM$ directory tree structure in 8.3 format for compatibility with text mode pre-installation environments and methods. Special text files ($$Rename.txt) are placed in the tree to instruct later phases of Windows NT Setup on how to restore long file names where necessary.
The correct form of a sysdiff command line is as follows.
SYSDIFF.EXE [/snap | /diff | /apply | /dump | /inf] Of /snap, /diff, /apply, /dump, or /inf parameters, one must be specified. This parameter is the Sysdiff mode and instructs Sysdiff in how to proceed. See below for descriptions of these modes and the options they use.
log_file is the optional name of a log file to which Sysdiff writes information describing its actions. The log file is not used in /apply or /dump modes.
Switches provide additional control over various operations. Some are general to all modes and others are per-mode and are documented in the mode sections that follow. The following switches are common to all modes:
/u
When Sysdiff runs in /snap or /diff mode, it looks for a file called Sysdiff.inf. A sample of Sysdiff.inf is included in this section. This file contains information that is used to exclude certain files, registry keys, and so on, from Sysdiff scanning.
Run sysdiff in /snap mode to create the base for a later Sysdiff. The syntax for using Sysdiff in /snap mode is:
sysdiff /snap [/log:log_file] [/p] snapshot_file
/p
snapshot_file may be any valid Win32 file name. A snapshot of the system will be recorded in this file.
Run Sysdiff in /diff mode to generate a list of differences between an earlier snapshot of the system and the system as it exists at a given point in time, such as immediately after applications have been installed. The syntax for using Sysdiff in /diff mode is:
sysdiff /diff [/log:log_file] [/c:comment] [/p] comment is optional and specifies a human-readable comment to be inserted in the Sysdiff package file. This comment is then used during /apply mode to tell the user what is being applied. Be sure to use quotation marks when appropriate; for example, /c:"This is a package title" requires quotation marks as shown.
/p
snapshot_file specifies a file generated by an earlier invocation of sysdiff /snap on the same Windows NT installation. (Sysdiff will fail if snapshot_file is from a different Windows NT installation.)
sysdiff_file may be any valid Win32 file name. The specified file will be the output of Sysdiff and will be suitable for application to a Windows NT installation during the end-user setup by using sysdiff /apply sysdiff_file.
The syntax for using Sysdiff in /apply mode is:
sysdiff /apply /m sysdiff_file
sysdiff_file specifies a file generated by an earlier invocation of sysdiff /diff. The %SystemRoot% must be the same as it was on the system that was used to generate sysdiff_file. In other words, if you generate a Sysdiff on a Windows NT installation in C:\Winnt, that Sysdiff can be applied on other computers only if they are running Windows NT installed in C:\Winnt.
/m
This mode is useful as a diagnostic tool. It outputs a human-readable form of the contents of a Sysdiff package to a text file. The syntax for using Sysdiff in /dump mode is:
sysdiff /dump sysdiff_file dump_file
sysdiff_file is a Win32 path to a file that was created by Sysdiff's /diff mode.
dump_file is a Win32 path to a text file that will be created and will contain the dump file.
The /inf mode is used to generate an INF to perform .ini file and registry changes contained in a Sysdiff package, and to generate an $OEM$ directory tree for file changes contained in a Sysdiff package. When you develop an unattended deployment using the Sysdiff /inf mode, bear in mind that %SystemRoot% must be the same as it was on the system that was used to generate sysdiff_file. In other words, if you generate a Sysdiff on a Windows NT installation in C:\Winnt, that copy of Sysdiff should be applied to other computers only if they are running Windows NT installed in C:\Winnt.
The directory tree is created using only 8.3 file names; special files are placed throughout the tree, containing mappings from 8.3 names to long file names where necessary (these files are used during later phases of Setup). When running in /inf mode, Sysdiff will also add the appropriate command line to Cmdlines.txt to ensure that the changes are applied during Windows NT Setup. The syntax for using Sysdiff in /inf mode is:
sysdiff /inf [/m] sysdiff_file oem_root
/m
sysdiff_file is a Win32 path to a file that was created by Sysdiff's /diff mode.
oem_root is the Win32 path of a directory. The $OEM$ structure will be created or updated in this directory, and the INF will be placed in the $OEM$ directory with a name based on the name of sysdiff_file. A Cmdlines.txt file will also be generated or appended to. (This file will always be ANSI, regardless of whether /u was specified.)
[Version] Tip Microsoft Knowledge Base article Q165533, "General Sysdiff Troubleshooting Tips," serves as an excellent added resource for the procedures to follow.
Gather the tools you need to install Windows NT and implement the Advanced Sysdiff procedures. You will require:
Tip This procedure should not be performed in an attempt to install components requiring the binding process because, at the time the Advanced Sysdiff steps occur in the deployment process, the bindings are fully completed and intact. Attempts to alter the bindings of your computer may have nonrecoverable consequences.
Create a base Windows NT installation. This installation should install the base, or default, components of a Windows NT installation. You can perform this installation by using the Unattend.txt example that is included with Windows NT, by using the Windows NT Setup Manager to generate your own answer file, or by performing a manual installation.
Tip This installation should have a Windows NT installation directory %SystemRoot% with the same name as that to be used in the final build of your Windows NT deployment.
If you have downloaded the Sysdiffi.exe file from the ftp server, expand these files into a temporary folder (for example c:\Diff), on the base installation computer. Sysdiffi.exe is the compressed Intel Sysdiff tool. Within this temporary folder, you will find Sysdiff.exe, Sysdiff.inf, and Sysdiff.doc. Open the Sysdiff.inf file with a text editor and locate the [ExcludeDirectoryTrees] and [ExcludeRegistryKeys] section headers; these headers will appear as listed below in the BEFORE example.
[ExcludeDirectoryTrees] As stated in the .inf file, this section of the .inf file controls which directory trees, registry keys, and subkeys should be excluded from the Sysdiff query.
The lines shown below in bold type list the changes that should be made to the Sysdiff.inf file prior to continuing with the Advanced Sysdiff procedures.
[ExcludeDirectoryTrees] The above steps effectively exclude the CurrentControlSet registry key and, more importantly, the CurrentControlSet\Enum\Root subkeys from being parsed or written to during the Advanced Sysdiff procedures. Because the creation of entries into these key and subkeys could have a negative effect on the security of the registry and immediate stability of a Windows NT installation, all entries performed during the Advanced Sysdiff procedures should be performed on ControlSet001 (or whichever key is listed as the default) in the following registry key:
An entry of 0x00000001 in Regedit.exe or 0x1 in Regedt32.exe designates that ControlSet001 will become CurrentControlSet the next time the system restarts, and this setting is the normal default.
Warning Making incorrect changes to the Windows NT registry can cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that problems resulting from these changes can be solved. Use Sysdiff to make registry changes at your own risk.
Additionally, the entries added to the Sysdiff.inf file will exclude the folder that contains the Sysdiff files and the image files to be created.
After the Sysdiff.inf file has been modified and saved, an initial image of the base installation should be produced. From inside the temporary folder that contains the Sysdiff files, use the following syntax at a command line:
sysdiff /snap snap.img
After the snap image of the base installation has been produced, you should proceed to install the first device that you want to incorporate into your unattended deployment. Because Windows NT 4.0 is not a Plug and Play operating system, most components will be manually added to the base installation.
At this time, you should produce a system difference image. While inside the temporary folder that contains the Sysdiff files, use the following syntax at a command prompt:
sysdiff /diff snap.img diff.img
When the system difference image completes, you need to do two things to prepare for the Advanced Sysdiff procedures:
sysdiff /inf /m diff.img x:\ foldername
where foldername is the name of the folder that will contain the $OEM$ and associated files.
To recap the steps outlined above, the following have occurred:
Tip The Windows NT installation used to generate your Advanced Sysdiff .inf file should have a Windows NT installation directory %SystemRoot% with the same name as that to be used in the final build of your Windows NT deployment. This same name will prevent any potential problems with the [UpdateInis] section of the .inf file having a different %SystemRoot% than the client.
You are now ready to begin the steps toward building the proper folders and files necessary to perform the Advanced Sysdiff procedures. Depending on the device installed, the directories containing the most significant updates will usually be the $$\System32 and $$\System32\Drivers directories. Most files installed by the addition of a new device will be placed into these folders. Additionally, immediately under the $OEM$ directory, you will find the two Cmdlines.txt and Your_difference_image_name.inf files.
For the purposes of this paper, the following examples assume that the device to be installed by using this procedure is an ATI Technologies 3D Rage Pro AGP graphics adapter. Prior to an unattended deployment of AGP devices, certain file adjustments must be made within the i386 folder on the installation share point. These steps are detailed in Microsoft Knowledge Base article Q178275, "Unattended Installation Using AGP Video Cards."
Note Command-line examples in this paper are wrapped for clarity and, in your final installation, should be continuous.
The directory tree under the c:\Diff folder will look very similar in structure to the following screen captures and directory listings. The number of folders and files under the $OEM$ folder will vary depending on the number of files and folders in the difference capture.
Tip Files with a .pnf extension (precompiled setup information file) are created as part of this device's installation. Windows NT 4.0 creates .pnf files when running the .inf files. These files exist to facilitate future instances of this .inf file being installed.
Volume in drive C has no label. Directory of C:\diff
11/12/98 03:20p <DIR> . Directory of C:\diff\$OEM$
11/12/98 05:16p <DIR> . Directory of C:\diff\$OEM$\$$
11/12/98 05:16p <DIR> . Directory of C:\diff\$OEM$\$$\inf
11/12/98 05:16p <DIR> . Directory of C:\diff\$OEM$\$$\system32
11/12/98 05:16p <DIR> . Directory of C:\diff\$OEM$\$$\system32\drivers
11/12/98 05:16p <DIR> . Total Files Listed: The next step in the Advanced Sysdiff procedure is to rename the $OEM$ folder to a unique name. For this example, use the name Ati-AGP. After you rename the folder, the folder should be copied under the i386 distribution share point that will be used for the Advanced Sysdiff portion of the unattended installation.
In the Ati-AGP folder, the Cmdlines.txt file should be opened with a text editor and changes made as outlined in the following BEFORE and AFTER examples, and in the subsequent paragraphs.
[Commands] ; executes a rundll32 to install the diff.inf created with Sysdiff Note The /s /e xcopy command parameter can be used to reduce the need for multiple xcopy command lines.
After all the editing is completed, the Cmdlines.txt file should be saved as a .bat or .cmd file, again using a unique name. For this example, the file will be saved as Video.cmd.
The AFTER example reflects that the [Commands] header and the open and close quotation marks ("") have been removed from the rundll32 command statement, as well as the addition of xcopy command to move the necessary AGP files to their final required locations.
Further, the path to the Diff.inf file in the newly created Video.cmd file has been changed to %SystemRoot%\Ati-AGP\diff.inf. This path will be completed by using a seldom-used Winnt.exe and Winnt32.exe command-line parameter, /r:directory_name.
/r:
One example of a command-line parameter used to start an unattended setup using the Advanced Sysdiff directory structure created above would be:
winnt.exe /u:unattend.txt /s:d:\i386 /r:ati-agp The Go.cmd file mentioned in the example above resides in the Ati-AGP folder, now located under the i386 share point, and the syntax of this file would be as follows:
call %systemroot%\Ati-AGP\video.cmd This Go.cmd file will run as an external command occurring at the end of GUI mode setup, as seen above in the Winnt.exe command-line example.
A more streamlined alternative to the directory and file structure outlined above is listed below. This alternate structure works equally well and is well suited to Advanced Sysdiff application of devices that do not have a large number of files to be placed into the %WinDir% directory tree. The following screen shots and directory lists show this alternative layout.
Volume in drive C has no label. Directory of c:\i386\Ati-agp
11/16/98 09:52p <DIR> . Using the preceding directory structure would also necessitate the following adjustments to the command lines in the Video.cmd file. The Go.cmd file is unchanged under either scenario.
start /wait rundll32 setupapi,InstallHinfSection DefaultInstall 128 %systemroot%\Ati-AGP\diff.INF Multiple Advanced Sysdiff folders placed under your distribution share point can be used to address multiple installations of various devices by simply adding another device and repeating the steps previously outlined. Numerous "device" directories can be placed under your distribution share point and, as needed for each computer, batch files can select the proper Advanced Sysdiff folders to be used. For instance, multiple folders for a number of video adapters may be placed under the distribution folder, and then you control the installation as needed.
Up to this point, this paper has concentrated on the Winnt.exe command parameters /r: and /e: as the vehicles for implementing the Advanced Sysdiff procedures. These two parameters are not the exclusive means of implementation for these procedures. In addition to the /r: parameter, the /rx: parameter may be used either in conjunction with /r: parameters, or exclusively. The /rx: parameter accomplishes the following:
/rx:
It is not a requirement that one or the other parameter be specified, and you may find it beneficial to use both parameters during your deployment. This will facilitate the ability, for instance, to leave the video adapter install files on the client computer using /r:, but only have the sound device and/or service pack files be removed from the client at the end of the installation process.
The Cmdlines.txt file may be edited to start either all or part of the Advanced Sysdiff procedure as well. It is not required that all the Advanced Sysdiff commands be started from either /e: or Cmdlines.txt, because a combination of both is acceptable.
The following are examples of the various .cmd files, Cmdlines.txt, and Winnt.exe command-line syntax that may be used to install Windows NT using the Advanced Sysdiff procedures. Examples are wrapped for this document, but should be continuous in your environment.
; The line below would launch the unattended install placing The Video.cmd, Crystal.cmd, and Ie.cmd files would appear as the following three .cmd files:
;video.cmd At this time, the /r: parameter cannot be used with certain cab files contained in the Internet Explorer 4.01 installation set. The /rx: parameter allows you to work around this issue. Simply start Setup from the temporary folder.
Should an end user start the .cmd files left in place under a folder installed by using the /r: parameter, the user will receive an "Installation Failed" pop-up dialog box and, after clicking OK, any file copy commands included in the file will proceed. This is by design; the implementation of the rundll32 setupapi,InstallHinfSection DefaultInstall 128 command statement must occur in the "system context" installation mode using the system account. Windows NT installation occurs in this "system context" and, therefore, no errors are seen during setup.
As noted in Microsoft Knowledge Base article Q186336, "Unattend.txt Options That Are Used During an Unattended Upgrade," most parameters that are typically set through an Unattend.txt answer file are ignored during the upgrade process. Using the steps outlined in Microsoft Knowledge Base article Q180647, "Disabling Windows NT 3.51 Video Drivers to Enable Unattended Installation," and subsequently starting an unattended upgrade that employs the Advanced Sysdiff procedures, greatly enhances the configuration changes available during this process.
Because, during an unattended upgrade, the $OEM$ directory structure is copied to the local source folder ($win_nt$.~ls) but any Cmdlines.txt files are ignored, the Advanced Sysdiff procedures are perfectly suited to enable changes by using the /r:, /rx:, and /e: Winnt.exe command parameters. Although the option of using the Cmdlines.txt file is eliminated during an upgrade, most changes can be implemented by using the steps outlined in this section.
The steps outlined in this guide provide those whose task it is to deploy Windows NT a broader flexibility in the installation of some of the hardware capable of running in a Windows NT installation. This flexibility ranges from the ability to add a permanent installation folder on the client by use of the /r: parameter, to using a mixture of /r: and /rx: to install multiple devices, thus only leaving the desired installation in the %SystemRoot% folder. These steps allow a broader freedom of installing devices that, at this time, are not detected in the normal course of a Windows NT installation.
Although the steps listed in this guide have been tested against a number of devices, many devices exist that have not been tested and your results using these procedures may vary depending on the hardware you want to install. Extensive testing, similar to that performed prior to an unattended deployment, should be instituted prior to your final roll-out of an Advanced Sysdiff assisted deployment.
For the latest information about Windows NT, refer to Microsoft TechNet or our World Wide Web site at
http://www.microsoft.com/ntworkstation/deployment/deployment/
.
To read the Windows NT Deployment Guide: Automating Windows NT Setup, check out Microsoft TechNet.
© 1998 Microsoft Corporation. All rights reserved.
The information contained in this document represents the current view of Microsoft Corporation on the issues discussed as of the date of publication. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information presented after the date of publication.
This White Paper is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT.
Microsoft, the BackOffice logo, Windows, and Windows NT are registered trademarks and BackOffice is a trademark of Microsoft Corporation.
Other product or company names mentioned herein may be the trademarks of their respective owners.
Microsoft Corporation One Microsoft Way Redmond, WA 98052-6399 USA
0X97 Part no. 098-XXXXX
|
![]() |
![]() |
|
![]() |
Last updated January 12, 2000 |
![]() |
||
![]() |
© 2001 Microsoft Corporation. All rights reserved. Terms of use. |
![]() |