Hard-Coded Paths in Script-Based Custom Actions

AdminStudio 2021 | 21.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 inside script-based custom actions.

Test Group/Test Category

0026—Operating System Compatibility/Windows 7 (32-Bit)
0226—Operating System Compatibility/Windows 7 (64-Bit)
0326—Operating System Compatibility/Windows 8.1 (32-Bit)
0426—Operating System Compatibility/Windows 8.1 (64-Bit)
2626—Operating System Compatibility/Windows 10-1803 (32-Bit)
2826—Operating System Compatibility/Windows 10-1809 (and 2019 LTSC) (32-Bit)
5026—Operating System Compatibility/Windows 10-1903 (32-Bit)
5226—Operating System Compatibility/Windows 10-1909 (32-Bit)
5426—Operating System Compatibility/Windows 10-2004 (32-Bit)
5626—Operating System Compatibility/Windows 10-20H2 (32-Bit)
2726—Operating System Compatibility/Windows 10-1803 (64-Bit)
2926—Operating System Compatibility/Windows 10-1809 (and 2019 LTSC) (64-Bit)
5126—Operating System Compatibility/Windows 10-1903 (64-Bit)
5326—Operating System Compatibility/Windows 10-1909 (64-Bit)
5526—Operating System Compatibility/Windows 10-2004 (64-Bit)
5726—Operating System Compatibility/Windows 10-20H2 (64-Bit)
0126—Operating System Compatibility/Windows Server 2008 R2
0526—Operating System Compatibility/Windows Server 2012
0626—Operating System Compatibility/Windows Server 2016
1026—Operating System Compatibility/Windows Server 2019

Severity

Warning

Messages

This Windows Installer database contains a hard-coded path [PATH] in a script-based custom action [CUSTOM_ACTION_KEY] stored in property [PROPERTY] (Table: CustomAction, Key: [CUSTOM_ACTION_KEY]; Table: Property, Key: [PROPERTY]).
This Windows Installer database contains a hard-coded path [PATH] in a script-based custom action [CUSTOM_ACTION_KEY] (Table: CustomAction, Key: [CUSTOM_ACTION_KEY]).
This Windows Installer database contains a hard-coded path [PATH] in a script-based custom action [CUSTOM_ACTION_KEY] stored in a binary stream [STREAM] (Table: CustomAction, Key: [CUSTOM_ACTION_KEY]; Table: Binary, Key: [BINARY_KEY]).
This Windows Installer database contains a hard-coded path [PATH] in a script-based custom action [CUSTOM_ACTION_KEY] installed within this product (Table: CustomAction, Key: [CUSTOM_ACTION_KEY]; Table: File, Key: [FILE_KEY]).

Background

During migration to a new environment, some paths might have changed or became obsolete, eventually causing hard-coded values in script-based custom actions 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. Note that this issue is not resolved automatically by default.

Manual Fix

All hard-coded paths in script-based custom actions should be replaced with Windows Installer properties or environment variables.

Basic Auto Fix

No resolution is available.

Advanced Auto Fix

No resolution is available.

See Also