Adding a File to the Windows NT Installation

If you want to add files during the installation of Windows NT, but don't need the file added to a Program Manager group, you only need to put the files on the distribution share and modify the TXTSETUP.SIF and DOSNET.INF files.

For example, suppose an administrator at Terra Flora, Inc. wants to add an online help file that employees can use to help resolve common problems for Terra Flora's business. The administrator adds TERRA.HLP to the distribution share, then makes changes to the TXTSETUP.SIF and DOSNET.INF files as described in the following sections.

Note When you add files to Setup, be sure to change the minimum required disk space needed for installation. For more information, see "Changing Minimum Disk Space Requirements" later in this chapter.

The TXTSETUP.SIF File

After the file has been created and placed in the distribution share, it must be added to the [Files] section of the TXTSETUP.SIF file. If you want Setup to create a special subdirectory in the Windows NT root directory for this file, it should be specified in the [WinntDirectories] section. For example, you might add the following line to the [WinntDirectories] section:


[WinntDirectories] ... 19 = TerraFlora

This directory could then be specified when adding the Terra Flora help file, TERRA.HLP, to the end of the [Files] section, as follows:


[Files] ... terra.hlp = dx,d33,,19,0,0

This causes the file to be copied to directory 19 (the \TERRAFLORA subdirectory of the Windows NT root directory); it will be copied whenever anyone upgrades or installs Windows NT for the first time from this distribution share.

For more information on the format of the [WinntDirectories] and [Files] sections, see "Format of the TXTSETUP.SIF" section earlier in this chapter.

The DOSNET.INF File

All files that need to be copied from the Setup share when a user runs the winnt or winnt32 utility are listed in the [Files] section of the DOSNET.INF file, preceded by "d1,".

To add the TERRA.HLP file, the Terra Flora administrator adds a line specifying the file in the [Files] section of the DOSNET.INF file. In the following example, the line has been added at the end of the section:


[Files] d1,256COLOR.BMP d1,40291730.PPD d1,40293930.PPD d1,terra.hlp