mirror of
https://github.com/storytold/effectcraft.git
synced 2026-10-14 19:27:05 -04:00
Cause: the folder search read only the App Paths "Path" value, which this branch introduced. 0.6.0 and earlier could already be installed elsewhere with INSTALLFOLDER=..., but have no Path value, so an upgrade went to Program Files while the wizard said it would stay in the same folder. Fix: when there is no Path value, a second search reads the App Paths default value (the full path of effectcraft.exe, written by every release). A "file" registry search with no FileSearch inside yields the folder of that file. Tests: test-msi.ps1 installs a legacy package (the same .wxs without the Path value) into a custom folder, then upgrades it without naming a folder; it fails on the previous .wxs (the upgrade lands in Program Files) and passes now. A further upgrade checks the Path value route.