Windows packaging: a WiX MSI, an install script, and the release artifacts
What
A Windows machine should install Vole the way it installs anything else: an MSI from the stable channel, with the service registered, the data directory prepared, and an upgrade that does not lose state. This issue is the packaging half of the Windows port; the service itself is #409.
Decisions
- A WiX MSI is the artifact of record. On Windows the enterprise package
manager is MSI through Intune, Group Policy, Configuration Manager, or Ansible;
winget and Chocolatey are downloaders in front of it. WiX is chosen over
msitools/wixlfor its upgrade and custom-action support; the .NET SDK it needs joins.vole/images/release.yamlbeside the existing package tools. - Authenticode: later. The first Windows releases are unsigned and the
documentation says so, including the SmartScreen prompt. GPG
SHA256SUMSstill covers integrity, and the release workflow keeps failing rather than publishing an unsigned GPG release. This is revisited when a certificate exists. - winget: later. Manifests live in
microsoft/winget-pkgs, so it needs a decision about a GitHub mirror of each release, not a packaging change. MSI and the install script come first. - Chocolatey and Scoop: not now. Chocolatey is a thin package that fetches the signed MSI if ops teams ask for it; a Scoop bucket on our own forge is the client-side convenience.
- One service definition. The MSI registers the service through the binary’s
vole service installstep (custom action), so the account, recovery actions, and command line are the same for MSI, zip, and script installs. - The default identity stays
NT SERVICE\Vole, matching #409.
Scope
packaging/windows/with the WiX sources:%ProgramFiles%\Vole\vole.exe,LICENSE,NOTICE.%ProgramData%\Vole\{vole.toml,data,logs}, config created only if absent (never overwritten on upgrade).- Custom actions:
vole service installon install,vole service stop+uninstallon uninstall; data directory preserved deliberately. - Major upgrade: stop the service, replace files, start it again; no downgrade.
- PATH entry for
vole, and an ARP entry with the version and publisher. - Launch condition for Git for Windows (
git.exeon PATH), because the server shells out to git and an MSI cannot declare the dependency.
install.ps1served at/channels/<channel>/install.ps1, mirroringinstall.sh: choose arch, download the MSI or zip from the channel, verify againstSHA256SUMS, install the service, print the next steps (config, admin invite, firewall rules).-OpenFirewallopens 80/443/2222; the default does not.- Release pipeline: build the MSI for
amd64in the release image, attach it and the zip to the release, include both inSHA256SUMS, and publish the script on the channel. Keep the Windows binary out of the Linux package trees. - Docs:
docs/install.mdgains Windows methods,docs/packaging.mdgains the installed-files table and upgrade notes,docs/deploy/windows.mdis extended from #409 with the package path, andRELEASING.mdgains the MSI step and the unsigned-release note.
Acceptance criteria
msiexec /i vole.msion a clean Server Core guest installs the service, starts it, and serves HTTP and SSH; an uninstall removes the service and files and leaves%ProgramData%\Vole.- An upgrade from the previous MSI stops, replaces, restarts, and keeps the database, repositories, and configuration.
install.ps1installs without a package manager and fails closed on a checksum or signature mismatch.SHA256SUMScovers the MSI and the zip, and the verify workflow still passes.
Out of scope
Authenticode signing, winget manifests, Chocolatey, Scoop, and the CI runner on Windows.