Windows packaging
Status: accepted. Date: 2026-11-07. Owner approved: yes.
The alpha has a native installer with per-user and all-users scopes and a portable ZIP. The three intended executable deliverables are:
Voyager7-Setup.exe: our Rust, CRT-free native Win32 installer with a compressed payload appended after the PE image. No external installer framework is used.voyager7-<version>-win64-standalone-min.exe: the bare GUI executable, without fonts. This is the artifact subject to the existing 5,000,000-byte gate.voyager7-<version>-win64-standalone-full.exe: pending. TODO after the emoji sidecar work: embed fonts uncompressed in PE read-only sections. Font bytes must remain image-backed, add no private copy, and expose exactly the same family, fallback, presentation, color and shaping behavior as sidecar faces. No full artifact is produced until those contracts are implemented and measured.
voyager7-<version>-win64.zip carries voyager7.exe, voyager7.com, fonts/
and license/notice files. It also includes Microsoft's optional modern ConPTY
sidecars (conpty.dll, OpenConsole.exe) and their MIT notice. cargo xtask package
reuses the SHA-256-pinned cargo xtask sidecar downloads, fixed ZIP timestamps,
order and attributes, normalized PE COFF timestamps, and a version from the
workspace. Reproduction assumes the same Rust, Zig, Python and
zlib versions and source tree; it does not depend on filesystem timestamps.
Console launcher
voyager7.exe keeps its GUI subsystem. The console-subsystem Rust helper is
shipped as voyager7.com beside it. Default PATHEXT resolves COM before EXE.
CLI actions, help/version and diagnostic probes wait for the executable in the
helper's own directory. The original UTF-16 argument tail is preserved. Standard
handles are duplicated as inheritable and passed via STARTF_USESTDHANDLES; console
writes, file redirection and pipes share the same executable implementation.
The helper handles Ctrl+C/Break itself while the child receives the console's
original event, avoiding duplicate delivery, and returns the child's exit code.
Ordinary GUI startup uses DETACHED_PROCESS and returns immediately. The exe's
existing attach-to-parent path continues to support start /wait voyager7.exe.
Shell interoperability
The exe uses valid inherited output handles first. It attaches only when output has no usable handle. An invalid console stream is retried once after attaching, while retaining valid file/pipe streams and stdin. This also covers a console stdout paired with a redirected stderr. No console is ever allocated for actions.
Win10 acceptance pins Portable Git for Windows 2.51.2 and Nushell 0.109.1 by
SHA-256 (see xtask/src/package_shells.rs). Actual twin .exe/.com resolution probes
confirm Git Bash selects .exe in both mintty and conhost, while Nushell selects
.com through the default PATHEXT order; reversing PATHEXT to put .exe first
changes Nushell's selection to .exe. cmd and PowerShell also select .com.
The tested actions include version, help, unsupported-action exit 1, head pipelines
and file redirection. The temporary boo player sends one finite, undelayed cycle
to pipes/files; closing a pipe terminates output rather than hanging. A real
console supports its interactive animation. The modern Git build is tested on
Win10 only; a separate Cygwin installation is not part of this matrix.
cargo xtask vm-shells downloads pinned archives into ignored build/ storage,
runs through Sal's interactive token, then removes the extracted shells and
archives from the guest. Failed runs can retain the verified archives while
work continues; completed acceptance must remove them.
Installer scope
The default “Just me” scope installs into %LOCALAPPDATA%\Programs\Voyager7.
“All users” installs into 64-bit %ProgramW6432%\Voyager7, registers under HKLM,
creates OS-dependent links in the common Start Menu Programs directory, and updates
system PATH under HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment.
Per-user scope continues to use HKCU, the user's Start Menu and user PATH.
The manifest remains asInvoker: only executing an all-users install/uninstall
requests ShellExecuteExW with runas, and only if the process is not already
elevated. The original UI waits for the child's status and keeps its original
token for Finish/Launch. Directory, exact checkbox choices and settings-removal
choice are carried to the elevated silent worker. Cancelling UAC returns 1223.
Cleanup after an elevated uninstall waits for the original unelevated UI process
to exit, so its open image cannot block deletion. The installed uninstaller infers machine scope by matching its own directory
against HKLM InstallLocation; its Start Menu link needs no arguments.
Windows 7 creates a Voyager7 folder in Programs with Voyager7.lnk and
Uninstall Voyager7.lnk. Windows 8 and later (real version >= 6.2 from
RtlGetVersion) create only a top-level Voyager7.lnk. Modern Start menus hide
Uninstall-named links; their Uninstall action uses the registered UninstallString
through Programs and Features / Settings instead. Both scopes use this policy.
Every upgrade cleans both prior managed layouts before creating the current one;
/noshortcut and uninstall clean both layouts. Empty product folders are removed,
and foreign files are preserved. The acceptance product name also isolates the
top-level link, so scratch testing cannot migrate the owner's installed links.
Cross-scope installation is refused with Windows error 1638: uninstall the other
copy first. The unelevated process checks its own HKCU before relaunch; the elevated
machine worker also checks every local profile (loaded HKU hives, otherwise a
read-only process-private RegLoadAppKey hive). An uninspectable profile refuses
the operation rather than risking a duplicate. A global setup handle prevents
concurrent setup mutations (1618). Per-user settings/config locations are unchanged.
The native dialog uses common-controls v6, an asInvoker manifest and system-DPI
scaling. Its state is guarded against reentrant Win32 callbacks. Layout is in
dialog units from the system message font (NONCLIENTMETRICS), on a fixed-size,
centered window without minimize/maximize boxes: a task-dialog style header,
then Install location (scope radios, folder), Components (with installed sizes)
and Integration sections, and a gray command area showing the space required.
The action button carries the UAC shield when it will elevate. Installing
replaces the options with a per-file progress bar and status line; the done
view offers Launch Voyager7 and Finish. Uninstall shows its location read-only.
Component sizes come from inflating the payload once when the dialog opens. The
terminal and emoji font groups, Start menu shortcut and user PATH default on.
“Nerd Font symbols (Symbols Nerd Font)” is offered beside the terminal font and
is checked by default too (/nonerdfont opts out): SymbolsNerdFont-Regular.ttf
(2,440,316 bytes) and its MIT LICENSE (as fonts/SymbolsNerdFont-LICENSE.txt)
from the Nerd Fonts 3.4.0 Symbols Only archive Ghostty pins and embeds
(NerdFontsSymbolsOnly-3.4.0.tar.gz; archive and member SHA-256 pinned in
cargo xtask sidecar). It replaced Microsoft's Cascadia Mono NF on 2026-11-22:
that build squeezes every icon into one cell, so Ghostty's Nerd Font
constraints keep its icons small, while Symbols Nerd Font icons are drawn
about 1.5 cells wide, as in Ghostty. Install and upgrade delete the old
fonts/CascadiaMonoNF* files; uninstall removes them too. It is payload category 4 (0 core, 1 terminal
font, 2 emoji font, 3 modern console host); the retained choices string gains a
sixth digit; a five-digit value from an older install takes the default, so
the upgrade adds it, and a saved 0 keeps it off. When
installed, it is the fallback for Nerd Font symbols right after the configured
family and Consolas (see v7_text::discovery::candidates). The portable ZIP
carries it; standalone-min does not. “Nostalgia pixel font (ANAKRON)” follows
the same pattern as category 5 (checked by default, /noanakron opts out and
/anakron back in): fonts/anakron-8x12.v7bf.z, the v7-nostalgia bitmap
table, with fonts/ANAKRON-OFL.txt; the choices string gains a seventh digit,
and a shorter saved value leaves it at its default. Without it nostalgia draws
with the Terminal raster font. Builds that embedded ANAKRON left
ANAKRON-OFL.txt in the install root; install and uninstall delete it. Choices and installation directory
are retained in the selected scope's Uninstall registration on upgrade.
No terminal is silently killed: locked executables fail silently with a nonzero
status, or offer Retry/Cancel in the dialog.
/S suppresses setup UI; /ALLUSERS selects machine scope and /CURRENTUSER
selects the default user scope (the two flags together are invalid). UAC may still
require consent for a non-elevated silent machine operation. /D=<absolute directory>, /nofonts, /noemoji,
/noshortcut, /nopath, /noconpty, /nonerdfont, /nerdfont,
/noanakron and /anakron override defaults or retained choices. Quote
the complete /D=... argument when it contains spaces. Exit 0 means success, 13 malformed
payload, 87 invalid arguments/destination, and other values are Windows errors
(e.g. 32 for an executable still running). GUI Cancel closes the dialog.
The modern-console checkbox reads “Modern console host (recommended)”, defaults
on, and is offered only on build 17763 or newer, queried through RtlGetVersion.
Older systems show neither the checkbox nor its requirement note, reclaim the row,
and never install those files.
The unmodified Microsoft.Windows.Console.ConPTY 1.25.260930003 binaries are copied
beside voyager7.exe. cargo xtask sidecar fetches and verifies package/member
SHA-256 pins, placing them in build/sidecar/conpty/; packaging consumes that output.
The runtime preference and fallback are owned by the ConPTY implementation.
The Microsoft binaries target Windows 10 1809 and deliberately do not pass the
Win7 import gate; setup, uninstall and the helper must pass it on both systems.
Standalone-min neither contains nor embeds these sidecars.
After each PATH change, setup rebuilds its own process PATH from expanded machine and user registry values, as well as broadcasting WM_SETTINGCHANGE. Finish refreshes again before launching the terminal, including after an elevated worker completes. Registry writes/broadcasts do not refresh existing process environments; already-open shells must be restarted or refreshed.
The small stub is copied as uninstall.exe, without its compressed payload.
It always removes managed binaries and fonts from its own executable's parent
folder, ignoring /D= during uninstall. Registry InstallLocation never redirects
file deletion. Only when the chosen scope's InstallLocation matches that folder
(case-insensitive, ignoring trailing backslashes) does uninstall also remove that
scope's registration, Start Menu links, PATH entry and explicitly selected settings.
A moved/copied uninstaller without a matching registration removes only its own
managed files. Machine-scope inference uses the same normalized comparison;
elevation reruns that same image and cleanup retains the original-parent PID handoff.
Uninstall metadata strings use REG_SZ; readers also accept legacy REG_EXPAND_SZ,
and upgrades rewrite them. Environment PATH continues to use REG_EXPAND_SZ.
A small temporary copy waits for the uninstaller process to exit, then removes
its image and the empty directory. A hidden system command removes that temporary
copy after it exits. Leaving the interactive Finish state open cannot race
cleanup. Unrecognized files are retained. Config under %APPDATA%\Voyager7
is kept unless “Also remove settings” is explicitly selected (/settings for
silent uninstall). Only the two known config files are then removed; unrelated
user data is retained.
The payload uses zlib/deflate and the already-used no_std miniz_oxide decoder,
with a 32 MiB decompression cap, 64-record cap, bounded record lengths and path
validation. The trailer specifies the compressed length and a format signature;
zlib checks integrity. All records are validated before installation writes begin.
cargo xtask decoder-size compares identical CRT-free no_std probes: deflate
adds 12,800 bytes, and lzma-rust2 0.25.0 XZ adds 38,912. The shipping stub's
actual incremental deflate cost is 12,288 bytes after LTO/padding. XZ -9e saves
about 1 MB of payload, while deflate keeps the original native stub at 51,200 bytes (59,392 after scope/elevation support) and
reuses the existing bounded decoder. This alpha chooses the smaller stub and
accepts the larger download. The XZ probe is not a shipping dependency.
Launch/setup use size optimization; the terminal's optimization is unchanged.
Compression measurements and exact toolchains are in the
acceptance report. Installer changes
allocate only during explicit setup work, not the terminal's steady-state paths
(ADR 0005).
These alpha artifacts are unsigned. The owner accepts SmartScreen's “unknown publisher” warning for now. Signing and its release-key lifecycle are pending.
Limits before broader distribution
There is no transactional rollback for disk-full or registry failures after file replacement. Install/uninstall run synchronously on the dialog thread; progress indicates start/completion rather than bytes. The installer rejects relative, UNC, drive-root, dot-segment, overlong and shell-metacharacter destinations. Moving an existing installation to a new directory does not migrate/delete the old directory. A complete dependency-license inventory and the project's own license decision remain pending; the packaged LICENSE is an explicit distribution-status notice, not a new license grant. These are alpha limitations, not completed features.