Windows stores system path statements for individual executable files under the following registry path (depending on the platform):
-
32-bit O/S: HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\App_name.exe
-
64-bit O/S: HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\App Paths\App_name.exe
When a program registers an application path this way, Windows adds the path statement to the search path whenever the application is run. This path information becomes part of the System Search Path search order.
When applications are launched through Terminal Services (or Citrix), these path statements are not automatically added. If an application requires this path, then the path information from the appropriate AppPath registry key must be added to the path variable of the System Environment.
Ensure that you back up the current value of the system path to a file for later
reference if there is an issue. Making a mistake during the modification of the system
path variable can render the computer unusable. It is essential to know the path contents
prior to the modification to bring the computer back with any real confidence if there
is a problem.
-
In the Registry, copy the data of the Path value for the application executable:
-
32-bit O/S: HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\App_name.exe
-
64-bit O/S: HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\App Paths\App_name.exe
-
-
Display the System Properties window via the Control Panel.
-
Click the Advanced tab.
-
Click Environment Variables.
-
In the System variables list, select Path and click Edit.
-
Paste the value data from the Registry to the end of the Path string.
Make sure the 64-bit path is BEFORE the 32-bit path in the Path string. 64-bit processes will not run if the 32-bit path is listed first.
-
Click OK to dismiss all windows.