The pipeline builds a Windows MSI that installs, upgrades and removes Ninlil as a service #220

Open
opened 2026-10-31 12:42:29 -04:00 by claude · 0 comments
Owner
  • Draft: PN-44
  • Priority: medium
  • Agent: coder
  • Depends on: #219, #19
  • Decisions: Q-PN-13, Q-PN-14

Why

An installer replaces the manual service setup in README.md:435-468.

What changes

  • New src/windows-installer/ holding a WiX Toolset source (built with the wix .NET tool, which needs Windows), a header comment and a README.
  • The installer puts the exe and the runtime pack's msquic.dll in %ProgramFiles%\Ninlil and the data directory in %ProgramData%\Ninlil\data (#219 setting written to the service environment). #19 lands first: the exe carries an embedded msquic.dll and writes it beside itself only when the file there is missing or has a different hash, so with the MSI's matching dll it writes nothing into %ProgramFiles%.
  • It creates the service under NT SERVICE\Ninlil with recovery actions, registers the Ninlil.Web event source, and offers firewall rules as an option. These are the steps in README.md:435-468.
  • Upgrade keeps the data. Uninstall keeps the data unless the operator asks otherwise.
  • .forgejo/workflows/pipeline.yml: an MSI job on the Windows runner (label windows-latest, as windows-smoke at lines 557-587) after the binary job.
  • .forgejo/scripts/windows-smoke.ps1 (which #19 changes first, to test the bare exe): install the MSI silently, check /status, uninstall.
  • No code signing (Q-PN-14). The MSI gets a line in SHA256SUMS, and README tells the operator to compare the hash and expect a SmartScreen prompt.

Acceptance

  • The pipeline produces ninlil-windows-amd64.msi with a SHA256SUMS line.
  • The smoke job passes install, status, upgrade over the previous MSI, and uninstall on lofnheim; after install the dll in %ProgramFiles%\Ninlil is the one the MSI wrote (same timestamp).
  • Gate: the pipeline run plus the smoke test on lofnheim (Wine cannot run the exe).

Source

README.md:401-486; .forgejo/scripts/publish-binary.sh; DEDUPE.md P3.
Owner decision 2026-10-31: "stay unsigned" (Q-PN-14).

- **Draft:** PN-44 - **Priority:** medium - **Agent:** coder - **Depends on:** #219, #19 - **Decisions:** Q-PN-13, Q-PN-14 ### Why An installer replaces the manual service setup in README.md:435-468. ### What changes - New `src/windows-installer/` holding a WiX Toolset source (built with the `wix` .NET tool, which needs Windows), a header comment and a README. - The installer puts the exe and the runtime pack's `msquic.dll` in `%ProgramFiles%\Ninlil` and the data directory in `%ProgramData%\Ninlil\data` (#219 setting written to the service environment). #19 lands first: the exe carries an embedded `msquic.dll` and writes it beside itself only when the file there is missing or has a different hash, so with the MSI's matching dll it writes nothing into `%ProgramFiles%`. - It creates the service under `NT SERVICE\Ninlil` with recovery actions, registers the `Ninlil.Web` event source, and offers firewall rules as an option. These are the steps in README.md:435-468. - Upgrade keeps the data. Uninstall keeps the data unless the operator asks otherwise. - `.forgejo/workflows/pipeline.yml`: an MSI job on the Windows runner (label `windows-latest`, as `windows-smoke` at lines 557-587) after the binary job. - `.forgejo/scripts/windows-smoke.ps1` (which #19 changes first, to test the bare exe): install the MSI silently, check `/status`, uninstall. - No code signing (Q-PN-14). The MSI gets a line in `SHA256SUMS`, and README tells the operator to compare the hash and expect a SmartScreen prompt. ### Acceptance - [ ] The pipeline produces `ninlil-windows-amd64.msi` with a SHA256SUMS line. - [ ] The smoke job passes install, status, upgrade over the previous MSI, and uninstall on lofnheim; after install the dll in `%ProgramFiles%\Ninlil` is the one the MSI wrote (same timestamp). - [ ] Gate: the pipeline run plus the smoke test on lofnheim (Wine cannot run the exe). ### Source README.md:401-486; `.forgejo/scripts/publish-binary.sh`; DEDUPE.md P3. Owner decision 2026-10-31: "stay unsigned" (Q-PN-14).
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
lantea-one/ninlil#220
No description provided.