By creating an Apps.ini file, you can let users upgrade from Windows 95 to Windows 98 simply by clicking a button. Using an Apps.ini file provides the benefit of simplicity and the benefit that users can choose when to upgrade their operating systems.
The general process is as follows:
First, create a batch file that you can use to perform pull installations. The batch file should contain, at minimum, the following:
\\Server\Share\Setup.exe
You could also add switches to the Setup command, and you could use the Msbatch.inf parameter. Additionally, you could add other commands, such as a section that checks the version of your operating system so users cannot run Windows 98 Setup from a Windows 98–based computer. For more information, see "Implementing Version Checking for Automated Installations," later in this chapter.
Next, create a PIF file for the batch file. For information about creating PIF files, see Chapter 25, "Application Support." Make sure to select the check box Close on exit, so the batch program window will close after it runs. Otherwise, you will have problems with Setup.
Next, create an Apps.ini file (or an entry in an existing Apps.ini file) that refers to the PIF file. For information about how to create an Apps.ini file, see Chapter 25, "Application Support." The following example shows a basic Apps.ini file:
[AppInstallList]
ProgramName = * \\Server\Share\Directory\Filename.pif
You could also use Apps.ini to set up different computers with different configurations. For example, you could use Apps.ini to set up Windows 98 with Windows NT on some computers, and Novell Client for Windows 95/98 on others. You could even control which users get which client by giving different users different levels of access to the share that contains the Setup.exe command. The following example shows this configuration:
[AppInstallList]
********************** Marketing **********************=
Windows 98 Upgrade - Windows NT=
*\\Server\Marketing_Share\Directory\WinNT.pif
-=*
************************ Sales ************************=
Windows 98 Upgrade - Novell Client=
*\\Server\Sales_Share\Directory\Client32.pif
In this example, WinNT.pif refers to a batch file that includes an Msbatch.inf statement. The Msbatch.inf file directs Windows 98 Setup to install Windows NT when performing the upgrade. Thus, when a user clicks the Windows NT entry, Windows 98 is installed with Windows NT. Likewise, when a user clicks the Novell Client entry, Windows 98 is installed with Novell Client for Windows 95/98.
Now, suppose you have given the users in Marketing network access to Marketing_Share but no access to Sales_Share, and you have given the users in Sales network access to Sales_Share but no access to Marketing_Share. The Marketing users can run Setup and get the Windows NT, and the Sales users can run Setup and get Novell Client for Windows 95/98.
Finally, you must set a system policy so users can access the Apps.ini file. After you set the policy, a Network Install tab appears on the Add/Remove Programs option in Control Panel. The tab shows all the applications the user can install, and the user simply clicks on the application to install. To set the policy, you must first add the Appsini.adm template, then set the policy named Network path to APPS.INI.
To add the Appsini.adm template
To set a system policy to give users access to Apps.ini
This policy adds the registry value AppInstallPath (string type) with the value of the universal naming convention (UNC) path to the following registry key:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion