# Deployment and policy [Documentation](README.md) · [User guide](USER_GUIDE.md) · [Release checklist](RELEASE_CHECKLIST.md) This guide is for administrators installing Vordr or enforcing settings. A portable installation does not require machine policy. ## Installation and upgrades The universal MSI installs for all users in `%ProgramFiles%\Vordr` (customizable via the interactive folder picker or `INSTALLDIR=`). It carries both the native x64 (`vordr.exe`) and native ARM64 (`vordr-arm64.exe`) binaries and automatically installs the host's native executable as `[INSTALLDIR]vordr.exe` with zero custom actions (using `AppSearch` + `RegLocator` against `HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\PROCESSOR_ARCHITECTURE` into `HOST_NATIVE_ARCH`, see [Windows on ARM](ARM64.md#universal-msi-deployment)). Running the MSI interactively presents a four-step setup wizard (Welcome, Installation Folder with `.vordr` association and Start with Windows toggle (enabled by default), optional Settings & Policy list where edited values seed user-overridable `HKCU` defaults and the top-right `Lock` checkbox enforces them in `HKLM`, and Ready to Install), while silent `/qn` deployments remain completely non-interactive and write only the properties supplied on the command line. It can register an all-users Start Menu shortcut, the `.vordr` file association, Windows startup (`VORDR_AUTOSTART=1` by default; pass `VORDR_AUTOSTART=0` to disable), and only the settings explicitly selected or supplied at installation. Installation requires elevation; the application manifest uses `asInvoker`, so running Vordr does not itself request elevation. Run these Command Prompt examples in an elevated shell, replacing the filename with the package being deployed: ```bat msiexec /i vordr-1.1.1.msi /qn msiexec /i vordr-1.1.1.msi /qn VORDR_SECUREUNLOCK=1 VORDR_PWMINLEN=16 msiexec /x vordr-1.1.1.msi /qn ``` The package replaces related versions from `0.0.0` through its own version, inclusive, so a rebuilt package of the same version replaces rather than installs alongside the previous package. Downgrades are blocked at install time (`NEWERVERSIONDETECTED` `Upgrade` row and `LaunchCondition`), and installer-owned directories and binaries carry explicit `MsiLockPermissionsEx` SDDL rules (`verify_msi.ps1`). Keep `UpgradeCode` stable across releases. **Repeat policy properties on upgrades.** MSI properties are not remembered as deployment configuration. Removing the previous package can remove its policy values; an upgrade without those properties does not automatically restore them. Uninstall removes the executable, shortcut, association registrations it owns, and installer-owned policy values. It does not remove vaults or HKCU user data. Do not add broad `RemoveFile` cleanup to the package. ### WinGet deployment The community package ID is `ThomasSmistad.Vordr`. WinGet downloads the published MSI from the project's GitHub release; it is not a different application build or a Microsoft Store edition. ```powershell winget install --id ThomasSmistad.Vordr --exact --source winget winget upgrade --id ThomasSmistad.Vordr --exact --source winget ``` These commands use the machine-wide MSI and require elevation for installation or upgrade. They do not enable an updater inside Vordr or move vault data. **Do not use a plain WinGet upgrade as a policy-preservation strategy.** It does not repeat your custom MSI properties. For policy-managed installations, use your deployment system to supply the required properties on every upgrade, or reapply and verify centrally managed registry policy after installation. Check the effective settings before returning the application to use. The portable executable has no equivalent MSI installed-product identity; do not assume WinGet will inventory or update arbitrary portable copies. For user instructions, see [Updates](USER_GUIDE.md#updates). ## How policy is resolved For supported configuration values, Vordr checks the native 64-bit registry view in fail-closed order: ```mermaid flowchart LR A["HKLM value present?"] -->|Yes, valid| B["Enforce HKLM policy (locked)"] A -->|Yes, wrong type/invalid| F["Enforce safe default / refuse path (locked; no HKCU fallback)"] A -->|Absent| C["Valid HKCU value?"] C -->|Yes| D["Use user preference"] C -->|No| E["Use compiled default"] ``` Policy resides under `HKLM\SOFTWARE\Vordr` (not `SOFTWARE\Policies`); user preferences reside under `HKCU\SOFTWARE\Vordr`. Any `HKLM\SOFTWARE\Vordr` value **locks** its corresponding setting (`*locked = 1`), disables its Settings UI control, and prevents fallback to `HKCU`. If an `HKLM` value has an unexpected registry type (for example `REG_SZ` where `REG_DWORD` is required), Vordr keeps the setting locked and applies the safe compiled default rather than consulting user-writable `HKCU` (`polkat`). To return choice to the user, delete the `HKLM` value rather than setting it to the default number. The vault path and hotkey have special handling described below; do not assume every registry value has an MSI property or a visible policy-lock indicator. ## Properties Sixteen public MSI properties map to DWORD settings. Defaults apply only when no valid setting exists; the installer does not write defaults automatically. | Property | Registry value | Range | Vordr's default | Effect | |---|---|---|---|---| | `VORDR_PWMINLEN` | `PwMinLen` | 1–256 | 12 | minimum master-password length | | `VORDR_PWMINCLASSES` | `PwMinClasses` | 1–4 | 3 | character classes a master password must mix | | `VORDR_SECUREUNLOCK` | `SecureUnlock` | 0/1 | 1 | type the master password on an isolated desktop | | `VORDR_TPMUNLOCK` | `TpmUnlock` | 0/1 | 1 | allow TPM convenience unlock | | `VORDR_TPMREQUIREHELLO` | `TpmRequireHello` | 0/1 | 0 | request provider confirmation for TPM unlock | | `VORDR_CLIPSECONDS` | `ClipSeconds` | 0–3600 | 20 | clipboard auto-clear delay, seconds | | `VORDR_IDLELOCKMIN` | `IdleLockMin` | 0–1440 | 10 | idle minutes before auto-lock, 0 = off | | `VORDR_LOCKONWINLOCK` | `LockOnWinLock` | 0/1 | 1 | lock the vault when Windows locks | | `VORDR_PWVERIFYDAYS` | `PwVerifyDays` | 0–3650 | 30 | re-verify the master password every N days under TPM unlock, 0 = off | | `VORDR_NOHISTORY` | `NoHistory` | 0/1 | 0 | do not keep per-entry history | | `VORDR_NOPHONETIC` | `NoPhonetic` | 0/1 | 0 | disable the phonetic secret reader | | `VORDR_NOPREVIEW` | `NoPreview` | 0/1 | 0 | attachments download only, never previewed via another app | | `VORDR_LOGLEVEL` | `LogLevel` | 0–4 | 0 | audit-log verbosity, 0 = off | | `VORDR_UISCHEME` | `ui_scheme` | 0–9 | 6 | force a colour scheme (`0..2` light, `3..8` dark, `6` = Gruvbox default, `9` = Follow Windows) | | `VORDR_ALLOWUNCVAULT` | `AllowUncVault` | 0/1 | 0 | `HKLM`-only: allow UNC/SMB paths (`\\server\share\...`) for vaults, imports/exports, and logs | | `VORDR_ALLOWSCREENCAPTURE` | `AllowScreenCapture` | 0/1 | 0 | `HKLM`-only (production): allow screenshots and screen sharing of Vordr windows (disables `SetWindowDisplayAffinity`) | `ui_anim` (DWORD under `HKLM\SOFTWARE\Vordr`) fixes Settings > Animations: 0 follows Windows' "Animation effects" switch (the default), 1 always animates, 2 never does. Five additional `REG_DWORD` values under `HKLM\SOFTWARE\Vordr` enforce PIN secret rules and granular TPM unlock policy (locking their corresponding Settings controls in the same fail-closed manner): - `TpmUnlockMode` (`0..3`, default `1`): `0` = Off, `1` = TPM only, `2` = TPM + PIN, `3` = TPM + Windows Hello. When `TpmUnlockMode` is absent, Vordr migrates legacy `TpmUnlock` / `TpmRequireHello` values (`TpmUnlock = 0` -> `0`; `TpmRequireHello = 1` -> `3`; otherwise `1`). - `TpmMinMode` (`0..3`, default `0`, **`HKLM`-only**): raises the minimum allowed `TpmUnlockMode` whenever TPM unlock is enabled (`mode != 0`) while still permitting users to turn TPM unlock completely `Off` (`0`), unless `TpmUnlockMode` itself is locked in `HKLM`. - `TpmPinMaxAttempts` (`1..20`, default `3`): failed `TPM + PIN` attempts before Vordr deletes the TPM keys and revokes the `HKCU` shortcut. - `PinMinLen` (`4..32`, default `6`): minimum scalar length for `VF_PIN` entry fields and `TPM + PIN` enrollment. - `PinRejectTrivial` (`0/1`, default `1`): when `1`, blocks saving or enrolling trivial PIN patterns (`000000`, `123456`, `121212`, `123321`); when `0`, allows saving weak PINs in vault entries while still flagging them as Weak in Vault Health. `AllowUncVault` and `AllowScreenCapture` (in production builds) are evaluated **only** from `HKLM\SOFTWARE\Vordr`; user-writable `HKCU` values cannot enable UNC/SMB access or disable screen-capture exclusion (`polkat`). When `AllowUncVault` is `0` (the default), Vordr blocks `\\server\share\...` and `\\?\UNC\...` paths before `CreateFileW` and rejects junctions or mapped drives whose resolved handle path (`GetFinalPathNameByHandleW`) points to UNC storage. For the 14 settings that Vordr also reads from `HKCU\SOFTWARE\Vordr` (all except the `HKLM`-only `AllowUncVault` and `AllowScreenCapture`), parallel `VORDR_USER_` properties (for example `VORDR_USER_PWMINLEN=24`) seed unlocked user defaults in the installing user's `HKCU\SOFTWARE\Vordr` hive. Those components carry the MSI `Permanent` flag so users can override them in Vordr Settings and uninstalling Vordr leaves `HKCU` untouched. If both `VORDR_` and `VORDR_USER_` are supplied, the locked `HKLM` value takes precedence. Two integration properties are not policy values: - `VORDR_NOASSOC`: set to any nonempty value to skip the `.vordr` file association; omit it to register the association. - `VORDR_AUTOSTART`: defaults to `1`, registering `HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\Vordr` (`"[INSTALLDIR]vordr.exe"`, starting minimized to the notification area); set to `0` (or uncheck **Start Vordr with Windows** in the interactive wizard) to leave startup manual. `make_msi.ps1` emits `LaunchCondition` guards that reject non-numeric or out-of-range public policy properties at install time (`verify_msi.ps1`), and verifies that both `bin\vordr.exe` and `bin\vordr-arm64.exe` are normalized release builds before packaging. At runtime, Vordr also clamps direct registry edits: | Value | Too high | Too low / zero | |---|---|---| | `PwMinLen` | 256 | **12** — the default, not 1 | | `PwMinClasses` | 4 | **3** — the default, not 1 | | `ClipSeconds` | 3600 | 0 is valid: never auto-clear | | `IdleLockMin` | 1440 | 0 is valid: no idle lock | | `PwVerifyDays` | 3650 | 0 is valid: no reminder | | `LogLevel` | **4** — clamped to `LOG_DEBUG` | 0 is valid: off | | `ui_scheme` | **6** — the default (`Gruvbox`); `0..2` light, `3..8` dark, `9` follow Windows | — | | `ui_backdrop` | **0** — the default (`Cut planes`); `0..15` GPU styles, `16` flat | — | | `ui_anim` | **0** — follow Windows | 0 is valid: follow Windows | | `TpmUnlockMode` | **0** — off (corrupt `HKLM` also fails closed to `0`) | 0 is valid: off | | `TpmMinMode` | **3** — Hello floor (corrupt `HKLM` also fails closed to `3`) | 0 is valid: no floor | | `TpmPinMaxAttempts` | 20 | **3** — the default, not 1 | | `PinMinLen` | 32 | **6** when 0; 4 when 1–3 | | the 0/1 values | any non-zero reads as 1 | — | `TpmUnlockMode = 2` (`TPM + PIN`) combines an Argon2id-stretched user PIN with dual-slot (`S0`/`S1`) pre-commit rotating TPM 2.0 Platform Crypto Provider state keys so `HKCU` registry snapshots cannot replay failed attempts and failed PINs do not trip OS-wide TPM dictionary-attack lockout counters. Because Mode 2 relies on Vordr's pre-commit state-key rotation rather than an OS-enforced TPM `SmartCardPin`, use `TpmUnlockMode = 3` (`TPM + Hello`, requiring both the Platform Crypto Provider TPM key and the user's Windows Hello FIDO2 PRF assertion via `webauthn.dll`, `tpmkat`) or master-password-only (`TpmUnlockMode = 0`) when defending against arbitrary same-user CNG callers; treat all TPM modes as local hardware-bound convenience paths rather than replacements for a strong master password. When `SecureUnlock=1` is enforced via `HKLM`, Vordr **fails closed** if private-desktop creation fails and refuses normal-desktop fallback (`secdeskkat`); when `SecureUnlock=1` comes from `HKCU` or the default, Vordr warns and requires explicit user confirmation before opening a prompt on the normal desktop. ### Example policy The following configures a longer password minimum, shorter clipboard/idle timeouts, session locking, and download-only attachments. Omitted settings remain user-configurable. ```bat msiexec /i vordr-1.1.1.msi /qn ^ VORDR_PWMINLEN=16 VORDR_PWMINCLASSES=4 ^ VORDR_SECUREUNLOCK=1 VORDR_CLIPSECONDS=10 VORDR_IDLELOCKMIN=5 ^ VORDR_LOCKONWINLOCK=1 VORDR_NOPREVIEW=1 VORDR_LOGLEVEL=2 ``` This is a configuration example, not a guarantee against local malware. ## Set policy without the MSI Group Policy Preferences, management software, or registry commands can set the same values. There is no bundled ADMX template. ```bat reg add "HKLM\SOFTWARE\Vordr" /v NoPreview /t REG_DWORD /d 1 /f /reg:64 reg add "HKLM\SOFTWARE\Vordr" /v ClipSeconds /t REG_DWORD /d 10 /f /reg:64 reg query "HKLM\SOFTWARE\Vordr" /reg:64 ``` Use `REG_DWORD` and the native 64-bit view (`/reg:64`). A 32-bit management process without `/reg:64` writes to `WOW6432Node`, which Vordr ignores. Writing a wrong registry type under `HKLM\SOFTWARE\Vordr` locks the setting to its safe compiled default and never falls back to `HKCU`. To remove one policy and return control to the user: ```bat reg delete "HKLM\SOFTWARE\Vordr" /v NoPreview /f /reg:64 ``` ## Vault path The `vault` value follows HKLM-over-HKCU precedence. It is intentionally not an MSI property: one literal path rarely suits every user. Use `REG_SZ` for a literal local path, or `REG_EXPAND_SZ` with one of the three trusted per-user folder prefixes—`%USERPROFILE%\`, `%LOCALAPPDATA%\`, or `%APPDATA%\`—anchored via `GetUserProfileDirectoryW` (`HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\\ProfileImagePath`). Vordr never calls `ExpandEnvironmentStringsW` or `SHGetFolderPathW` on `HKLM` policy values, preventing unprivileged edits to `HKCU\Environment` or `HKCU\...\User Shell Folders` from redirecting an administrator-pinned vault path (`polkat`). When `HKLM\SOFTWARE\Vordr\vault` is present, Vordr locks the active vault location (`g_vault_lock = 1`), disabling both the GUI vault-file picker and `--ro ` command-line vault overrides. Any unrecognized `%...%` variable, UNC path (unless `HKLM\SOFTWARE\Vordr\AllowUncVault = 1`), or overlong path under `HKLM` fails closed (`*locked = 1`) without falling back to `HKCU`. This elevated **PowerShell** example uses single quotes to preserve the literal percent signs: ```powershell reg.exe add 'HKLM\SOFTWARE\Vordr' /v vault /t REG_EXPAND_SZ /d '%USERPROFILE%\Documents\Vordr\vault.vordr' /f /reg:64 ``` Verify the resolved path in the unlock dialog after deployment. ## Registry inventory | Location | Data | Owner | |---|---|---| | `HKLM\SOFTWARE\Vordr` | Enforced settings and optional vault path | Administrator or MSI | | `HKCU\SOFTWARE\Vordr` | Preferences, `vault`, `ui_scheme`, `ui_pair_light`, `ui_pair_dark`, `ui_backdrop`, `ui_anim`, `ui_hotkey` | Vordr Settings/path handling | | `HKCU\SOFTWARE\Vordr\TPM-Unlock` | Per-vault wrapped key blobs | Vordr TPM enrollment | | `HKCU\SOFTWARE\Vordr\Rollback` | Per-vault save counters | Vordr | | `HKLM\SOFTWARE\Classes` | `.vordr` and `Vordr.Vault` registrations | MSI | The registry does not store the plaintext master password or record body, but it does contain paths, rollback state, and security-sensitive wrapped key blobs. Do not describe all registry data as non-sensitive. `ui_hotkey` honors HKLM precedence but lacks the same visible lock treatment as table-driven settings. A user can save a preference that is overridden next startup; avoid enforcing it without explaining that behavior. `PwVerifyNow` is a test-build-only reminder switch. `ui_layout` is not a current configuration option; older documentation describing design-switch experiments does not describe the present UI. ## File association The package registers: ```text .vordr → Vordr.Vault Vordr.Vault → Vordr vault Vordr.Vault\DefaultIcon → "\vordr.exe",0 Vordr.Vault\shell\open\command → "\vordr.exe" "%1" ``` Double-clicking a vault starts the import workflow. It does not replace the configured vault or import entries without unlocking, supplying the source password, and selecting entries. File content, not the extension alone, determines the accepted format. Uninstall removes the `Vordr.Vault` class and owned association values, but does not indiscriminately delete the entire `.vordr` key. Other applications may have registered data there. HKCU class registrations can shadow HKLM ones. The installer has no custom action to notify Explorer immediately of association changes. If testing shows stale behavior, check per-user overrides and refresh the Explorer session rather than assuming the registry write failed. ## Verify before deployment From the repository root: ```powershell powershell -NoProfile -ExecutionPolicy Bypass -File tools\verify_msi.ps1 -Msi bin\vordr-1.1.1.msi ``` The verifier reads MSI tables and evaluates component costing without installing. It checks public-property propagation, 64-bit registry components, conditional policy writes, live `LaunchConditions` numeric/coercion guards (within MSI `S255` limits), the 5-column `MsiLockPermissionsEx` table against `msi.dll`'s runtime SQL query, dual-architecture (`AMD64`/`ARM64`) costing and embedded PE payloads, quoted file paths, and upgrade/downgrade configuration. Administrative extraction (`msiexec /a`) is not a substitute for these checks. In an isolated test machine, also verify: 1. Install with only the intended properties; inspect HKLM and Settings locks. 2. Upgrade from the previous release, repeating those properties. 3. Confirm exactly one installed-product entry remains. 4. Test a vault path containing spaces and the import association. 5. Uninstall; confirm application-owned registrations are removed and vault/HKCU user data remains. 6. Confirm the installed executable matches the published executable hash.