Skip to content

fix(packaging/windows): Allow WiX installer downgrades - #5435

Merged
ReenigneArcher merged 1 commit into
masterfrom
fix/packaging/wix-upgrade-detection
Jul 21, 2026
Merged

fix(packaging/windows): Allow WiX installer downgrades#5435
ReenigneArcher merged 1 commit into
masterfrom
fix/packaging/wix-upgrade-detection

Conversation

@ReenigneArcher

Copy link
Copy Markdown
Member

Description

Add a custom WiX template that sets AllowDowngrades="yes" on the MajorUpgrade element. This lets users freely switch between release and PR builds without being blocked by the default downgrade prevention.

Screenshot

Issues Fixed or Closed

Roadmap Issues

Type of Change

  • feat: New feature (non-breaking change which adds functionality)
  • fix: Bug fix (non-breaking change which fixes an issue)
  • docs: Documentation only changes
  • style: Changes that do not affect the meaning of the code (white-space, formatting, missing semicolons, etc.)
  • refactor: Code change that neither fixes a bug nor adds a feature
  • perf: Code change that improves performance
  • test: Adding missing tests or correcting existing tests
  • build: Changes that affect the build system or external dependencies
  • ci: Changes to CI configuration files and scripts
  • chore: Other changes that don't modify src or test files
  • revert: Reverts a previous commit
  • BREAKING CHANGE: Introduces a breaking change (can be combined with any type above)

Checklist

  • Code follows the style guidelines of this project
  • Code has been self-reviewed
  • Code has been commented, particularly in hard-to-understand areas
  • Code docstring/documentation-blocks for new or existing methods/components have been added or updated
  • Unit tests have been added or updated for any new or modified functionality

AI Usage

See our AI usage policy.

  • None: No AI tools were used in creating this PR
  • Light: AI provided minor assistance (formatting, simple suggestions)
  • Moderate: AI helped with code generation or debugging specific parts
  • Heavy: AI generated most or all of the code changes

@codecov

codecov Bot commented Jul 21, 2026

Copy link
Copy Markdown

Bundle Report

Bundle size has no change ✅

@codecov

codecov Bot commented Jul 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 26.85%. Comparing base (9d2409f) to head (52a7086).
✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5435      +/-   ##
==========================================
+ Coverage   26.68%   26.85%   +0.16%     
==========================================
  Files         111      111              
  Lines       25397    25397              
  Branches    11231    11231              
==========================================
+ Hits         6777     6820      +43     
- Misses      15597    17208    +1611     
+ Partials     3023     1369    -1654     
Flag Coverage Δ
Archlinux 0.00% <ø> (ø)
FreeBSD-aarch64 ?
FreeBSD-amd64 13.15% <ø> (+<0.01%) ⬆️
Homebrew-macos-14 20.28% <ø> (ø)
Homebrew-macos-15 20.92% <ø> (+0.46%) ⬆️
Homebrew-macos-26 20.59% <ø> (+0.01%) ⬆️
Homebrew-ubuntu-24.04 12.90% <ø> (ø)
Linux-AppImage 12.23% <ø> (ø)
Windows-AMD64 15.18% <ø> (ø)
Windows-ARM64 13.23% <ø> (+0.01%) ⬆️
macOS-arm64 17.69% <ø> (ø)
macOS-x86_64 18.36% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.
see 49 files with indirect coverage changes


Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9d2409f...52a7086. Read the comment docs.

Update Windows WiX packaging to better support users switching between release and PR builds. This adds `CPACK_WIX_PROPERTY_REINSTALLMODE` (`amus`) so files are replaced regardless of embedded file version, and introduces a custom WiX template with `<MajorUpgrade AllowDowngrades="yes">` instead of CPack's default downgrade-blocking behavior.
@ReenigneArcher
ReenigneArcher force-pushed the fix/packaging/wix-upgrade-detection branch from 91a871d to 52a7086 Compare July 21, 2026 21:37
@sonarqubecloud

Copy link
Copy Markdown

@ReenigneArcher
ReenigneArcher marked this pull request as ready for review July 21, 2026 22:28
@ReenigneArcher
ReenigneArcher merged commit 82a9720 into master Jul 21, 2026
67 of 71 checks passed
@ReenigneArcher
ReenigneArcher deleted the fix/packaging/wix-upgrade-detection branch July 21, 2026 22:29
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.

Sunshine-Windows-AMD64-installer.msi error, due to which any new version cannot be installed over the previous one.

1 participant