This article was previously published under Q186515
IMPORTANT: This article contains information about editing the registry.Before you edit the registry, make sure you understand how to restore it ifa problem occurs. For information about how to do this, view the "RestoringRegistry" Help topic in Regedit.exe or the "Restoring a Registry Key" Helptopic in Regedt32.exe.
Terminal Server uses a special installation mode for installingapplications for multi-user use. This mode is activated by installing anapplication through the Control Panel Add/Remove Programs tool or by usingthe command "Change User /Install" at a prompt. If you use this command,you should return to normal execution mode by using the command "ChangeUser /Execute" after installing the application.
Do not run the system in install mode (except to install applications).This disables user registry and .INI file mappings, which means each userrunning an application would share the same .INI file or registry entry,instead of having them on a per-user basis. The Terminal Server computershould always be run in execute mode.
If you have an application that runs only in install mode, the applicationis probably looking for a file in the SystemRoot directory rather than theuser's Windows directory. You can modify the Terminal Server registry sothat the system will allow the application to use the SystemRoot as itsWindows directory. To do this, perform the following steps:
WARNING: Using Registry Editor incorrectly can cause serious problems thatmay require you to reinstall your operating system. Microsoft cannotguarantee that problems resulting from the incorrect use of Registry Editorcan be solved. Use Registry Editor at your own risk.
For information about how to edit the registry, view the "Changing Keys AndValues" Help topic in Registry Editor (Regedit.exe) or the "Add and DeleteInformation in the Registry" and "Edit Registry Data" Help topics inRegedt32.exe. Note that you should back up the registry before you edit it.
Start Registry Editor (Regedt32.exe), and go to the following subkey:
Where appname is the name of the application's executable file (for example, if the executable file name for an application is PROG1.EXE, appname would be PROG1),
Add the following value:
Flags (Reg_DWORD): 0x00000400
This "Do not substitute user WINDOWS directory" bit, when set, retains theSystemRoot directory for GetWindowsDirectory API calls. The default actionif this bit is not set is to replace all paths to the WINDOWS directorywith the path to the user's WINDOWS directory.
For more information, please see the following Microsoft Knowledge Basearticle:
186499 Terminal Server Registry Settings for Applications