107 lines
7.3 KiB
Markdown
107 lines
7.3 KiB
Markdown
# Complete per-user Windows installer — version21 candidate
|
|
|
|
Run **PlotDirectorCompanionSetup.exe** from normal File Explorer after closing Word.
|
|
It contains the MSI and both application components; no adjacent payload folder is
|
|
needed. `Release.json` deliberately selects application **1.0.0.21**, MSI **1.0.21**,
|
|
and Atlas baseline `9395e094f87a8718ee430255746f0b841d3f37ba`. The exact clean
|
|
build SHA must match `package.json` and `-ExpectedSourceCommit` (defaults to HEAD).
|
|
This is a packaging candidate, not a claim of installed Windows acceptance.
|
|
|
|
Build with existing Windows tooling, without launching Visual Studio:
|
|
|
|
```powershell
|
|
.\Build-Setup.ps1 -PackagePath '<validated complete signed developer package>' `
|
|
-ExpectedSourceCommit '<exact clean package source SHA>' `
|
|
-OutputDirectory '<new output directory>' -CertificateThumbprint '<existing certificate>'
|
|
```
|
|
|
|
The builder verifies the payload inventory and both VSTO signatures, creates an
|
|
embedded CAB/MSI with Windows Installer's existing COM API and makecab, and compiles
|
|
the bootstrapper with the installed .NET Framework compiler. It installs no tools.
|
|
The existing developer certificate signs the MSI and EXE. A local developer
|
|
certificate is not a public distribution certificate: normal VSTO trust approval is
|
|
still required. Setup never writes certificate trust, inclusion lists or security
|
|
policy. Missing Framework 4.8, VSTO or .NET 10 x64 Windows Desktop prerequisites
|
|
produce a specific error; they are not installed or repaired automatically.
|
|
|
|
## Installation contract
|
|
|
|
- Version21 uses ProductCode `{0BF0FC05-40A0-4B6E-B7BC-1FEA9A7C8530}` with
|
|
the established UpgradeCode. Its transactional older-product range includes both
|
|
versions 10 through 20; same-version21 uses the existing maintenance path.
|
|
Version12-specific notes below describe the preserved historical correction.
|
|
- Before registration/VSTO/MSI changes, setup stops only the exact installed tray
|
|
executable in this session, holds its existing singleton lock against restart,
|
|
and checks every existing candidate payload file for replacement access without
|
|
writing bytes. Locked/read-only/inaccessible files stop setup with their path and
|
|
Windows error; permissions and installed files are not changed to bypass errors.
|
|
The guard releases on failure and before launching the upgraded tray. Regression
|
|
tests use disposable locked/read-only files, never the installed application.
|
|
This hardens the reported copy-failure path; an actual MSI upgrade, including
|
|
any transient lock or rollback-security failure, still needs human acceptance.
|
|
- Per-user MSI, no ALLUSERS property; limited-privilege summary flag, compressed CAB.
|
|
- `%LOCALAPPDATA%\Programs\PlotDirector Companion` contains VSTO and `Agent`.
|
|
- Start menu opens the control centre; the current user's Startup shortcut starts
|
|
the same tray executable without opening its window at Windows sign-in.
|
|
- Word's manifest points to the installed signed manifest with `|vstolocal` and
|
|
LoadBehavior 3, preserving the existing registered-DLL hash resolver.
|
|
- The bootstrapper detects a packaged execution context and launches itself through
|
|
Win32_Process as the same user in normal Windows before touching installation
|
|
state. It never treats a private HKCU view as installation proof.
|
|
- Close Word first. Setup stops only this session's existing Companion agent from
|
|
LocalAppData; it never terminates Word or Visual Studio.
|
|
- Existing registration and exact-product VSTA metadata are exported under
|
|
`%LOCALAPPDATA%\PlotDirector\InstallerBackup\<timestamp>`.
|
|
- Previous exact PlotDirector VSTO deployments use the supported VSTO uninstaller.
|
|
Only its `-401` (not installed) result permits removing that exported orphaned
|
|
PlotDirector VSTA record. Other products and ClickOnce caches are untouched.
|
|
- Re-running setup uses Windows Installer recaching/repair for this product.
|
|
- The complete desktop feature is explicitly selected with `ADDLOCAL=Complete`,
|
|
marked DisallowAdvertise/UIDisallowAbsent, and never inherits old feature states.
|
|
Version10 can have an advertised MSI feature despite physical version10 files.
|
|
Migrating that state registered version12 without copying its files; the
|
|
`Test-UpgradeRegression.ps1` negative control rejects the original faulty MSI.
|
|
Registered-but-advertised version12 is handled by the same-product repair path.
|
|
Strict post-install file-version checks remain and now log both detected versions;
|
|
native feature state must also be Local (3), not Advertised (1).
|
|
- Version12 has new ProductCode `{0B1E8E22-FCF5-4D9C-99A1-5D0F4BD3210C}` and the
|
|
same UpgradeCode `{641A087B-9779-458C-B290-BCBBAD49319A}`. Older family products
|
|
below MSI 1.0.12, including qualified 1.0.10, are major-upgrade candidates;
|
|
removal is inside the MSI transaction before copying files. A separate detect-only
|
|
range and launch condition reject newer versions. Same-version12 is a repair.
|
|
- File/component identifiers derive from target-relative paths; existing component
|
|
GUIDs remain identical to the qualified version10 MSI. The independent
|
|
`Test-SetupPackage.ps1` reads the MSI/CAB, verifies every payload hash, component
|
|
GUID, upgrade boundary, shortcut, sequence and per-user flag without running it.
|
|
- The bootstrapper queries the native MSI inventory before and after installation,
|
|
refusing machine/other-user context or newer versions before any mutation. It
|
|
has an explicit asInvoker execution manifest and uses generated version constants
|
|
from the same Release.json as the MSI builder.
|
|
- Windows Settings > Apps > **PlotDirector Companion** uses the MSI uninstall path
|
|
for the installed files, registration and shortcuts. Existing application state,
|
|
document metadata, manuscripts and retained backups are not MSI components.
|
|
- Authentication tokens in version 1.0.0.10 are memory-only. Restarting the agent
|
|
requires normal Development browser approval again. Document associations remain
|
|
inside their documents; the installer neither opens nor saves documents.
|
|
|
|
For unattended qualification, do not execute Setup, VSTOInstaller, msiexec, the
|
|
installed tray or Word. `Inspect-UserInstallation.ps1` uses only read-only supported
|
|
queries; its local JSON contains personal identity/profile data and must not be
|
|
published. It does not use Win32_Product, launch applications or change the theme.
|
|
`Update-WordCompanion.ps1 -NoSync` may build a clean local qualification commit after
|
|
the caller safely fetches/fast-forwards; it still requires the tracked remote tip
|
|
to be an ancestor and never reconciles divergent history. This permits validation
|
|
before publishing a packaging commit. Its single build/test run supplies reusable
|
|
evidence for both handover prompts, including native-import and Intent assessment.
|
|
|
|
The original version10 installer and `Qualification-2026-11-05.md` are the recovery
|
|
baseline. Never overwrite that EXE or relabel its payload as version12. Actual
|
|
upgrade, uninstall/rollback and Word/visual acceptance require the separately
|
|
authorised manual checklist; static MSI inspection does not qualify those actions.
|
|
|
|
An MSI result of zero is only a packaging result. Acceptance additionally requires
|
|
normal Word's minimal ribbon, Open Companion activation, connected IPC, exact
|
|
installed payload hashes/version, tray visibility and a real Word close/reopen.
|
|
Do not reboot the author's laptop as a test; inspect and launch the installed
|
|
Startup shortcut and report that actual reboot has not been exercised.
|