Skip to content

Fix duplicate install layout in MSI (WiX Files + project ref)#241

Merged
mortenn merged 2 commits intomainfrom
fix/msi-publish-harvest-and-installer-action
Mar 23, 2026
Merged

Fix duplicate install layout in MSI (WiX Files + project ref)#241
mortenn merged 2 commits intomainfrom
fix/msi-publish-harvest-and-installer-action

Conversation

@mortenn
Copy link
Owner

@mortenn mortenn commented Mar 23, 2026

Summary

Fixes #240: dependent (and portable) MSIs installed the same payload twice as runtimes\ and publish\runtimes\ because WiX Files Include="**" with a ProjectReference resolves against the reference's unnamed bind path (TargetDir), not ComponentGroup Source, so the whole build output—including the publish\ subfolder—was harvested. See wixtoolset/issues#9084.

Changes

  • WiX: Use an absolute preprocessor glob for published files only ($(var.BrowserPicker.App.TargetDir)\publish\** and the portable win-x64\publish\** variant) in dist/Dependent/Product.wxs and dist/Portable/Product.wxs.
  • CI: Rename build-signedbuild-installer, drop unused binaries input and the release job's cert artifact upload (signing was already removed from steps). Keep dotnet 9.x in the composite action to match current net9.0-windows on main.

Verification

Administrative extract of a built MSI should show no publish\ directory under the install root; layout should match the published app folder (as in the Dependent zip artifact).

mortenn added 2 commits March 23, 2026 22:25
ProjectReference adds an unnamed bind path; bare ** harvested TargetDir and duplicated publish layout (wixtoolset/issues#9084). Fixes #240.

Made-with: Cursor
Remove unused binaries input and certificate artifact upload. Rename steps for clarity. Keep dotnet 9.x to match the app target.

Made-with: Cursor
@mortenn mortenn merged commit 6ac3f0d into main Mar 23, 2026
mortenn added a commit that referenced this pull request Mar 23, 2026
Cherry-pick #241: WiX duplicate install layout + build-installer action
@mortenn mortenn deleted the fix/msi-publish-harvest-and-installer-action branch March 23, 2026 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant