ACE203: Shortcut Targets with Hard-Coded Paths for the Working Directory
AdminStudio 2022 | 23.0 | Application Manager
ACE203 checks whether a working directory for a target in the package includes a hard-coded path, such as C:\...\, which may not be present in a virtual environment.
Test Group/Test Category
Best Practices/Microsoft App-V Best Practices
Severity
Warning
Message
Package [PACKAGE_NAME] has a shortcut named [NAME] with a hardcoded working directory of [DIRECTORY_NAME].
Background
If the package contains a shortcut target whose working directory is a hard-coded path, ACE203 fails.
Resolution
Manual Fix
To resolve this ACE in an App-V package, change the path to use a variable instead of a hard-coded path.
To resolve this issue:
1. | Open the App-V package in the Virtual Package Editor. |
2. | In the View List under Application Data, click Shortcuts. |
3. | In the Targets explorer, select the target that contains the hard-coded path. |
4. | In the Working Directory setting, replace the existing path with a path that uses a CSIDL constant or an SFT constant—such as CSIDL_APPDATA or SFT_PROGRAM_FILES_X64—instead of the hard-coded path. |
Note:If there is no appropriate CSIDL or SFT constant, you may need to use a hard-coded path that starts with a drive letter.