Hard-Coded Paths
AdminStudio 2022 | 23.0 | Application Manager
Note:This test is not applicable to App-V packages.
For this operating system compatibility test, the Windows Installer database is scanned for hard-coded paths in the following tables: Registry, IniFile, Shortcut, ServiceControl, ServiceInstall, and CustomAction (excluding script-based custom actions).
Test Group/Test Category
|
•
|
0327—Operating System Compatibility/Windows 8.1 (32-Bit) |
|
•
|
0427—Operating System Compatibility/Windows 8.1 (64-Bit) |
|
•
|
2827—Operating System Compatibility/Windows 10-1809 (and 2019 LTSC) (32-Bit) |
|
•
|
5227—Operating System Compatibility/Windows 10-1909 (32-Bit) |
|
•
|
5427—Operating System Compatibility/Windows 10-2004 (32-Bit) |
|
•
|
5627—Operating System Compatibility/Windows 10-20H2 (32-Bit) |
|
•
|
5827—Operating System Compatibility/Windows 10-21H1 (32-Bit) |
|
•
|
7027—Operating System Compatibility/Windows 10-21H2 (32-Bit) |
|
•
|
2927—Operating System Compatibility/Windows 10-1809 (and 2019 LTSC) (64-Bit) |
|
•
|
5327—Operating System Compatibility/Windows 10-1909 (64-Bit) |
|
•
|
5527—Operating System Compatibility/Windows 10-2004 (64-Bit) |
|
•
|
5727—Operating System Compatibility/Windows 10-20H2 (64-Bit) |
|
•
|
5927—Operating System Compatibility/Windows 10-21H1 (64-Bit) |
|
•
|
7127—Operating System Compatibility/Windows 10-21H2 (64-Bit) |
|
•
|
6727—Operating System Compatibility/Windows 11-21H2 (64-Bit) |
|
•
|
0527—Operating System Compatibility/Windows Server 2012 |
|
•
|
0627—Operating System Compatibility/Windows Server 2016 |
|
•
|
1027—Operating System Compatibility/Windows Server 2019 |
Severity
Warning
Messages
|
•
|
This Windows Installer database contains a hard-coded path "[REGISTRY_VALUE]" in registry entry [REGISTRY_KEY] (Table: Registry, Key: [REGISTRY_ENTRY]). |
|
•
|
This Windows Installer database contains a hard-coded path "[INI_FILE_KEY]" in a key of an INI file (Table: IniFile, Key: [INIFILE_KEY]). |
|
•
|
This Windows Installer database contains a hard-coded path "[INI_FILE_VALUE]" in a value of an INI file (Table: IniFile, Key: [INIFILE_KEY]). |
|
•
|
This Windows Installer database contains a hard-coded path "[CUSTOM_ACTION_TARGET]" in the CustomAction table (Table: CustomAction, Key: [CUSTOM_ACTION_KEY]). |
|
•
|
This Windows Installer database contains a hard-coded path "[SHORTCUT_ARGUMENTS]" in shortcut [SHORTCUT_NAME] (Table: Shortcut, Key: [SHORTCUT_KEY]). |
|
•
|
This Windows Installer database contains a hard-coded path "[SERVICECONTROL_ARGUMENTS]" in the ServiceControl table (Table: ServiceControl, Key: [SERVICECONTROL_KEY]). |
|
•
|
This Windows Installer database contains a hard-coded path "[SERVICEINSTALL_ARGUMENTS]" in the ServiceInstall table (Table: ServiceInstall, Key: [SERVICEINSTALL_KEY]). |
Background
During migration to a new environment, some paths might have changed or became obsolete, eventually causing hard-coded values in Windows Installer databases (for example, in the Registry or IniFile tables) to no longer be valid. This could result in installation failures or functionality issues.
Note:ICE48 checks for directories that are hard-coded to local paths.
Resolution
The following resolutions are available.
Manual Fix
For each hard-coded path, a property that contains that value should be created. That property should replace the hard-coded path.
Basic Auto Fix
Hard-coded paths are replaced with properties that contain the original paths in a Windows Installer transform. The newly created properties are named ASFIX_PATH_# (where # is an enumerator to uniquely name the properties).
This fix is enabled by default.
Advanced Auto Fix
No resolution is available.
See Also
Windows Installer Internal Consistency Evaluators