Files
AniCraft/packaging/windows/INSTALLATION.md
T
Tanish Manku ee32ec6a53 feat(packaging): Windows MSI, portable and symbols zips (M8)
WiX v5 installer in the Craft family's install policy: per-user by default, everyone on
request, upgrades in place. Registers .anicraft (default app) and offers Open with for
.fla/.xfl; Start menu, App Paths, Launch on Finish. sign.ps1 signs with a PFX or Azure
Trusted Signing and warns without secrets.
2026-11-09 12:29:15 -07:00

35 lines
2.0 KiB
Markdown

# Windows installation policy checks
New installations default to the current account under `Programs\ArtCraft\<App>`.
The first setup page offers installation for everyone. Scope is selected before duplicate
checks and directory costing. An update uses the existing context's remembered exact folder;
`INSTALLFOLDER` supplied explicitly is never replaced. It is a secure MSI property so the
chosen folder reaches the elevated installer. Silent machine updates pass `ALLUSERS=1`.
A cross-context copy is refused; changing context means uninstalling the old copy first.
App registration follows the selected context. Existing optional shortcuts and file-handler
choices stay app-owned. Uninstalling removes the program files and registrations only:
preferences, plug-ins and crash-recovery copies in `%APPDATA%\AniCraft` belong to the user and
stay.
## Repeatable metadata tests
On Windows with WiX 5.0.2 and its matching UI/Util extensions:
```powershell
./packaging/windows/test-install-policy.ps1 -OutputDirectory ./target/install-policy-tests
```
The script builds x64, x86 and arm64 packages with deliberately non-executable payloads. It
uses the actual package source and compiled database. A safe Windows Installer session checks
24 scope/registration/maintenance cases, remembered and explicit custom folders, sequencing,
upgrade identity and the original registration inventory recorded in `install-policy.json`.
The release packaging script runs the compiled checker before signing. Packaging CI runs the
small fixture builds without compiling the Rust application.
Never install or distribute the `NOT-INSTALLABLE.msi` fixtures as an app. Passing these checks
does not prove real installation, elevation, legacy-version upgrades, registry writes, optional
shortcut/menu behaviour, cancellation, rollback or uninstall. Those still require the real
payload in an authorised clean Windows test environment. Cross-architecture metadata is not
execution evidence on those architectures.