Packaging: the Windows installer asks where to install EffectCraft (#466)
A fresh install opens on a destination page (Program Files by default; Change... browses, with Up and New folder), then a Ready page that shows the folder before anything is written. An upgrade goes straight to the Ready page with the installed copy's folder and can't move it; opening the MSI again offers Repair or Remove. Cancel, finish, files-in-use and error dialogs are authored too. Silent installs (/qn) show none of it. The dialogs (installer-ui.wxs) are original, built from Windows Installer's own controls and events, not the WixUI library, whose MS-RL licence is not on the allowed list. package.ps1 builds both .wxs files.
This commit is contained in:
@@ -93,7 +93,7 @@ Copy-Item (Join-Path $Bin 'effectcraft.exe'), (Join-Path $Bin 'effectcraft-cli.e
|
||||
# ---- MSI ---------------------------------------------------------------------------------------
|
||||
$Msi = Join-Path $Dist "effectcraft-$Version-windows-$Arch.msi"
|
||||
Invoke-Native 'wix build' {
|
||||
wix build (Join-Path $PSScriptRoot 'effectcraft.wxs') -arch $Arch `
|
||||
wix build (Join-Path $PSScriptRoot 'effectcraft.wxs') (Join-Path $PSScriptRoot 'installer-ui.wxs') -arch $Arch `
|
||||
-d "Version=$MsiVersion" -d "BinDir=$Stage" -d "IconPath=$(Join-Path $Root 'assets\app-icon\effectcraft.ico')" `
|
||||
-o $Msi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user