vole
Site
Clone
Read only, no credentials:
https://rodent.software/vole.git
Write over SSH with a registered key:
git clone ssh://git@rodent.software/vole.git
Self-hosted forge that lives in your Git repo.
Package Windows: an MSI built with wixl, and install.ps1
31560d91c4e27f3fdee2652aa3b4b12b8343903d · Keenan Nemetz · 2d ago · parent 9cbfa891
Package Windows: an MSI built with wixl, and install.ps1 The Windows server installs from an MSI now, with install.ps1 on the channel as the one-command path, the same shape as the Linux installer. The MSI is built by wixl (msitools), not the WiX toolset. WiX v5 and v6 refuse to build outside Windows: every relative path is canonicalized against a hardcoded C:\ and the first Directory is rejected, so it cannot run in the release image. I tested both before choosing; wixl 0.101 is what Debian bookworm ships and it produces a package that installs, upgrades, and uninstalls on the Server Core guest. Its limits shaped the design and are recorded in the .wxs header: it silently drops Component/@Permanent and @NeverOverwrite, cannot edit PATH, and cannot schedule rollback actions, so the configuration and the data directory belong to `vole service install` and not to the package. That moved two things into the CLI. `service install` now writes a documented default configuration to %ProgramData%\Vole\vole.toml when it is given none, and initializes the instance database and repository like the Linux post-install step, so the package's only action is the binary registering itself. The same command serves a hand install and a pre-release, which has no MSI. The MSI's upgrade table is written by hand because wixl's MajorUpgrade schedules RemoveExistingProducts in the window Windows Installer rejects (error 2613). RemoveExistingProducts is placed at 1501, the service's stop-and-remove at 3400, and install-and-start after InstallFiles, so an upgrade removes the old product before the new files land and the running executable is never locked. Fixed along the way, found by installing the MSI: secure.HardenFor accepted an access list that was a subset of what it was asked to grant, so a configuration written by SYSTEM looked correct and never got the service account's entry; the service then could not read it and failed to start. HardenFor now requires every requested principal to be present, with a Windows test for the subset case. Release and verify wiring: both images gain wixl and msitools, verify builds the MSI and reads its tables back (wixl exits 0 when a source is missing), and the release builds the Windows binary and, for a stable tag, the MSI, and publishes install.ps1 beside install.sh. A pre-release tag has no MSI: ProductVersion cannot carry a pre-release suffix and wixl cannot express the same-version upgrade, so those releases ship the binary and install.ps1 says so. Docs: install.md gains the Windows method, packaging.md the Windows package and its limits, deploying windows.md the packaged flow (install, configure, first admin, firewall, upgrade, binary fallback, troubleshooting), and RELEASING.md the Windows sign-off a Linux runner cannot perform. Verified on the Server Core 2022 guest: MSI install starts the service and serves HTTP 200, with the config created at the documented default and the data kept; 0.2.1 upgrades over 0.2.0 with one Programs-and-Features entry and the service running; uninstall removes the service and the binary and leaves the config, data, and a marker file; install.ps1 installs from a local mirror after checking SHA256SUMS; reinstall and uninstall are repeatable. Windows unit tests pass there, and `vole workflow run verify` passes locally including the new package step. Part of 01M8SE6GWX1DGYPY6H9YC142C2.
docs/install.md +34−4
| @@ -1,8 +1,8 @@ | |||
| 1 | 1 | # Install | |
| 2 | 2 | ||
| 3 | Install the current stable Vole release on Linux with your package manager, or | ||
| 4 | on macOS from a standalone binary. Packages and binaries are available for | ||
| 5 | `amd64` and `arm64`. | ||
| 3 | Install the current stable Vole release on Linux with your package manager, on | ||
| 4 | macOS from a standalone binary, or on Windows from an MSI. Packages and binaries | ||
| 5 | are available for `amd64` and `arm64`; Windows is `amd64` only. | ||
| 6 | 6 | ||
| 7 | 7 | | Method | Best for | Requirements | | |
| 8 | 8 | |---|---|---| | |
| @@ -11,8 +11,8 @@ on macOS from a standalone binary. Packages and binaries are available for | |||
| 11 | 11 | | [Package file](#install-a-package-file) | Installing without adding a repository | `sudo` access | | |
| 12 | 12 | | [Release binary](#install-a-release-binary) | A user-local installation on Linux | Git | | |
| 13 | 13 | | [Install on macOS](#install-on-macos) | A Mac client, or a laptop forge | `curl` or `wget`, and `sudo` for a system install | | |
| 14 | | [Install on Windows](#install-on-windows) | A Windows server, or a Windows client | PowerShell as administrator | | ||
| 14 | 15 | | [Build from source](#build-from-source) | Developing Vole or using an unsupported platform | Go and Git | | |
| 15 | | [Deploy on Windows](deploy/windows.md) | A Windows server, or a Windows client | Git for Windows; no package yet | | ||
| 16 | 16 | ||
| 17 | 17 | ## Install with the install script | |
| 18 | 18 | ||
| @@ -164,6 +164,36 @@ vole version | |||
| 164 | 164 | On ARM, replace `vole-linux-amd64` with `vole-linux-arm64`. Make sure | |
| 165 | 165 | `~/.local/bin` is on your `PATH`. | |
| 166 | 166 | ||
| 167 | ## Install on Windows | ||
| 168 | |||
| 169 | There is no package repository for Windows yet. The release publishes an MSI and | ||
| 170 | an `install.ps1` that downloads it, checks it against the release's | ||
| 171 | `SHA256SUMS`, and installs it. Run it from an elevated PowerShell: | ||
| 172 | |||
| 173 | ```powershell | ||
| 174 | Invoke-WebRequest https://rodent.software/vole/channels/stable/install.ps1 -OutFile install.ps1 | ||
| 175 | .\install.ps1 | ||
| 176 | ``` | ||
| 177 | |||
| 178 | `-Version v0.2.0` installs a pinned release, `-Channel` follows another channel, | ||
| 179 | and `-DryRun` prints the plan without changing anything. To install the MSI | ||
| 180 | directly, download `vole-windows-amd64.msi` from the | ||
| 181 | [current stable release](https://rodent.software/vole/channels/stable) and run | ||
| 182 | `msiexec /i`. The MSI is not Authenticode-signed yet, so Windows will warn about | ||
| 183 | an unknown publisher; check the download against `SHA256SUMS`, which the release | ||
| 184 | signs with GPG, before running it. | ||
| 185 | |||
| 186 | The package installs `vole.exe` under `C:\Program Files\Vole` and registers the | ||
| 187 | `Vole` service, running as the virtual account `NT SERVICE\Vole`. It does not | ||
| 188 | ship a configuration: `vole service install` writes a documented default to | ||
| 189 | `%ProgramData%\Vole\vole.toml` the first time, and neither that file nor the | ||
| 190 | instance data is part of the package, so uninstalling leaves both in place. | ||
| 191 | Upgrading is installing a newer MSI. | ||
| 192 | |||
| 193 | Windows support covers the forge server and the CLI client, not the CI runner. | ||
| 194 | [Deploy on Windows](deploy/windows.md) covers the configuration, the firewall, | ||
| 195 | the first administrator, and upgrading. | ||
| 196 | |||
| 167 | 197 | ## Install on macOS | |
| 168 | 198 | ||
| 169 | 199 | macOS binaries are cross-compiled on Linux and attached to each release. The | |