Problem
This article describes a problem where installer actions fail when relying on 8.3 (short) filename support on Windows and provides steps to reproduce, diagnose, and resolve the behavior for InstallAnywhere installer actions.
#1: Reproduce the Issue
- On a Windows system with 8.3 filename generation disabled, prepare two installer actions in an InstallAnywhere project:
- an Execute Command action, and
- an Execute Script/Batch File action
NOTE: Use a target executable whose full path contains spaces and does not use 8.3-style names.
- Configure the actions to launch the executable using the full path without enclosing quotes.
- Run the installer and observe whether each action launches the executable.
#2: Diagnose the Behavior
- Confirm that the Execute Command action launches the executable when given the full path without quotes. Record that this action succeeds despite the lack of 8.3 names.
- Confirm that the Execute Script/Batch File action fails to launch the executable when given the full path without quotes. Record the failure and any error messages returned by the script action.
NOTE: InstallAnywhere does not use 8.3 naming internally and built-in functionality is not expected to be affected when upgrading from versions that used 8.3 names. However, behavior is not guaranteed when USER_INSTALL_DIR or other path variables contain 8.3-style paths on systems without 8.3 enabled.
#3: Resolve or Mitigate the Issue
- For reliable execution across systems with 8.3 generation disabled, modify actions to supply properly quoted full paths where required. Specifically, ensure script or batch actions receive the executable path enclosed in double quotes so Windows correctly parses paths with spaces.
- Alternatively, use the Execute Command action where possible to launch executables without quotes, since it was observed to accept unquoted full paths in this environment.
NOTE: Avoid relying on 8.3-style paths. Do not assume InstallAnywhere will convert or require short names for built-in functionality when moving between versions.
Following these steps will reproduce the differing behaviors between Execute Command and Execute Script/Batch File actions on systems without 8.3 filename support, and will provide two mitigation options:
- Quote full paths for script/batch actions, or
- Use Execute Command where feasible
The installer will run commands reliably across systems regardless of 8.3 settings when paths are quoted or the Execute Command action is used.
Related Articles
Converting a Long Path to a Short Path on Windows 4Number of Views Build Error -7354 When Building a Project with More Than 8 Characters If There Is No Short Name Defined 15Number of Views Installation Phases and In-Script Execuction Options for Custom Actions in Windows Installer 9Number of Views Removing a Newline Character from Execute Script/Batch File and Execute Command Actions 24Number of Views Pods can't be scheduled because autoscaling is disabled 69Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add additional feedback (optional)
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
|
FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513
(toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367
(toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895
2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Case id: 00001065
Activity: Status change: 2 hours ago