Problem
The TypeScript MSI packager converts the application name through the WiX identifier sanitizer and reuses that identifier as the installed file name. For craft-lifecycle, the MSI therefore installs craft_lifecycle.exe while the package name and lifecycle API promise craft-lifecycle.exe.
Observed in stacksjs/stacks PR #2064 desktop run 29888261337 on Windows x64.
Required contract
- Keep WiX XML identifiers sanitized independently from the installed executable file name.
- Validate the application name before using it as a Windows file name.
- Install
<application name>.exewithout converting valid hyphens to underscores. - Cover the file name and deterministic WiX source with unit tests.
- Re-run the native MSI install, launch, update, rollback, and uninstall contract.