Skip to content

Make Windows MSI Start Menu shortcut machine-wide #2032

Closed

Description

@integry

Objective

Correct the machine-scope Start Menu entry in the finalized Windows MSI. The per-machine package must expose and remove its only shortcut for all users, not the installing account only.

Evidence

Exact reviews of runtime propagation #2029/#2030 found a blocker in apps/desktop/scripts/build-windows-machine-installer.mjs:232-241: the MSI declares InstallScope="perMachine", installs under Program Files, and registers protocol/App Paths in HKLM, but its only shortcut is under ProgramMenuFolder with an HKCU key path. Managed installation as administrator or SYSTEM can therefore hide the shortcut from standard users. Existing focused tests currently assert this incorrect per-user behavior.

Required correction

  • Change the shortcut directory root to WiX CommonProgramMenuFolder and retain the ProPR Desktop subfolder, shortcut target, working directory, description, AUMID, and uninstall RemoveFolder behavior.
  • Give ApplicationStartMenuShortcutComponent a machine-scope 64-bit component (Win64="yes") and replace its HKCU key path with an HKLM key path under the existing product-owned Software\ProPR\Desktop namespace.
  • Keep exactly one component key path and ensure uninstall removes the common shortcut folder and product marker reliably.
  • Update focused source assertions to require CommonProgramMenuFolder, HKLM, and the 64-bit component, and to reject the old exact per-user directory and every HKCU registry value.
  • Extend the existing native Windows installed-user validation, where practical, to prove the common shortcut is visible to the ordinary user after machine installation and absent after uninstall. Use fixed/bounded checks and do not weaken the existing Program Files, protocol, architecture, or smoke evidence.
  • Preserve the one machine-wide MSI artifact, no-Squirrel boundary, signing/update policy, package contents, protocol/App Paths registration, versioning, and all unrelated release behavior.

Integration

Target only the runtime epic branch selected by base-1952-epic-electron-runtime-app; never target main. Run focused installer/source tests, desktop tests/typecheck, x64/ARM64 MSI validation, installed-user smoke, diff-check, and full CI. Do not merge the generated PR; root will review and merge it into runtime so #2029/#2030 update together.

Part of #1952 and unblocks #2029/#2030.

Activity

  1. propr-dev commented on Aug 31, 2026

    @propr-dev
    Contributor

    🤖 AI processing has started for this issue using codex agent with gpt-5.6-sol model.

    I'll analyze the problem and work on a solution. This may take a few minutes.

    Processing Details:

    • Agent: codex
    • Model: gpt-5.6-sol
    • Branch: 2032/gpt-5.6-sol-make-windows-msi-start-me-20260831-2021-uou
    • Base Branch: 1952-epic-electron-runtime-app
    • Worktree: issue-2032-20260831-2021-gpt-5.6-sol-uou

    🔍 Track Task Execution

  2. added a commit that references this issue on Aug 31, 2026
  3. integry commented on Sep 4, 2026

    @integry
    OwnerAuthor

    Implemented by #2034, merged into 1952-epic-electron-runtime-app (30a749b). Closing the completed child issue during epic issue/PR reconciliation. Final desktop integration and delivery remain tracked by #1950 / #1970; this does not claim a main-branch release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions