mirror of
https://github.com/storytold/lightcraft.git
synced 2026-10-24 10:09:01 -06:00
The interactive installer now walks Welcome -> Destination Folder -> Ready -> progress -> Completed (from #79). Destination Folder is WiX's InstallDirDlg: Program Files\LightCraft by default, Change... browses, and WixUIValidatePath refuses a folder that can't be used. The chosen folder is written to HKLM\Software\LightCraft\InstallFolder and read back (into PREVIOUSINSTALLFOLDER, then INSTALLFOLDER after AppSearch unless given on the command line), so a major upgrade stays in the user's folder instead of moving back to Program Files. Silent and passive installs show no dialogs and take INSTALLFOLDER=.... packaging-lint fails if lightcraft.wxs loses the folder page, the remembered folder or the completion page's launch action. Tested with wix 5.0.2 (x64, arm64, x86 build) and msiexec /qn: upgrade from 0.4.0 stays in Program Files; a custom INSTALLFOLDER install, an upgrade without it (stays), an upgrade with another INSTALLFOLDER (moves there), and uninstall (files, folder and registry value removed). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>