fix(packaging): MSI stays registered after uninstalling a legacy System32 install (ROCM-35150) #10380
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.39) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 262 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.333
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #10380"
general
weight: 0.35
ScottTodd
Motivation:
Installing the runtime MSI with
LEGACY_SYSTEM32_INSTALL=1and then uninstalling it removes the install directory but leaves the product in Add/Remove Programs.The LegacyInstall feature defaults to Level 0 and is only raised to 1 by the condition
LEGACY_SYSTEM32_INSTALL = "1". That property is not persisted, so on uninstall the condition is false and the feature drops back to Level 0. Windows Installer does not remove level-0 features onREMOVE=ALL, so the feature stays installed and the product stays registered. The verbose log shows it asFeature: LegacyInstall; Installed: Local; Request: Null; Action: Null.Fix:
guard the Level conditions so they can't change after install. LegacyInstall uses
Installed OR ..., and the two lowering cases (LegacyCleanup, LongPaths) useNOT Installed AND ...so the same thing can't happen when those properties are passed on uninstall.With this, uninstalling a legacy install also removes its System32 copies (desired behaviour), matching how a default install already scrubs those names. The README is updated to describe that.
Verified with two minimal per-user WiX packages: the old condition leaves the product registered after
/x, the new one removes it cleanly.Also adds a regression test for the guard rule and makes the uninstall test check the Uninstall hive, which is what would have caught this.
Workaround for already-affected machines:
msiexec /x amdrocm-runtime.msi /qn LEGACY_SYSTEM32_INSTALL=1.Tracked in
JIRA ID : ROCM-35150
Test Results:
https://github.com/ROCm/TheRock/actions/runs/46705777616
| Mode | Install | Uninstall |
| --- | --- | --- |
| Default | 7 payload files under
core-10.3, System32 scrubbed, discovery key correct | product unregistered, install dir and discovery key removed ||
LEGACY_SYSTEM32_INSTALL=1| 12 payload files (7 + 5 System32 copies), discovery key correct | product unregistered, install dir and discovery key removed, System32 scrubbed |🤖 Generated with Claude Code