Scope of this branch (wip/m4-updater): the updater engine of 04 §9, the agent methods update.check and
update.apply, the offline signing tool sd-updsign, and the tests. The Settings update group in the UI is a
later change; it uses the IPC described below. Design decisions taken here are recorded in 04 §9.7.
| Path | What |
|---|---|
src/sd_update/include/sd_update/sd_update.h |
public API: result codes, versions, keys, keyset and manifest types, state, transport, engine |
src/sd_update/update_verify.c |
pure part: strict manifest and keyset syntax, the signature chain, base64, dates, version compare |
src/sd_update/update_state.c |
last_serial.<channel>, last_verified.<channel>, keyset, roots, manifest.<channel> (atomic writes) |
src/sd_update/update_winhttp.c |
WinHTTP transport, every entry point resolved at run time; redirect allow list; size limits |
src/sd_update/update_engine.c |
check, stage, apply (setup run, file swap with rollback), flavour detection, staging cleanup |
apps/shelldrive-host/update_ipc.c |
update.check, update.apply, events, policy and settings reads |
tools/sd-updsign/sd-updsign.c |
offline signing tool (release pipeline only, never shipped) |
tests/unit/sd_update/ |
unit tests: pure verification, state, engine over a loopback server (sd-test-update.exe) |
The tool is built with the rest of the tree (build/<preset>/bin/Debug/sd-updsign.exe). It is not in any
installer and the product never calls it. Commands:
sd-updsign keygen --seed <file> [--pub <file>] new ed25519 key: prints "pubkey <base64>" and "key-id <16 hex>"
sd-updsign pubkey --seed <file> public key and key id of an existing seed file
sd-updsign sign-keyset --in <body> --root <seed> [--root <seed>] --out keyset.txt
sd-updsign sign-manifest --in <body> --key <seed> --out manifest.txt
sd-updsign hash --file <path> [--alg 256|512] "sha256:<hex>" for a `file` line
<body>is the unsigned text: it ends with LF and has nosigline. The tool appends onesig ed25519 <key-id> <base64>line per signer (keyset: one per root; manifest: one). The signed bytes are the domain string ofsd_update.hfollowed by the body.- Seed files hold 32 bytes as 64 hex digits. The production seeds are created and kept on the offline signing machine in an encrypted volume (04 §9.3); the root keys never touch a networked machine or CI. The tool writes the seed in clear text, so use it only on that machine or in a test directory.
- Release order (04 §12.3): sign the keyset with both current roots only when the roots change, otherwise with one root; sign the manifest with the channel key whose id the keyset lists for that channel; re-sign the current manifest of each channel every two weeks with a new serial (TM-R36).
- Manifest lines for an artifact:
file <id> <name> <size> sha256:<hex>(size in bytes, the digest fromhash).baselines are the download prefixes (HTTPS first, then the HTTP mirror), each ending with/. - Example (test-style, one root for brevity):
sd-updsign keygen --seed C:\secure\root-a.seed --pub C:\secure\root-a.pub
sd-updsign keygen --seed C:\secure\stable.seed
sd-updsign hash --file dist\ShellDrive-1.1.0-setup.exe
sd-updsign sign-manifest --in manifest.body --key C:\secure\stable.seed --out manifest.txt
- Settings (
settings.ini, 03 §3.4):[update] enabled,channel(stableorbeta),manifest_url(https or http). Machine values in%ProgramData%\LibreStatic\ShellDrive\settings.ini, user values in%APPDATA%\LibreStatic\ShellDrive\settings.ini, portable values in<exe dir>\data\settings.ini. - Policy (
HKLMwins overHKCU,Software\Policies\LibreStatic\ShellDrive):DisableUpdateCheck(DWORD),UpdateChannel,UpdateUrl(REG_SZ). - State:
%LOCALAPPDATA%\LibreStatic\ShellDrive\state\(per user),%ProgramData%\LibreStatic\ShellDrive\state\(per machine, read only for the agent), staging%LOCALAPPDATA%\LibreStatic\ShellDrive\updates\<version>\.
Proto stays 1. Additive changes only.
Methods:
| Method | Params | Reply | Notes |
|---|---|---|---|
update.check |
none | {enabled, reason?, available, channel, stale, version?, notes?, size?, file_id?, serial?} |
deferred (network). Disabled by policy or settings: enabled: false, reason policy or settings, no network |
update.apply |
{consent: true} |
{applied, state: "applied" or "up_to_date", version?} |
deferred. consent is required. Refused for portable installs and when disabled |
Errors (IPC codes, exit code in brackets): consent_required (1), update_disabled (1), busy (1),
update_verify_failed (17, existing), update_unavailable (1, no base reachable or redirect refused),
update_no_target (1), update_apply_failed (1), selftest_failed (17, existing).
Features in hello: update, update.check, update.apply (the Settings group is greyed out while they are absent).
Events (topic: every client that completed hello, like config.changed):
| Event | Data | When |
|---|---|---|
update.available |
{version, channel, notes, size, file_id} |
a verified manifest offers a newer version |
update.progress |
{stage: "downloading" or "applying" or "done" or "failed", version} |
during update.apply |
update.stale |
{days} |
a check failed and the last verified manifest is older than 14 days |
The M3 test that expected update.check to be absent was updated (tests/apps/test_agent_m3.c).
ctest --preset x64-modern-debug -R update -LE "matrix|bench|interop" runs sd-test-update.exe (34 tests). Fixtures are
made at test time by sd-updsign in a temporary directory (test keys only, removed afterwards). The engine tests run a
winsock server bound to 127.0.0.1 on an ephemeral port; no test connects anywhere else. The "new binaries" are copies of
sd-test-update-fakeapp.exe, whose --selftest (and /update) exit code is read from a selftest.code file next to it.
Covered: valid chain; manifest byte flip; wrong key (unknown key id); beta key on stable and stable key on beta; expired
keyset key; revoked key; expired manifest; freshness limits (30/14 days); serial rollback and same-serial-other-bytes;
channel mismatch; product mismatch; unknown format major; oversized manifest; sig line not last; keyset tampering;
keyset rollback; keyset signed by an unknown root; rotation with one root (refused) and both roots (accepted); per-channel
serials and the legacy migration; check, stage, apply and rollback in a temporary install directory; --selftest failure
restoring the old files byte for byte; HTTPS to HTTP fallback; redirect to a foreign host refused without connecting;
Content-Length above the manifest size; digest mismatch with nothing kept; setup exit code; staging cleanup.
- Release roots: no root public key is compiled into this build. The release build must add the two root keys and
the keyset current at build time (
installer/keys/, 04 §9.3); until then every verification fails closed (update_verify_failed). Thek_trusttable inupdate_ipc.cis the single place to change. - Bootstrap URLs: only the GitHub URL is the default. The HTTP mirror (
http://dl.<our-domain>/...) needs the domain (D30, an operational choice); until then, testers setmanifest_url. Themanifest_altslot exists for it. - Beta: there is no default beta manifest URL; a beta user sets
manifest_urlandchannel = beta. - Install mode: the agent always uses setup mode. MSI installs (
msi-<flavour>) and the detection of an MSI install are not implemented; the engine supports the mode. - Portable updates: check only. Unpacking a portable archive is not implemented (no zip reader in the product).
- Per-machine updates: the elevated stages of 04 §6.4 and §9.6 (admin-only copy, re-verification in stage 2) are the setup program's job and are not in the agent.
- Progress granularity: the events report stages, not byte counts.
- Trust state:
state\keysetandstate\rootsare trusted as local files (see 04 §9.7).
Developer notes for milestone M4 (installer). Decisions are in docs/design/04-build-install-update.md §6.10.
Components, all under apps/shelldrive-setup/ unless noted:
setup_core.h: public interface of the engine (sd_setup_core, static library, built in every preset).setup_args.c: command line, host detection, flavour choice, Dokany decision, version order, payload table lookup, CAB member-name rules.setup_cab.c: payload extraction throughcabinet.dllFDI (loaded from System32, memory source).setup_reg.c,setup_host.c,setup_shortcut.c,setup_log.c,setup_msg.c,setup_util.c: registration, running agents, Start menu shortcut, setup log, message formatting, helpers.setup_install.c: per-user install, repair, upgrade, portable and uninstall.setup_main.c,setup_ui.c/.h: the stub (shelldrive-setup-stub.exe, x86-ia32 preset only). The window is a minimal progress view behindsetup_ui.h; the frontend replaces it.packaging/registration.txt: registry rows, single source (also for the MSI later).tools/sd-payload/: attaches the payload CAB and thePAYLOAD_TABLEhash to the stub copy.l10n/installer/*.po: installer strings, six locales.tests/setup/:sd-test-engine.exe(24 tests, CTestunit.engine). CAB fixtures are made at run time withmakecab(traversal fixture has a..\evil.txtmember).
Build and test (worktree root, Visual Studio generator through the presets):
cmake --preset x86-ia32
cmake --build build/x86-ia32 --config Debug --target shelldrive-setup
ctest --test-dir build/x86-ia32 -C Debug -R "engine|importcheck.stub" --output-on-failure
Output: build/x86-ia32/bin/Debug/shelldrive-setup.exe (stub plus payload), shelldrive-setup-stub.exe (without
payload, the uninstaller's source), sd-test-engine.exe.
Tests never touch the real account: HKCU is redirected with RegOverridePredefKey to a test key
ShellDriveTest-<hex> under HKCU, and removed afterwards. Start menu shortcuts, hooks and running-agent signals
are switched off through skip_* options. Do not run the stub on a development machine to test installs: it
writes to the real account.
- FDI and multi-member CABs. FDI opens the cabinet more than once while it decodes. Every
pfnopenneeds its own read position. With one shared position the second reader hit the end of the payload and FDI reportedFDIERROR_CORRUPT_CABINETafter the first member. Single-member archives always worked, which hid it. - Installer detection. An executable whose name contains
setup,installorupdateis elevated by Windows unless its manifest saysasInvoker. The stub has that manifest; the test executable is namedsd-test-enginefor this reason. - Registry test key. A key created implicitly with a volatile option is volatile, and a non-volatile child of a volatile key fails with error 1021. The test key is created one level deep and non-volatile.
- Toolhelp and cabinet.dll are not on the XP floor list. They are resolved with
sd_setup_proc(run time), never imported. - Generated sources. The catalog helper generates into
build/<preset>/generated/l10n/$<CONFIG>; that works with the Visual Studio generator as is. - Lint-free C.
/W4 /WXplus_CRT_SECURE_NO_WARNINGSonly in build-time tools. UseStringCchPrintfW, not_snwprintf; avoidwcsstrin the stub (not on the IA32 ISA allowlist, so the ISA audit fails).
PAYLOAD_SIG: the payload table is not signed yet and the stub does not verify a signature (TM-R38). Needs the release keyset (04 §6.1, 04 §9.3).- Per-machine install: MSI build (WiX 3.14.1), the two elevation stages, and the
%ProgramData%\LibreStaticchecks (TM-R34)./permachinereturns the machine-unsupported message; administrators get per-user by default. - Dokany chaining: the
DOKANY_<ARCH>payload resource and the per-machine call. The decision function exists. /extract=admin copy (needs the MSI).- ARM64 stub (
arm64preset is not built here) and the ARM32 EXE. - Agent shutdown event:
shelldrive-host.exe agentdoes not createGlobal\com.librestatic.shelldrive.agent.shutdown.<SID>.<session>yet (03 §1.2). Until it does, the upgrade wait finds nothing to signal. - Hooks in M5:
webdav-tune,user-cleanup,modern-menu,programdata-securelog "not yet implemented". /removedata(remove settings on uninstall) is not implemented.- KnownDLLs and XP floor:
tests/os-imports/knowndlls.txtcomes from a Windows 11 capture; the XP SP3 and XP x64 captures (04 §11.4 lab) must confirm it. The ten Win32 1.0 names added toxp-sp3-x86.txtneed the same confirmation. - Frontend (done in
wip/r6-uisetup): the wizard pages insetup_ui.c(welcome, MIT license, mode, destination, Dokany, progress, finish, removal confirmation) are driven by the page flow insetup_flow.c. Plain Win32 controls, no comctl32. The all-users choice is shown disabled (SD_FLOW_MACHINE_AVAILABLE = 0), so the Dokany page is reached only throughshelldrive-setup-stub.exe /test-pages /permachineuntil the MSI lands. No language page: the language follows/langand the UI language order (03 §9.3). Hidden/test-pagesbuilds the pages, logs them and installs nothing.
Branch wip/m4-admx. Design references: 03 §3.5 (policy values), 04 §8.4 and §8.6 (ADMX/ADML, localization),
04 §12.2 (reproducible builds).
res/policy/policies.txtis the single source of the 21 policy values (03 §3.5), with@key Software\Policies\LibreStatic\ShellDrive.tools/sd-admxgen(build-time C, no third-party code) generates intogenerated/policy/:ShellDrive.admx,en-US,es-ES,fr-FR,pt-BR,it-IT,de-DEShellDrive.adml,sd_policy_ids.handsd_policy_table.h. The output has no timestamps or absolute paths.- Texts come from
l10n/policy/<lang>.po(domainpolicy, six locales, English in msgid ofen.po).sdl10n --check --domain l10n/policy(ctestl10n.policy_catalogs_complete) checks completeness, register and plurals. Keys are lower case (policy.<name>.title,.explain,.label,.opt.<value>), because sdl10n accepts[a-z0-9_.-]. - Deviation: the ADML is produced by
sd-admxgenand not bysdl10n(04 §8.6, C41 saysdl10n).sdl10nstill owns the completeness rules for the domain. Owners of the ADML format should confirm this. - The table has no decimal policy. The generator, the ADMX and the checks support
decimal(min and max); unit tests cover it, and the first decimal policy needs only a table line and six translations. supportedOn:SD_SUPPORTED_XP(Windows XP SP3 or later) for 20 policies,SD_SUPPORTED_WIN11forDisableModernContextMenu.- Enum types:
UpdateHostKeys,LegacyAlgorithms,LogPrivacyare REG_DWORD;UILanguage(en, es, fr, pt-BR, it, de) andUpdateChannel(stable, beta) are REG_SZ, as the readers expect.
src/sd_policy(sd_policy_get_dword,sd_policy_get_sz) reads HKLM then HKCU with the generated names and types. A value of the wrong registry type reads as absent. Nothing writes the registry.src/sd_l10n(UILanguage) andapps/shelldrive-host/explorer_data.c(DisableNetworkLocations) use it. TheUILanguagefallback changed slightly: an HKLM value of the right type is used even when it names an unknown language, so HKCU is no longer consulted in that case (the old code fell back to HKCU only when HKLM was absent or unparsable).tests/policy/check-raw-reads.ps1(ctestpolicy.no_raw_reads) fails when a source outsidesrc/sd_policycontains the key path or aL"<value name>"literal.
tests/policy/check-admx.ps1(ctestpolicy.admx_structure): XML well-formedness, the target namespace, the policies against the table (name order, class, key, valueName, supportedOn, enum items and their value types, text maxLength, decimal range), every category, definition, presentation and$(string.*)reference, unique ids and names, the six culture folders and the strings and presentations of each ADML. It does not validate against the PolicyDefinitions schema, which is not available offline.unit.admxgen(tools/sd-admxgen/test_admxgen.c): XML and C escaping, table validation (every rejected form), PO parsing (continuation lines, escapes, fuzzy entries, plurals), enum and decimal and boolean emission, the headers, and a full run over the real table and catalogs (21 policies).unit.policy(tests/unit/sd_policy): the table is complete and its kinds match the readers; type mismatches read as absent.
- Flags:
/Brepro(compile and link),/PDBALTPATH:<pdb name>,/Zi,/OPT:REF /OPT:ICF(Release) were already incmake/SdOptions.cmake, and nothing was added. No shipping source uses__DATE__,__TIME__,__TIMESTAMP__or__FILE__. tools/check-repro.ps1 -Preset <preset> [-Config Release] [-KeepBuilds]builds the preset twice (build\repro-a,build\repro-b) from one source tree mapped withsubstto a free drive letter, and compares the PEs (bin\*.exe,bin\*.dll), the static libraries (lib\*.lib) andgenerated\policy\**byte for byte. PDBs are not compared.- ctest
repro.x64-modernandrepro.x86-ia32(labelrepro). They are excluded from the default run intools/ci-local.ps1(-LE 'matrix|bench|repro') and from the commands in this file.
RESULTS_PLACEHOLDER
cmake --preset x64-modern
cmake --build --preset x64-modern-debug
ctest --preset x64-modern-debug -LE "matrix|bench|interop|repro"
powershell -ExecutionPolicy Bypass -File tools\check-repro.ps1 -Preset x64-modern
powershell -ExecutionPolicy Bypass -File tools\check-repro.ps1 -Preset x86-ia32
Per-machine MSI packages (04 §8; decisions and open items in 04 §8.7). Opt-in: -DSD_BUILD_MSI=ON, then
cmake --build build/<preset> --target msi (WiX 3.14 at WIX or C:\Program Files (x86)\WiX Toolset v3.14). Output:
build/<preset>/msi/<Config>/ShellDrive-<MAJOR.MINOR.PATCH>-<flavour>.msi with every language transform embedded.
| Path | What |
|---|---|
packaging/msi/ShellDrive.wxs |
the package for every flavour (defines from build-msi.cmake), the ShellDriveUI dialog set (WixUI_Common dialogs, feature tree, options page), features, hooks |
packaging/msi/build-msi.cmake |
one flavour: sd-msigen, candle, light (ICE), torch per language, sd-msiembed |
packaging/msi/CMakeLists.txt |
the msi target, per-flavour table (family, platform, UpgradeCode, launch condition) |
tools/sd-msigen/ |
GUIDs, Registry.wxi from packaging/registration.txt, .wxl from the msi.* entries of l10n/installer |
tools/sd-msiembed/ |
embeds a language transform under its LCIDs through msi.dll and updates the Template summary |
packaging/msi/wixui/ |
WixUI string overrides, one complete WixUI_<culture>.wxl per culture (es-es voseo, de-de du, it-it informal), and dialog-set.txt (the 212 WixUI ids the package shows) |
tests/msi/ |
sd-test-msi: tables (package contents, transforms with the language check) and admin (msiexec /a); check-wixui.cmake (msi.<flavour>.wixui: every id of dialog-set.txt in every override, Spanish register lint) |
Checks: ctest -L msi (after the msi target). Light runs ICE validation on the base package; the suppressions and
their reasons are in 04 §8.7. Strings for the installer are in l10n/installer (the msi.* entries; the lowercase dotted
msgctxt is the id, the WiX id is its PascalCase form, for example msi.feature.core.title is FeatureCoreTitle).
WixUI strings: the stock WixUI_<culture>.wxl of the WiX SDK is not edited. build-msi.cmake passes an override
packaging/msi/wixui/WixUI_<culture>.wxl to light before the stock file when it exists (light takes the first definition
of an overridable string). fr-fr and pt-BR have no override:
the stock French ("vous") and Brazilian Portuguese ("você") text already follows the register. The ids of the dialog set
were taken from the built package: every WixUI loc.* reference of the Control, Dialog, RadioButton and UIText tables.
To rebuild the list, replace each WixUI string with a marker in a copy of WixUI_en-us.wxl, light the English package
with it and read the @@ markers back from the tables (WindowsInstaller.Installer); overrides are then regenerated.
Dialog set (ShellDriveUI, 04 §6.7 and §8.7): the flow of WixUI_FeatureTree on the stock WixUI_Common dialogs, with
OptionsDlg after the customize page. Maintenance (Change, Repair, Remove) comes from the maintenance dialogs of the same set.
ARPNOMODIFY is 0, set explicitly (Property table checked with WindowsInstaller.Installer), so "Change" is offered and
runs the feature tree and the options page. The install folder is no longer configurable in the dialogs (no
ConfigurableDirectory). The license page shows the repository LICENSE, converted to RTF by build-msi.cmake (candle gets
-dSD_LICENSE_RTF). The DOKANY and ENABLELINKEDCONNECTIONS checkboxes are bound to SD_UI_DOKANY and SD_UI_ELC
(CheckBoxValue="1"), not to the public properties, which have no default (empty = not given).
Remembered choices (04 §8.7): C_Installer (always installed, Core) writes HKLM\SOFTWARE\LibreStatic\ShellDrive\Installer
with DOKANY, ENABLELINKEDCONNECTIONS and ELC_OWNED. Each run reads them with RegistrySearch (SD_REG_*, RegLocator
rows). The init rows (SetSD_UI_DOKANY, SetSD_UI_ELC, SetSD_UI_INIT, after AppSearch) take the command line first, then
the stored value, then the default, once per run; the state rows (SD_DOKANY_STATE, SD_ELC_STATE, SD_ELC_WRITE) come before
CostInitialize. C_Ini_Backend follows SD_DOKANY_STATE ([backend] dokany = no when 0), so settings.ini and the registry
agree. The SD_PRODUCT_DATA, SD_DOKANY_INI (IniFileSearch) and SD_ELC_EXISTS-only preselection of the earlier draft are gone.
ELC ownership: C_LinkedConn is installed only when SD_ELC_WRITE = 1 (wanted, and the value does not exist or ELC_OWNED
is 1). ELC_OWNED records what the package wrote, so uninstall (which removes an installed keypath value) removes it only when
this package created it. A value that exists and is not ours is never written, changed or removed.
Checks: msi.<flavour>.tables covers the Property defaults, ARPNOMODIFY, the RegLocator/AppSearch rows, the C_LinkedConn
and C_Ini_Backend conditions, the C_Installer values and the sequence order.
The strings of the options page are msi.options.* in all six catalogs of l10n/installer (WiX ids OptionsTitle,
OptionsDokanyCheckbox, ...); the WixUI ids of the set are in the overrides, and dialog-set.txt lists them.
Open items: DEFAULTPROFILES (no MSI MoveFile authoring in WiX 3.14), programdata-secure runs after InstallFiles, hook
rollbacks not authored, SERVICE/SERVICESTART with the service (M5), timestamps in the summary
information (12.2). Lab checks of the installed behaviour (11.4): the Installer key on install, Change, repair and uninstall; the
ownership rules with a pre-existing EnableLinkedConnections value; the options page. The Dokany driver is not installed or
removed by the MSI (setup does that).
Audit of the M4 installer backlog (docs/dev/handoff-backend.md, "M4 — backend parts") against the tree. Status: Done =
implemented and checked (here or in CI); Partial = some of it exists, the rest is open; Missing = not in the tree;
Blocked = needs the lab, a certificate, or a design decision. Paths are relative to the repository root.
| # | Backlog item | Status | Where / evidence |
|---|---|---|---|
| 1 | Setup engine: CAB payload through cabinet.dll FDI, flavour choice by CPU and OS, per-user, portable, repair, uninstall |
Partial (per user and portable done; machine mode missing) | apps/shelldrive-setup/setup_*.c; tests/setup (sd-test-engine, 37 tests pass) |
| 2 | Stub flavours: x86-ia32, x86-sse2, x64-xp, x64-modern, ARM64 and ARM32 stubs |
Partial | Stub built by x86-ia32 (importcheck and isacheck pass). ARM stubs are built by their presets; they cannot run here (04 §11.4). |
| 3 | Per-machine install through the MSI | Missing | apps/shelldrive-setup/setup_main.c refuses SD_SETUP_MODE_MACHINE (MACHINE_UNSUPPORTED); /extract= is refused too. |
| 4 | Two-stage elevation (04 §6.4): runas relaunch, stage 1, stage 2 (/elevated-child), pipe |
Missing | No runas, hidden switch or pipe in setup_main.c or setup_args.c. Building blocks are in row 7. |
| 5 | DLL search rules (TM-R33), KnownDLL-only imports | Done | restrict_dll_search in setup_main.c; ctest importcheck.stub.knowndlls, importcheck.shelldrive-setup-stub, isacheck.shelldrive-setup-stub pass on x86-ia32. |
| 6 | Owner and link checks of %ProgramData%\LibreStatic\ShellDrive (TM-R34) |
Partial (was Missing in the setup engine) | The check is the service's apps/shelldrive-host/svc_repair.c and svc_folder.c (tests unit.svc), now also compiled into sd_setup_core (apps/shelldrive-setup/CMakeLists.txt). Wrapper: apps/shelldrive-setup/setup_trust.c (sd_setup_secure_programdata, logs setup.programdata_untrusted). Test: setup_programdata_trust. The machine install path that would call it is still missing. |
| 7 | Stage folder with its protected DACL in one CreateDirectoryW call (04 §6.4 stage 1, step c) |
Partial | sd_setup_create_stage_dir in setup_trust.c; test setup_stage_dir_fresh_names. Not wired: there is no stage 1. |
| 8 | Dokany decision table (04 §7.3) | Done for the decision; chaining Partial | sd_setup_dokany_decide in setup_core.h; the wizard option is setup_flow.c. |
| 9 | Dokany chaining after the dokan2.dll VC++ check (C31, D32) |
Partial | apps/shelldrive-setup/setup_dokany.c: PE import reader for vcruntime140* and msvcp140*, chain choice (MSI, BUNDLE, UNAVAILABLE), command lines, run gate with an injected runner. This build injects none, so nothing starts. Tests: setup_dokany_* (5 tests). Missing: installer/dokany/dokany.lock (pins, signer), a production runner, the post-install dokan2.dll load check (shelldrive-host --selftest), and the [lab-verify] items of 04 §7.1 and §7.3 (dependency per architecture, bundle switches, signer name). |
| 10 | REMOVESECRETS |
Done in the MSI; lab check pending | packaging/msi/ShellDrive.wxs: property (REMOVESECRETS = 1), removal conditions. The keep-secrets check of the install smoke (04 §11.2) is not run. |
| 11 | DEFAULTPROFILES (C9) |
Missing | ShellDrive.wxs: accepted and ignored (WiX 3.14 has no MoveFile element; 04 §8.4 open item). |
| 12 | WiX MSIs for x86-ia32, x86-sse2, x64-xp, x64-modern |
Done (build and msiexec /a checks); install lab pending |
packaging/msi/CMakeLists.txt (flavour table), build-msi.cmake, tests/msi (msi.<flavour>.tables, .admin, .wixui). |
| 13 | ARM64 MSI | Blocked (missing) | packaging/msi/CMakeLists.txt refuses SD_BUILD_MSI on ARM presets: the MSI tools run on the x86/x64 host. Needs a cross-tree msi target (04 §8, M6). |
| 14 | ARM32 MSI (D31) | Blocked (missing) | No ARM32 row in the flavour table; same reason as row 13. |
| 15 | Language transforms for every LCID (C43) | Done | tools/sd-msiembed, l10n/installer/*.po (six locales), msi.<flavour>.tables. |
| 16 | WixUI overrides and the dialog set | Done | packaging/msi/wixui/ (es-es voseo, de-de du, it-it informal), tests/msi/check-wixui.cmake (msi.<flavour>.wixui). |
| 17 | ADMX and ADML generated from the policy table (03 §3.5) | Done | res/policy/policies.txt, tools/sd-admxgen, l10n/policy. Run here (x86-ia32 debug): unit.admxgen, unit.policy, policy.admx_structure, policy.no_raw_reads, l10n.policy_catalogs_complete pass. |
| 18 | Sparse MSIX build switch (D27) | Missing | No packaging/msix, no SD_SPARSE_MSIX option in CMake. Shipping also needs the certificate (D27). |
| 19 | Reproducible-build check (04 §12.2) | Done (not run in this change) | tools/check-repro.ps1; ctest repro.*, excluded from the default run. |
| 20 | Release pipeline (04 §12.3, §11.2) | Partial | .github/workflows/ci.yml pins its actions by SHA (done). New .github/workflows/release.yml skeleton: input and gate checks, build matrix, check-repro, binary upload. The package and finalize jobs stop with an error. Missing: installer/ (keys, release-gates.txt, dokany.lock), tools/sd-release, resign.yml, CODEOWNERS, the workflow-lint job, the signed-tag gate and the tag trigger. |
| 21 | Two offline signing sessions (D42) | Missing (manual steps only) | release.yml: signing-session-1 and signing-session-2 are approval gates with the checklist, no secrets, no signing in CI. sd-release verify and sign do not exist. |
| 22 | PAYLOAD_SIG and signed payload tables (TM-R38) |
Missing | Open item 1 of the M4 setup notes. |
| 23 | Installer hook programdata-secure (TM-R34) |
Done in the hook; order Partial | apps/shelldrive-host/installer_hooks.c now runs svc_repair_data (host builds svc_repair.c too). Open: CA_ProgramDataSecure is scheduled After="InstallFiles" in packaging/msi/ShellDrive.wxs, but TM-R34 needs the check before any ProgramData write. The other hooks still log "not yet implemented (M5)". |
| 24 | Updater engine (04 §9) | Done (engine); MSI install detection missing | Section "Updater engine" above. |
apps/shelldrive-setup/setup_trust.c|h: TM-R34 wrapper, common AppData lookup, stage folder creation.apps/shelldrive-setup/setup_dokany.c|h: VC++ dependency check ofdokan2.dll(read-only PE parse, fails closed), chain choice, command lines, run gate. No process is started by the engine in this build.apps/shelldrive-setup/CMakeLists.txt:sd_setup_corecompilessvc_folder.candsvc_repair.cfromapps/shelldrive-host(one source, not a copy) and linkssd_base.apps/shelldrive-host/installer_hooks.candCMakeLists.txt:programdata-secure --applyruns the repair.tests/setup/test_trust.c,tests/setup/test_dokany.c,tests/setup/main.c,tests/setup/CMakeLists.txt: 7 new tests..github/workflows/release.yml: skeleton, fails closed (see row 20).
Verification (x86-ia32 debug, sd-test-engine, stub import and ISA audits, unit.admxgen, unit.policy,
policy.*): see the final gate run in the commit message.
- Per-machine install: the MSI call, the two elevation stages (runas, pipe, stage 2), and the wiring of rows 6, 7 and 9.
- Move
CA_ProgramDataSecurebeforeInstallFiles(or check ProgramData first in the setup engine). - Dokany:
installer/dokany/dokany.lock, the production runner (MSI and bundle), the post-install check, the lab items. DEFAULTPROFILES(MSI MoveFile authoring or a custom action),/extract=,/removedata.- ARM64 and ARM32 MSI: a cross-tree
msitarget that takes ARM binaries from another build directory. - Release:
installer/keys and records,tools/sd-release, signed tag gate,resign.yml,CODEOWNERS,workflow-lint. - Sparse MSIX (D27) build switch.
- Lab checks: install smoke,
REMOVESECRETS, Dokany and XP import captures (04 §11.4).
Second pass on the round 15 audit above: rows 3, 4, 6, 7, 11 and 23 (and their open items 1, 2 and 4 of that section). Paths are relative to the repository root. Status words as in the audit table.
| # | Backlog item | Status | Where / evidence |
|---|---|---|---|
| 3 | Per-machine install through the MSI | Partial | apps/shelldrive-setup/setup_main.c (run_machine): /permachine starts the two stages and reads their result. Open: the MSI is not yet a member of the payload CAB (the release pipeline adds it), so stage 2 stops with installer.error.msi_missing today; the wizard's all-users choice stays disabled (SD_FLOW_MACHINE_AVAILABLE = 0); /extract= and the per-machine uninstall are not in this pass. |
| 4 | Two-stage elevation (04 §6.4) | Done in the engine; lab pending | `apps/shelldrive-setup/setup_elevate.c |
| 6 | Owner and link checks of %ProgramData%\LibreStatic\ShellDrive (TM-R34) |
Done for the machine path | Stage 1 runs sd_setup_secure_programdata before any stage folder exists; stage 2 checks its folder for a reparse point and a trusted owner (svc_repair_real_ops). |
| 7 | Stage folder with its protected DACL (04 §6.4 stage 1, step c) | Done | sd_setup_create_stage_dir is called by stage 1. A successful stage removes its folder; a failed one keeps the MSI log (admin-only). |
| 11 | DEFAULTPROFILES (C9) |
Done (authored); install lab pending | packaging/msi/ShellDrive.wxs: a CustomTable named MoveFile (copy, *.ini, source property DEFAULTPROFILES, destination SD_CAD_PROFILES) and component C_DefaultProfiles. WiX 3.14 has no MoveFile element; the custom table must sit directly in Product (in a fragment light drops it). Checked by msi.x86-ia32.tables. |
| 23 | programdata-secure before any ProgramData write (TM-R34, TM-R35) |
Done | CA_ProgramDataSecure now runs from the BIN_ShellDriveHost Binary entry (BinaryKey), because the installed copy does not exist before InstallFiles. It is scheduled Before="MoveFiles" (and so before InstallFiles), and MoveFiles follows it. Runs again on repair (TM-R35). Checked by msi.x86-ia32.tables. |
Design decisions taken in this pass:
- Pipe protocol: one UTF-16 line per message:
P <percent>,M <msg id> <code>,R <exit code>(last). The server end is nonblocking, so a stage that never connected cannot hang the parent. The parent reads the pipe after the stage has exited; live progress in the window is not done yet. - Stage 2 takes no path from the command line. The forwarded switches are the sanitised set of
sd_setup_elev_forward(quiet, passive, norestart, force, update, dokany, lang, flavour and the validatedPROPERTY=valuetokens, quoted)./log=and/installdir=are not forwarded; the MSI log ismsi.login the stage folder. PROPERTY=valuetokens are now kept (sd_setup_args.props), each quoted, and reach msiexec unchanged. A token with a double quote is refused.- Stage 2 checks the payload table hash of its own image before extraction, as the user path does. Hashes of the members after
extraction are not checked: the payload has no member manifest yet (TM-R38,
PAYLOAD_SIG). - Four new installer messages (
installer.error.elevation,.stage_untrusted,.msi_missing,.msi_failed) in all six catalogs ofl10n/installer. CA_ProgramDataSecuremoved fromAfter="InstallFiles"toBefore="MoveFiles".MoveFilesis the default MSI step (beforeInstallFiles), so the hook also precedesInstallFiles.
Verification (x86-ia32 Release, ctest -C Release): unit.engine (sd-test-engine, 52 tests, 15 new), importcheck.shelldrive-setup-stub, isacheck.shelldrive-setup-stub, importcheck.stub.knowndlls and the setup stub test-page checks pass; with -DSD_BUILD_MSI=ON, msi.x86-ia32.tables, .admin and .wixui pass (msiexec /a admin image only).
Open items after this pass:
- Put
ShellDrive.msiinto the payload of each flavour (cmake/SdPayload.cmake,tools/sd-payload; the MSI needs WiX, so the payload step must follow themsitarget). Until then/permachinereportsinstaller.error.msi_missing. - Live progress in the parent window; copy the stage log to the user's
/log=path. - Per-member SHA-256 manifest for the post-extraction check, together with
PAYLOAD_SIG(TM-R38). - Wizard: the all-users choice and its options page (
SD_FLOW_MACHINE_AVAILABLE), so interactive per-machine installs show the pages. - Per-machine uninstall through the same two stages, and
/extract=. - Lab checks (04 §11.4): UAC prompt and the XP Run As dialog, the pipe under a split token, the stage folder DACL, msiexec install, Change, Repair and Remove, and the ProgramData hook order.
- CI note: the required gate's
-TestRegex 'setup|msi|l10n|importcheck|isacheck'does not match the CTest nameunit.engine, so the 52 engine tests run only withctest -R engine(or-R unit). Addengineto the regex in the release gate.
Scope: open items 1 and 6 of the audit above in part (PAYLOAD_SIG, the release tool, the nightly and the workflow
lint). Rows 20 to 22 of the table move as follows.
| # | Item | Status now | Where / evidence |
|---|---|---|---|
| 20 | Release pipeline | Partial (unchanged) | release.yml still stops at package and finalize; its header says sd-release is missing, which is no longer true. The workflow-lint job is in ci.yml and nightly.yml. |
| 21 | Two offline signing sessions (D42) | Partial | sd-release session writes SESSION.txt with the file hashes and the digest of the signed message; sd-release sign and verify do the signing and the checks. The steps stay manual (no signing in CI). resign is missing (see open items). |
| 22 | PAYLOAD_SIG and signed payload tables (TM-R38) |
Done in the stub; the keyring and the package step are open | `apps/shelldrive-setup/setup_payload_sig.c |
PAYLOAD_TABLEmust start with the magic lineshelldrive-payload-table 1, thenproduct com.librestatic.shelldriveandchannel stable|beta, then the flavour lines. LF endings, printable ASCII, at most 4096 bytes.PAYLOAD_SIGis one linesig ed25519 <key id, 16 hex> <signature, 88 base64>+ LF (118 bytes, canonical base64).- The signed bytes are
com.librestatic.shelldrive payload table v1\n|| the table bytes (domain separation). - The key ID is the first 8 bytes of SHA-256 of the public key. The key must be in the keyring compiled into the stub,
not revoked, inside its validity dates (Unix seconds, inclusive), and for the table's channel; the build's channel is
SD_SETUP_BUILD_CHANNEL(defaultstable). - Any failure returns a refusal with
SD_MSG_INSTALLER_ERROR_PAYLOAD_DAMAGED. Fail closed. - The keyring is
apps/shelldrive-setup/setup_keyring.inc. The repository holds only a revoked placeholder, so the stub refuses every payload until the release pipeline generates the file frominstaller/keys/keyset.txt. sd_setup_corenow linkssd_payload_sig(sd_crypto only).shelldrive-setup-stub.exestill passesimportcheck.stub.knowndllsandisacheckonx86-ia32.
- The payload domain string
com.librestatic.shelldrive payload table v1\nand the table header lines are new. The spec says "domain-separated" and gives no string. The manifest and keyset strings are the ones ofsd_update.h. SHA256SUMS.sigsignscom.librestatic.shelldrive sha256sums v1\n|| the file (the spec does not give a domain).- A manifest spec may use CR LF line ends (files saved on Windows); the body written is LF only.
sd-payloadgets--channeland--sig. Without--channelit writes the legacy table, which the stub refuses; the package step therefore must pass both (not done:cmake/SdPayload.cmakestill calls it without them).- Stub failures reuse the message
PAYLOAD_DAMAGED. A dedicated "signature" message needs all six locales (AGENTS.md) and was not added here.
Commands: hash, sums, table (one flavour per setup EXE), check-table (table against the rebuilt CAB), manifest
(unsigned body: file lines hashed from a directory; the TM-R36 limits are enforced: stable at most 30 days, beta at
most 14 days from released to expires), sign (body + sig line, or the sig line alone with --sig-only; a manifest
is parsed with sd_upd_manifest_parse before it is written), verify (checks the sig and the key ID; a manifest is
parsed in full), pubkey, session (SESSION.txt for the offline sessions). No network code; no key in the tree.
sd-updsign (earlier, from the update work) overlaps sign and verify; merge or retire one of them.
Test: tests/release/release_flow.cmake (ctest release.flow, label release). It generates two TEST seeds in the script,
runs every command, and checks the expected exit codes: a tampered table or manifest, a beta key on a stable signature,
a sums signature used as a payload signature, a body without its final LF, a stable manifest with 67 days, a beta
manifest with 15 days, and a file name with a separator are all refused. Passing on x86-ia32.
.github/workflows/nightly.yml:fuzz(14 targets, 600 s each, scratch corpus copy, crash upload) andct(SD_CT_TIMING=ON,sd-ct-dudect, x86-ia32 and x64-modern). Details and deviations:docs/dev/m6-notes.md.tools/check-workflows.ps1(workflow lint, TM-R39/TST-32), also a job ofci.yml. It passes on the current tree with one warning (no CODEOWNERS).
installer/keys/(root public keys,keyset.txt) and the generatedsetup_keyring.inc. Until then no payload verifies.cmake/SdPayload.cmakeand thepackagejob: pass--channeland--sigtosd-payload, with the signature made by session 1 of 2 (sd-release sign --kind payload --sig-only).- No test of the positive path through the stub's resources (
sd_setup_payload_sig_checkwith a realPAYLOAD_SIG). The pure verifier is tested with generated keys; the resource wrapper is tested only for the refusal path. sd-release resign(stable re-signing with a new serial andexpires, TM-R36) is not written.- Stage 2 checks of 04 section 12.3 step 7 (
signtool remove /s, removal ofPAYLOAD_SIG, comparison with the rebuilt EXE) are not in the tool. release-gates.txt(r21, done): the format is defined in 04 section 12.3.sd-release gates checkvalidates it,signrefuses without a passing record,release.ymljobcheck-gatesruns the check, andtests/release/gates_flow.cmakecovers it (release.gates). The record file itself,installer/keys/release-gates.txt, is not written: it is the maintainer's record for a release, so the release job fails until it exists.- CODEOWNERS: the owner handle is the maintainer's decision; the lint reports it as a warning.
release.yml: the finalize gate still stops; update it when the steps above exist.
Scope: open items 1, 2, 4 and 5 of the r16 section above, and /extract= (04 section 6.5). Per-machine uninstall is not done
(see open items). Paths are relative to the repository root. Verified by the required gate (ci-local, presets x86-ia32,
x64-modern, x64-analysis, -TestRegex 'setup|engine|msi|release|l10n|importcheck|isacheck'): 51, 34 and 32 tests pass.
| # | Item | Status now | Where / evidence |
|---|---|---|---|
| 3 | Per-machine install through the MSI | Done in code; install lab pending | setup_main.c (run_install, run_machine_elevated), setup_elevate.c (sd_setup_elev_parent_ex). The MSI is a CAB member (see packaging below). |
| 4 | Two-stage elevation | Done in the engine; lab pending | Progress is relayed live now (below). Tests tests/setup/test_elevate.c: setup_elev_parent_relays_progress, setup_elev_stage1_copies_the_stage_log. |
| 11 | DEFAULTPROFILES |
unchanged | packaging/msi/ShellDrive.wxs |
| 22 | PAYLOAD_SIG |
Done in the stub; the package step still open | cmake/SdPayload.cmake passes --sig when SD_PAYLOAD_SIG names a file. |
CMakeLists.txt: theSD_BUILD_MSIoption andpackaging/msiare now added beforeapps/shelldrive-setup, so the stub's payload can name the MSI target and file (SD_MSI_PACKAGE).cmake/SdPayload.cmake: withSD_BUILD_MSIthe CAB gets the memberShellDrive.msi(the stage 2 path, 04 section 6.4).sd-payloadalways gets--channel ${SD_SETUP_CHANNEL}(cache, defaultstable), and--sig ${SD_PAYLOAD_SIG}when the cache FILEPATH is set (empty by default: the stub then refuses the payload, as before).apps/shelldrive-setup/CMakeLists.txt:SD_SETUP_BUILD_CHANNELis compiled intosd_payload_sigfromSD_SETUP_CHANNEL.- Without
SD_BUILD_MSI(the gate does not build the MSI) the CAB has no MSI and stage 2 reportsmsi_missing, as before. - The
packagejob ofrelease.ymlstill stops with its error (it also needs the Dokany lock and the signing sessions).
setup_flow.h:SD_FLOW_MACHINE_AVAILABLEis 1. The mode page enables the all-users radio (setup_ui.c)./permachineskips the mode page; the Dokany page follows the all-users choice;/permachinewith/passiveshows the progress view only.run_installis now the one entry for every mode. The payload and its signature are checked before any page. An all-users choice (interactive or/permachine) runssd_setup_elev_parent_exwith the progress view of the parent.sd_setup_elev_parent_ex: stage 1 starts on a worker thread. The parent polls the pipe every 100 ms, reports each newP <n>line to the progress callback, and pumps the window on each tick (SD_SETUP_ELEV_TICK).MandRlines are read at the end, not live.sd_setup_elev_parentis the same call without a callback.- The status line shows no text during the elevated stages (the bar only). Launch is not offered after an all-users install, because the parent does not know the MSI folder.
/log=: the parent gives the path to stage 1 only, as/log=on the stage 1 command line (stage 2 never gets a path). After stage 2, stage 1 copiesmsi.logof the stage folder to that path. The target must be an absolute drive path of a.logfile, with no.., in an existing folder that is not a reparse point; an existing target must be a plain file (it is replaced). Anything else is refused and logged (elevate.log_refused).installer.error.payload_signature(new, all six catalogs, appended at the end of each.po): used when the release signature of PAYLOAD_TABLE fails. Table failures keepinstaller.error.payload_damaged.
run_extract(setup_main.c):/extract=<dir>extracts the payload into a fresh folder under %TEMP%, copiesShellDrive.msito<dir>\ShellDrive.msi(replacing an existing file), and removes the temp folder. No elevation. A payload without the MSI fails withmsi_missing. Not covered by a test in this pass.
setup_install.c(stage_and_place) deletesShellDrive.msifrom the staging tree, so the MSI never lands in a per-user or portable folder.
The gate command above includes engine, so unit.engine (51 tests in the gate run, 52 in the engine count) runs in the
required gate. No workflow in .github/workflows/ passes TestRegex, so the main CI runs every test. The statement in the
r16 section that the gate misses unit.engine is superseded by this note.
tests/setup/test_flow.c: the all-users choice is enabled; "all users chosen on the mode page" flow.tests/setup/test_elevate.c:setup_elev_parent_relays_progress(progress callback sees 40 fromP 10,P 40) andsetup_elev_stage1_copies_the_stage_log(a.logtarget is written; a.txttarget and a..path are not).
- Per-machine uninstall (04 section 6.7):
setup /uninstallwith the two stages andmsiexec /xon the stage MSI, and/uninstallplus/permachineparsing. Not started. - The stage status text is empty;
Mlines are not shown live; closing the progress window does not cancel the stage. - Launch after an all-users install (needs the MSI install folder from the parent or the stage).
- Log copy race: the target folder is checked, then written; a junction swapped into a parent path between the two is not excluded. Needs review (TM-R33 class).
release.ymlpackagejob andSD_PAYLOAD_SIGfrom signing session 1 (sd-release sign --kind payload --sig-only). Nothing signed here.- Lab checks (04 section 11.4): UAC and XP Run As, progress relay under runas, msiexec install, Change, Repair and Remove.
- No test yet for the MSI exclusion in per-user installs or for
/extract. - The Dokany chain still does not run (unchanged).
- No path reaches an elevated stage: the parent does not pass /log= on the stage 1 command line, and stage 1 copies nothing. The stage folder keeps its protected DACL (SYSTEM and Administrators), so the unelevated parent cannot read msi.log there.
- The log travels over the result pipe, whose DACL is the current user only. Stage 2 sends after msiexec, before the R line:
G(opens the block), thenL <hex>lines of 1 to 64 bytes of msi.log (lowercase hex, 130 UTF-16 units at most), an optionalT(the log was cut at SD_ELEV_LOG_CAP = 4 MiB, only the first 4 MiB are sent), and the R line that ends the stage. - The parent drains the pipe as bytes (UTF-16LE lines), and treats the block as data only: it never reads a path or a command from it. Control lines (P, M, R) keep their meaning. A second G, an L line outside a block, bad hex, an odd length, a line over the buffer, or more than the cap sets "bad": nothing is written and the event elevate.log_malformed is logged. The install result is not changed by the log.
- With a good block the parent writes the bytes to /log= itself, with its own token, CREATE_ALWAYS, after the same target checks as before (absolute drive path, .log, no parent-folder component, existing folder not a reparse point, existing target a plain file). Events: elevate.log_written, elevate.log_truncated (block had T), elevate.log_refused, elevate.log_failed, elevate.log_absent (no block: the stage failed before msiexec, or an older stage).
- elevate.log_not_copied is gone. Tests (tests/setup/test_elevate.c): setup_elev_parent_writes_the_relayed_log, setup_elev_parent_truncated_block_is_written, setup_elev_parent_malformed_block_writes_nothing, setup_elev_parent_oversized_block_writes_nothing (4 MiB + 64 bytes), setup_elev_stage2_sends_the_stage_log, setup_elev_stage1_keeps_the_stage_log_in_the_stage.
- Open: the cap is 4 MiB of raw log; a longer msi.log is truncated, not refused. Throughput is limited by pipe round trips (the parent drains without waiting while data keeps coming).
Scope: the four open items of the r17 section that this branch took on (per-machine uninstall; launch after an all-users install; the 32-bit shell registration; empty keys left by the per-user removal). Paths are relative to the repository root.
| # | Item | Status now | Where / evidence |
|---|---|---|---|
| 1 | Per-machine uninstall through the two stages (04 6.7) | Done in code; lab pending | setup_main.c (is_machine_uninstall, run_uninstall), setup_elevate.c (sd_setup_elev_stage2_uninstall), setup_reg.c (sd_setup_machine_product) |
| 2 | Launch after an all-users install | Done in code; lab pending | setup_elevate.c (sd_setup_elev_launch_installed), setup_main.c (launch_installed_ui) |
| 3 | 32-bit view of the shell extension in the x64 MSI | Not done: the x86 shell DLL does not ship (see below) | packaging/msi/build-msi.cmake, cmake/SdPayload.cmake |
| 4 | Empty CLSID, InprocServer32 and shellex keys left by the per-user removal | Done; checked by the install round trip | setup_reg.c (row_is_product_key), tests/setup/test_install.c |
- Detection (
is_machine_uninstall, before any page or copy): the machine registry holds the ShellDrive MSI (sd_setup_machine_product: a braced GUID Uninstall key withDisplayNameShellDrive,PublisherLibreStatic andWindowsInstaller= 1, read in both registry views, 64-bit first) and the folder is the machine install folder (sd_setup_machine_install_dir, theInstallDirvalue of the core rows), or no folder was named, or the image runs from it. Anything else keeps the per-user path. The per-user%TEMP%copy is not made for a machine install (04 6.7). - Route: the removal pages (interactive), then
run_machine_elevatedwith the same parent as the install (asInvoker, progress relayed, UAC consent)./uninstallis forwarded to both stages (sd_setup_elev_forward), so the stages know the mode; no path is. - Stage 1: unchanged. Stage 2 (
sd_setup_elev_stage2_uninstall) needs no payload (uninstall.exehas none). It shares the entry checks of the install stage 2 (stage2_guard: administrator token, pipe shape, stage folder from its own image, trusted owner). The product code comes only fromfind_machine_productand must have the braced GUID shape; without one nothing runs (exit 1603, messageinstaller.error.not_installed). The command ismsiexec /x <code> /qb|/qn [/norestart] /L*v msi.logplus the forwardedPROPERTY=valuetokens (for exampleREMOVEDATA=1).msi.loggoes back over the pipe as for an install. A removal reporting 3010 gets the done message, as the per-user one does. - Seams:
sd_setup_elev_opsgainedfind_machine_product,machine_dirandlaunch; the tests fake all three. - Not shown: the removal of a machine install run from
Program Filesleavesuninstall.exefor Windows Installer (locked while running), so the result is normally 3010. Lab check (below).
sd_setup_elev_launch_installedruns in the unelevated parent only, after stage 1 has returned. It starts<InstallDir>\shelldrive-ui.exewithCreateProcessW(no runas, no wait), so the UI has the logged-on user's token. The folder comes from the machine registry (InstallDir, both views).- Refused when the parent holds an administrator token (the UI would run elevated). The user then sees the launch-failed message and starts ShellDrive from the Start menu. This is a limit, not a bug: the stub runs as asInvoker, so this only happens when the user started the stub with "Run as administrator".
- The finish page's Launch checkbox is now honoured for all-users installs (before, it was ignored for them).
- The x64 MSI (
SD_BUILD_MSIon an x64 preset) carries the x86-sse2shelldrive-shellext.dllbeside the x64 one (03 8.5, 04 6.2).cmake/SdShellExtX86.cmakebuilds it in a nested x86 configure of this tree (SD_SHELLEXT_ONLY=ON, Win32, v141_xp, ExternalProjectsd_shellext_x86, the same pattern as the ARM host tools). The nested tree builds only the DLL and what it links. Its own post-build audits are the x86-sse2 ones (importcheck againstxp-sp3-x86.txt, ISA check with the sse2 floor). CTest repeats both on the packaged file:importcheck.shelldrive-shellext.x86-sse2andisacheck.shelldrive-shellext.x86-sse2(tests/msi/CMakeLists.txt, when the MSI is configured). - Placement:
Program Files (x86)\LibreStatic\ShellDrive\shelldrive-shellext.dll, componentC_ShellExt32(Win64="no", directorySD_INSTALLDIR32). A subfolder of INSTALLDIR was tried first and light rejects it (ICE80: a 32-bit component cannot use a 64-bit folder), so the Program Files (x86) option of 03 8.5 is the one used. - Registration:
packaging/registration.txthas the rows of featureshellext32(the CLSIDs, the InprocServer32 paths as[INSTALLDIR32]shelldrive-shellext.dll, the Drive, Directory,*and This PC handlers).sd-msigen registry --shellext32 yeswrites them asWin64="no"components inSD_RegShellExt32, referenced by the ShellExt feature. Their GUID seeds carry|view32, so they never collide with the 64-bit rows.Approvedstays one shared row (it is not underSoftware\Classes, so it is not redirected).cmake/SdPayload.cmakeskips theshellext32rows: the per-user setup still writes the 64-bit view only. - x86 MSIs (
x86-ia32,x86-sse2) have no 32-bit view:SD_MSI_SHELLEXT32=0, no rows, no component. The tables test checks that the 32-bit rows and the component are absent there. - Tests:
sd-test-msi tables ... 1checks the component, its folder and feature, each 32-bit row (in a component without the 64-bit attribute), the 64-bit rows, and that the package has two shell extension files.sd-test-msi admin ... 1checks the x64 DLL by PE machine type. The admin image cannot show the x86 copy:msiexec /adrops the root of each folder, so bothLibreStatic\ShellDrivepaths land in one place. The x86 copy is covered by the tables check only. - Lab (04 11.4): after an MSI install on x64, a 32-bit application's file dialog shows the menu items, loaded from
Program Files (x86). The per-user counterpart is in the next section.
cmake/SdPayload.cmake: the x64 payloads (x64-*flavours) carry the x86-sse2 DLL asx86\shelldrive-shellext.dll, from the nested x86 configure (sd_add_x86_shellext, now created once per tree). Their audits are the MSI copy's (importcheck.payload.<flavour>.shellext-x86,isacheck.payload.<flavour>.shellext-x86). No preset of this tree callssd_setup_add_payloadwith an x64 flavour yet (the stub is built inx86-ia32only), so that branch runs when the x64 setup is assembled. The arm64 payload does not carry the copy here.- Registration: rows of feature
shellext32are no longer skipped. Each row has a view (SD_SETUP_REGVIEW_*).shellextrows are written in the view of the installed flavour (shell_access: 64-bit for x64 and ARM64, 32-bit for x86). The setup process is 32-bit, so an x64 install must name its view.shellext32rows needinstall_dir32(<install folder>\x86\) and are written only whensd_setup_shell32_wantedholds: the flavour has an x86 copy (x64-xp,x64-modern), the copy came with the payload, and the system splitsHKCU\Software\Classesby view (x64 XP and Server 2003,sd_setup_views_split). On later systems one HKCU tree serves both views, so a second registration would replace the 64-bit CLSIDs; those installs keep the x64 DLL only. - Uninstall reads the installed
Flavourto choose the view of the shell rows and deletes empty keys withRegDeleteKeyExW(resolved at run time) in that view. - Open (lab): the split-view premise (XP x64 keeps
HKCU\Software\Classesper view) is not verified on hardware. On Vista and later the x86 copy is shipped but not registered per user, so 32-bit file dialogs show no ShellDrive items after a per-user install; only the MSI registers them there. 03 8.5 names no per-user 32-bit mechanism; this needs a decision.
- The old rule deleted only keys whose path contained
ShellDriveorshelldrive-ui.exe. The CLSID keys (Software\Classes\CLSID\{C2A44993-...},{5E1C7D02-...}) and theirInprocServer32never qualified, so they stayed. - Now a key is a candidate only when it is a row of
packaging/registration.txt(no parent that no row names is touched) and owned: its last component names ShellDrive or shelldrive-ui.exe, or it sits under one of our two CLSIDs. Shared keys (Run, Shell Extensions\Approved, shellex, ContextMenuHandlers, the Windows This PC CLSID{20D04FE0-...}) are never deleted. setup_user_install_repair_uninstallasserts the removal, and that the shared parents stay.
tests/setup/main.c: seven round-17 tests were defined intest_elevate.cbut missing from the runner table, so they never ran. They are registered now (setup_elev_parent_relays_progress,..._stage1_keeps_the_stage_log_in_the_stage,..._parent_writes_the_relayed_log,..._parent_truncated_block_is_written,..._parent_malformed_block_writes_nothing,..._parent_oversized_block_writes_nothing,setup_elev_stage2_sends_the_stage_log).- New (
test_elevate.c):setup_elev_forward_uninstall,setup_elev_stage2_uninstall_runs_msiexec_x,setup_elev_stage2_uninstall_without_product_runs_nothing,setup_elev_stage2_uninstall_refuses_a_bad_code_and_untrusted_folder,setup_elev_launch_is_unelevated,setup_elev_launch_refused_when_elevated_or_unknown. - No msiexec, elevation, launch or HKLM write happens in the tests: every one goes through the fakes, and the machine readers are not called with a real registry in tests.
- No installer strings were added: every message used exists in the six catalogs already (
installer.error.not_installed,installer.progress.uninstall,installer.done.uninstall,installer.launch.failed). tests/msi: no change. The registration table did not change.
- Lab (04 11.4), not run here: per-machine uninstall from ARP (
UninstallStringof theUninstall\ShellDrivekey, which the MSI also writes fromregistration.txt, points atuninstall.exe) and fromshelldrive-setup.exe /uninstall; Windows Installer removing a lockeduninstall.exe; the 3010 path;REMOVEDATA=1through the stage. - Two ARP entries after an MSI install:
Uninstall\ShellDrive(registration.txt row,UninstallString=uninstall.exe) and the product's own{GUID}key. Decide whether the row should be per-user only. - Product lookup stops at the first match, 64-bit view first. Two ShellDrive MSIs of different families (x86 and x64) in one registry would be ambiguous; the install folder is the same, so that should not happen. Check in the lab.
- Launch from an administrator's elevated run is refused (see above).
- Item 3 (32-bit shell DLL) is done for the x64 MSI; the per-user setup and the x64 setup payloads still lack the x86 DLL (see above).
- Required gate (
ci-local, presets x86-ia32, x64-modern, x64-analysis,-TestRegex 'setup|engine|msi|shellext|l10n|importcheck|isacheck'): pass on all three; 54, 37 and 32 tests pass. - Found by the first run and fixed here: a malformed or oversized log block dropped the
Rresult line too (rx_linereturned onbad), so a successful install reported failure. Control lines now count even when the log block is bad (the install result never depends on the log). The two tests that caught it (setup_elev_parent_malformed_block_writes_nothing,setup_elev_parent_oversized_block_writes_nothing) were unregistered before this branch. - Also fixed: a use of
run_machine_elevatedbefore its definition, and an analysis warning (NULLout) inkey_sz.
The risk table (docs/design/00-integration-review.md, C31) asks for dumpbin /dependents dokan2.dll on every
architecture of the Dokany bundle we embed, to choose between the official per-arch MSIs (D32 form a) and the upstream
DokanSetup.exe bundle (form b). Run on 2026-10-30.
Method. The three installers were downloaded from the pinned release
v2.3.1.1000 (https://github.com/dokan-dev/dokany/releases/tag/v2.3.1.1000); their sizes and SHA-256 match the
GitHub asset digest values and the facts recorded in 04 §7.1. Each package was expanded with
msiexec /a <msi> TARGETDIR=<empty dir> (an admin image needs no elevation and runs on the x64 host), and the
installed copy of the DLL (Windows\System32\dokan2.dll of each image) was read with
dumpbin /dependents (MSVC 14.44, dumpbin 14.44.35229.0) on a Windows 11 IoT Enterprise LTSC 2024 x64 host.
| Architecture | Package (size, SHA-256) | dokan2.dll SHA-256 |
Imported modules |
|---|---|---|---|
| x86 | Dokan_x86.msi, 5,128,192 B, c833fd51f67c44a467eeade419b8934033445ee847119f82cbef1fddc84ef618 |
516da99d541961260888631c8cad3869a9e4e5021904560aa6534ac7ae549c75 |
KERNEL32, USER32, ADVAPI32, SHELL32 |
| x64 | Dokan_x64.msi, 9,269,248 B, 69ff8cb37bfec3a75921c85ffd1c6370b50a9ec4ecef2cf3a009d488dcbf5465 |
75600aba867acbdfdb85fcd142b524da769bdc611b855a760aeb0c6e2eaae17a |
KERNEL32, USER32, ADVAPI32, SHELL32 |
| ARM64 | Dokan_ARM64.msi, 5,128,192 B, f812a5bf11c15bc3910a1f0f53830ff771ceb3c80458f10686b0f45b0db91d2e |
52206ef6a5948f29bfb2d217fbb7d3a961072bf98aab520951abd306683db96a |
KERNEL32, USER32, ADVAPI32, SHELL32 |
Conclusion: no VC++ runtime dependency on any architecture. dokan2.dll 2.3.1 imports no
vcruntime140*.dll, no msvcp140*.dll and no other non-OS module. D32 therefore selects form (a):
- the offline setup EXEs embed the unmodified official
Dokan_<arch>.msi(Dokan_x86.msiforx86-ia32andx86-sse2,Dokan_x64.msiforx64-xpandx64-modern,Dokan_ARM64.msiforarm64); - the MSI deployments for GPO/Intune use the same upstream packages and the VC++ 2015–2022 redistributable is not a prerequisite (04 §7.1's "otherwise" branch does not apply);
- the upstream
DokanSetup.exebundle is not needed and is not embedded; - the ARM32 flavour chains no Dokany package: there is no ARM32 Dokany installer (04 §7.1). The ARM32 MSI (D31) installs CLI + agent + WebDAV only.
installer/dokany/dokany.lock (not yet in the tree) records vcruntime = none for the three architectures, with the
package sizes and SHA-256 above, the DLL hashes and this tool output. The [lab-verify] signer-subject and
service-name items of 04 §7.1/§7.3 stay open.
Requirement by requirement against docs/design/00-integration-review.md §6 (M4 row) and decisions.md (which
overrides the review's recommendation column where they differ). Status words: Done = implemented and checked;
Partial = some of it exists; Missing = not in the tree; Blocked = needs the lab, the release keys, or
another milestone. Evidence paths are relative to the repository root.
| Requirement | Status | Evidence and remaining work |
|---|---|---|
Setup stub from the x86-ia32 preset, CAB payloads |
Done | apps/shelldrive-setup/ (shelldrive-setup-stub, shelldrive-setup), cmake/SdPayload.cmake (FDI CAB via cabinet.dll, fixed member times), tests/setup (sd-test-engine, 54 tests), import and ISA audits |
| Per-user, per-machine and portable | Done in code; lab pending | setup_install.c, setup_elevate.c (two stages, pipe relay, per-machine uninstall), tests/setup/test_elevate.c. Lab: UAC/Run As, msiexec, 3010 (04 §11.4) |
| Six flavours and stub selection by CPU and OS (D4, D28) | Partial | Presets for all six (CMakePresets.json); sd_setup_select_flavour covers x86 SSE2, x64 by OS version and the ARM paths. Stub and payload targets exist only in the x86-ia32, arm64 and arm32 presets: no preset builds an x64 stub or payload, and the universal EXE that carries PAYLOAD_X86_SSE2, PAYLOAD_X64_XP and PAYLOAD_X64_MODERN is release-pipeline work (tools/sd-payload attaches one flavour per run). The x86-ia32 EXE built here therefore selects x86-sse2 on an SSE2 host and reports payload_missing until the pipeline assembles the universal EXE. ARM stubs are cross-built and cannot run here (04 §11.4) |
| WiX MSIs per flavour, incl. ARM32 (D31 best effort per D5) | Done (build and msiexec /a checks); install lab pending |
All six flavours build. x86 pair and x64 pair as before; ARM64 and ARM32 added later in this change (section "ARM64 and ARM32 MSIs" below). msi.<flavour>.tables, .admin (admin image only) and .wixui pass on x86-ia32, x64-modern, arm64 and arm32 |
| Language transforms (C43) | Partial | sd-msigen LCID table (es under 3082/11274/1034/2058/21514/…, pt-BR under 1046/2070), sd-msiembed, checked by msi.<flavour>.tables. The setup EXE never passes TRANSFORMS explicitly (the string appears only in sd-msiembed), so a /lang= choice that differs from the OS language gets the OS transform on a per-machine install |
| Dokany chaining (C31, D32) | Partial | setup_dokany.c: decision, PE import reader, command lines and run gate, 5 tests. Nothing calls sd_setup_dokany_run; no DOKANY_<ARCH> payload member, no installer/dokany/dokany.lock, no post-install --selftest probe. C31 fixes the form: official per-arch MSIs |
webdav-tune and the other installer hooks |
Partial → webdav-tune closed here | signal-shutdown, user-cleanup and programdata-secure implemented; modern-menu is a deliberate no-op until the sparse package exists (D27); webdav-tune was a silent no-op and is implemented in this change (below) |
| Upgrade with running processes (C3, C4) | Partial | C3 step 1 done and tested: the agent creates the manual-reset Global\…\agent.shutdown.<SID>.<session> event with the user, SY, BA DACL, waits on it (agent_shutdown_event_stops_agent), setup signals it and waits 15 s (setup_host.c, setup_install.c), locked files are renamed aside. Missing: the Restart Manager step 2 and C4's versioned shellext\<version>\ directory (the fixed path plus rename-aside is used). Lab pending |
| Signed manifest | Done; blocked on the release roots | src/sd_update (parse, chain, rollback, freshness, tests). k_trust in update_ipc.c is empty, so every verification fails closed until installer/keys exists |
| Static HTTP mirror (D30) | Partial; blocked on the domain | manifest_alt fallback after a network error and the redirect allow list exist; the default URL is the GitHub release URL only. The mirror URL is an operational choice (D30) |
| Updater UI and rollback | Done | apps/shelldrive-ui/ui_update.c (Settings group, consent dialog, tray balloon) over update.check / update.apply; update_engine.c apply with .rollback, --selftest and byte-for-byte restore, covered by the update tests |
| ADMX/ADML for every 03 §3.5 policy | Done | 21 policies in res/policy/policies.txt; tools/sd-admxgen emits the ADMX, six ADML files, sd_policy_ids.h/sd_policy_table.h; policy.*, unit.admxgen, unit.policy, l10n.policy_catalogs_complete |
| Sparse MSIX build switch (D27) | Missing | No packaging/msix, no SD_SPARSE_MSIX option; modern-menu stays a no-op. D27 defers shipping until the certificate exists, not the build switch |
| Reproducible-build check | Done; notes placeholder | tools/check-repro.ps1 and repro.* (excluded from the default gate). The "Results" section above still says RESULTS_PLACEHOLDER |
| Service installed and enabled by default per machine (D6) | Blocked (M5) | SD_MSI_WITH_SERVICE=0 until the service binary exists; the ServiceInstall/ServiceControl authoring is behind the define |
ENABLELINKEDCONNECTIONS (D24) |
Done | MSI property default 0; AppSearch ownership rules so an admin's pre-existing value is neither written nor removed; msi.<flavour>.tables |
DEFAULTPROFILES (C9) |
Done (authored); install lab pending | MoveFile custom table and C_DefaultProfiles in packaging/msi/ShellDrive.wxs |
| Signed payload tables (TM-R38) | Partial; blocked on the keys | Verifier, domain separation, resource check and 14 tests (tests/setup/test_payload_sig.c). setup_keyring.inc holds a revoked placeholder; installer/keys, the generated keyring and the package step's --sig input are release work |
| Release pipeline and two offline signing sessions (D42) | Partial | .github/workflows/release.yml skeleton stops at package/finalize; sd-release session/sign/verify/gates exist with tests; resign and installer/ (keys, release-gates.txt, dokany.lock) are missing; the workflow lint reports the missing CODEOWNERS |
| Security-test support TST-29/31/32 | Partial | tools/check-workflows.ps1 (TST-32) runs in ci.yml and nightly.yml; tools/sd-msilang --dump-sequences (TST-29) does not exist; the TST-27/31 lab checks were not run |
Two earlier open items in this file are superseded: open item 6 of the setup section (the agent shutdown event) is
implemented in src/sd_ipc/ipc_common.c and agent.c and covered by agent_shutdown_event_stops_agent; and the
"21 policies" figure is current.
Why this one. Of the M4-row gaps that are neither blocked on the release keys/domain nor on the lab, webdav-tune
is the one that silently degrades a shipped per-machine install: without it the WebClient redirector keeps its 50 MB
file and 1 MB attribute limits, so the WebDAV backend fails on large files and large folders while the documentation
promises the tuning. Dokany chaining, the universal multi-flavour EXE and the ARM MSIs are higher-impact but need
upstream packaging and the lab; the sparse MSIX switch needs the certificate that D27 makes a condition.
Implementation (apps/shelldrive-host/installer_hooks.c):
--applysetsHKLM\SYSTEM\CurrentControlSet\Services\WebClient\Parameters\FileSizeLimitInBytes = 0xFFFFFFFFandFileAttributesLimitInBytes = 100000000(02 §7.1, C28). No other value is read or written: in particularBasicAuthLevelis never touched (A2, C26).- The previous values are recorded before the first write in
%ProgramData%\LibreStatic\ShellDrive\service\state\webdav-tune.ini(03 §6.1) as[webdav-tune] file_size_limit_in_bytes = <decimal|absent>andfile_attributes_limit_in_bytes = .... The file is written to a temporary name and renamed. A repair run or a second install finds the record and does not overwrite it, so the values restored later are the ones of the first install. --revertrestores each recorded value (a DWORD, or deletes the value when the record saysabsent) and removes the record. With no record it succeeds without touching the registry (the hook never applied, or an older install).- Fail closed: a value of another registry type, an unreadable record or a record with an unknown value refuses the hook (exit 1) and leaves the registry alone. A damaged record is never replaced by a guess.
- The MSI actions were already authored (
CA_WebDavTune_Applydeferred,Impersonate="no", afterInstallFiles, conditionWEBDAV_TUNING = "1" AND NOT REMOVE~="ALL";CA_WebDavTune_RevertbeforeRemoveFiles, conditionREMOVE~="ALL" AND NOT UPGRADINGPRODUCTCODE), so GPO/Intune installs run it as SYSTEM. The per-user setup does not call it (no HKLM access); 02 §7.1 tells the user to runshelldrive --installer-hook webdav-tune --applyelevated.
Tests (tests/apps/test_hooks.c, 5 new, registered in tests/apps/main.c): the hook runs as a real process
(sd-test-host-fake.exe --installer-hook webdav-tune ...) with two test-only overrides under SD_HOST_TEST_HOOKS:
SHELLDRIVE_TEST_WEBDAV_PARAMS (an HKCU key instead of the HKLM parameters key) and SHELLDRIVE_TEST_PROGRAMDATA
(a temporary folder instead of %ProgramData%). No real machine value, key or folder is touched.
hooks_webdav_tune_apply_and_revert_restore_originals: both limits set, the record written,BasicAuthLeveluntouched, originals restored and the record removed by--revert.hooks_webdav_tune_records_absence_and_repeat_apply_keeps_originals: values absent before the first apply are deleted on revert; a repeat apply after the values were changed elsewhere keeps the first originals.hooks_webdav_tune_revert_without_state_is_a_noop.hooks_webdav_tune_refuses_a_damaged_state: both verbs refuse and leave the values alone.hooks_webdav_tune_refuses_a_value_of_another_type: aREG_SZvalue is refused and no record is written.
The test key is removed with RegDeleteKeyW (it holds values only): RegDeleteTreeW is not declared for the XP
presets, which is what broke the first gate run on x64-xp, x86-ia32 and x86-sse2.
Gate note for worktrees: the WSL sshd fixture writes tests/fixtures/wsl-sshd/state/env inside the checkout that
started it. When sshd on port 2222 was started from another checkout, start.ps1 reports "already running" and this
worktree has no state/env, so interop.ssh, interop.zlib and interop.sftp_ssh exit 77 and ci-local fails on
the skip. Run the gate with SD_SSH_WSL_FIXTURE_DIR set to the tests/fixtures/wsl-sshd folder of the checkout that
owns the running fixture.
Decision (maintainer, 2026-10-30): the ARM MSIs are built in M4, not deferred to M6 with the ARM64 test job.
How an ARM tree builds its MSI. The MSI tools must run on the x64 build host, and an ARM tree's own executables
cannot. The ARM presets already build their build-time tools (sdl10n, sd-importcheck, ...) in a nested x64
configure (cmake/SdHostTools.cmake, 04 §2.5). With -DSD_BUILD_MSI=ON that nested build also gets
SD_HOST_TOOLS_MSI=ON and builds sd-msigen, sd-msiembed and sd-test-msi; the ARM tree uses them as imported
executables, and its msi target depends on sd_host_tools. WiX (candle, light, torch) is an x86 .NET program, so
nothing else changes. The package is built from the ARM tree's own binaries: no second build directory is involved.
arm64 |
arm32 |
|
|---|---|---|
candle -arch, Template |
arm64, Arm64;1033,... |
arm, Arm;1033,... |
Program Files folder, Win64 |
ProgramFiles64Folder, yes |
ProgramFilesFolder, no |
InstallerVersion |
500 | 500 |
| UpgradeCode (04 §8.2) | {1438051B-3E86-459D-8199-E8D786F5A32B} |
{23F62FB5-0CD9-4087-B04C-D2A1B4A0A8F2} |
| Contents | as x64: CLI, host, UI, shell extension, Start menu, plus the x86-sse2 shell extension in the 32-bit view (x86 apps under WOW64) | Core (CLI and host) and Autostart only (04 §5.1) |
| Options page | Dokany and linked connections | linked connections only; SD_DOKANY_STATE = 0 (no ARM32 Dokany, 04 §7.1) |
| Launch condition | none beyond the downgrade check | SD_OSMAJOR >= 10 AND SD_OSBUILD < 26100 |
ARM32 details:
ShellDrive.wxshas two new defines,SD_UIandSD_DOKANY(both 0 for ARM32). They leave outC_Core_Ui,C_ShellExt,C_StartMenu, theShellExtandStartMenufeatures and the Dokany checkbox.sd-msigen registry --ui nodrops the shellext rows and theApp Paths\shelldrive-ui.exerow: their components share one fragment with the core rows, so leaving them in would link components that no feature references.- The launch condition: Windows RT 8.1 has no
CurrentMajorVersionNumber, soSD_OSMAJOR >= 10refuses it; build 26100 (Windows 11 24H2) and later run no ARM32 app.SD_OSBUILDisCurrentBuildNumber(REG_SZ). The message is the new installer stringmsi.os.arm32(WiX idOsArm32), in all six catalogs. [lab-verify] the 32-bit registry view of an ARM32 package on ARM64 hasCurrentBuildNumber, and Windows Installer compares it as a number.
Checks (sd-test-msi, from the nested x64 build). The ARM ctest presets now select ^msi[.]. Without the MSI
nothing matches and ctest still exits 0. tools/ci-local.ps1 configures arm64 and arm32 with SD_BUILD_MSI when
WiX 3.14 is installed and runs those checks in Release. The Debug configuration and the GitHub ci.yml stay build-only.
tablestakes a new<ui>argument. With 0 it checks: no UI, shell extension or Start menu component, feature, file or row; noApp Pathsrow; no Dokany control;SD_DOKANY_STATE= 0; the ARM32 launch condition and itsSD_OSBUILDsearch.adminnow takes<platform> <shellext32> <ui>. It checks the files of the flavour (two for ARM32, and that the UI and the DLL are absent), and thatshelldrive.exein the admin image is a PE of the package's machine: i386, AMD64, ARM64 or ARMNT.msiexec /aof the ARM packages works on this x64 host.
Open (lab or later):
- The 04 §5.1 [lab-verify] items: Windows Installer on ARM64 accepts the
Armtemplate; the folder ARM32 packages resolve to. - The ARM64 package carries no x64 shell extension for x64 apps under emulation (04 §11.4 row "11 ARM64").
- The setup EXE's own ARM32 24H2/RT refusal (04 §5.1) is not implemented.
- The release pipeline's
packagejob is still a stub. GitHub CI (ci.yml) builds the MSIs onx86-ia32,x64-modern,arm64andarm32with the runner's WiX 3.14, runs theirmsi.*checks and uploads the packages. Thex64-modernandarm64jobs now also installv141_xpfor the x86 shell extension, which adds several minutes to each.