Learning Windows Server 2003
10.6. Installing an Application
If you want to install an application on the terminal server that is in Terminal Services mode so that users can access it from thin clients, the proper way is to install the application through the Add/Remove Programs applet inside the Control Panel and not through the application's default installation method. By using the Add/Remove Programs applet, Windows ensures that program files are installed to the Windows root directory on the server, as opposed to the Windows subfolder under the user's home directory. Windows also ensures the programs are installed properly for multiple use of the same memory space. Both of these steps make the programs available for multi-session access. Any program that displays the Certified for Windows logo will be able to handle the differences between normal local access and usage in a Terminal Services scenario. Other applications can cause problems, so be sure to test each application before deployment. Also, it's prudent to check for prewritten scripts that help ensure an application is installed properly for multi-user execution. Microsoft tests some common applications for compatibility and releases templates and modifications so that these programs will install correctly for use with Terminal Services. You can find these scripts in %SystemRoot%\Application Compatibility Scripts\Install.
To install a program using the Add/Remove Programs tool, follow these steps:
Alternatively, you can go to the command line and use the change user command, which cycles through what Windows Server 2003 terms install modes and execute modes using switches attached to the command. Let's look at that in a bit more detail. Executing change user /install before installing a new application places the system in install mode. Install mode also suspends .ini file mapping, which Windows normally uses to match .ini files to programs that use them and the associated users that actually install the program. The system also notes the way the setup routine initially installs the program. Running change user /execute when the installation finishes reverts the system to execute mode, reactivates .ini file mapping, and propagates specific data for each user to their respective home directories. In addition, when the user opens the program, user-specific registry setting files (.ini, .dll, .ocx, and so on) are propagated as needed to the user's home directory. So, in brief, follow these steps from the command line to manually install a program:
|