EffectCraft: An open-source motion graphics and compositing tool written by scratch in pure Rust
Packaging: the legacy-folder fallback covers every release before this installer change (#466)
tylerjenningsw8cb8a416acde
diff --git a/packaging/windows/effectcraft.wxs b/packaging/windows/effectcraft.wxsindex f4710add1..6757c4460 100644--- a/packaging/windows/effectcraft.wxs+++ b/packaging/windows/effectcraft.wxs@@ -31,8 +31,8 @@<Property Id="ARPHELPLINK" Value="https://discord.gg/artcraft" /><!-- An upgrade, repair or silent reinstall goes where the installed copy already is: the App Paths- "Path" value written below, or for releases before it (0.6.0 and earlier, which could be put- elsewhere with INSTALLFOLDER=...) the folder of the effectcraft.exe that App Paths names. A+ "Path" value written below, or for releases before this installer change (no Path value; they+ could be put elsewhere with INSTALLFOLDER=...) the folder of the effectcraft.exe that App Paths names. A"file" search with no FileSearch inside yields that file's folder. A folder passed on thecommand line (INSTALLFOLDER=...) wins. --><Property Id="INSTALLFOLDER" Secure="yes" />diff --git a/packaging/windows/test-msi.ps1 b/packaging/windows/test-msi.ps1index 0bed8c437..7cdaef860 100644--- a/packaging/windows/test-msi.ps1+++ b/packaging/windows/test-msi.ps1@@ -3,8 +3,8 @@Install-test the EffectCraft MSI's folder handling with stub binaries (no Rust build)..DESCRIPTION- Builds the MSI around two stand-in executables as 0.0.1 the way 0.6.0 and earlier were (no App- Paths "Path" value), then as 0.0.2 and 0.0.3, validates them (ICE), and, silently and per-machine:+ Builds the MSI around two stand-in executables as 0.0.1 the way releases before this installer+ change are (no App Paths "Path" value), then as 0.0.2 and 0.0.3, validates them (ICE), and, silently and per-machine:1. installs 0.0.1 into a folder with spaces and a non-ASCII name (INSTALLFOLDER=...),2. upgrades to 0.0.2 without naming a folder: it must stay in that folder (found from theinstalled effectcraft.exe, as there is no Path value yet),@@ -60,7 +60,8 @@ New-Item -ItemType Directory -Force -Path $Bin | Out-NullCopy-Item (Join-Path $env:SystemRoot 'System32\notepad.exe') (Join-Path $Bin 'effectcraft.exe')[IO.File]::WriteAllText((Join-Path $Bin 'effectcraft-cli.exe'), 'effectcraft-cli stand-in')-# 0.0.1 stands in for 0.6.0 and earlier: the same package without the App Paths "Path" value.+# 0.0.1 stands in for releases before this installer change: the same package without the App+# Paths "Path" value.$Wxs = Join-Path $PSScriptRoot 'effectcraft.wxs'$LegacyWxs = Join-Path $Work 'effectcraft-legacy.wxs'$pathValue = '(?m)^.*<RegistryValue [^>]*Name="Path"[^>]*/>\r?\n'