Skip to content

Migrate to Wix5#428

Merged
NikolaMilosavljevic merged 7 commits intodotnet:mainfrom
NikolaMilosavljevic:wix5
Dec 18, 2025
Merged

Migrate to Wix5#428
NikolaMilosavljevic merged 7 commits intodotnet:mainfrom
NikolaMilosavljevic:wix5

Conversation

@NikolaMilosavljevic
Copy link
Member

This PR migrates the uninstall tool to Wix 5.

I've followed the guidance and also used the recent SDK migration, as a model.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR migrates the .NET Core Uninstall Tool installer from WiX Toolset 3 to WiX 5, modernizing the build process by replacing PowerShell-based Heat/Candle/Light commands with the WiX SDK project model.

Key Changes:

  • Replaces WiX 3 toolchain with WiX 5 SDK and removes manual tool acquisition
  • Updates WXS files to use WiX v4 schema and modernized syntax
  • Migrates from PowerShell-driven build to MSBuild-integrated .wixproj

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
global.json Adds WiX 5 SDK reference
eng/Versions.props Defines WiX 5 and Build.Tasks.Installers package versions
eng/Version.Details.xml Tracks Build.Tasks.Installers dependency
src/redist/redist.csproj Updates to use centralized package version and adds wixproj P2P reference
src/redist/targets/GenerateMSIs.targets Removes WiX 3 acquisition and replaces PowerShell script with MSBuild invocation
src/redist/targets/packaging/windows/dotnetCoreUninstall/uninstall-tool.wixproj New WiX SDK project file replacing PowerShell script
src/redist/targets/packaging/windows/dotnetCoreUninstall/variables.wxi Updates platform variable references from Platform to InstallerPlatform
src/redist/targets/packaging/windows/dotnetCoreUninstall/provider.wxs Updates to WiX v4 schema and modern Provides syntax
src/redist/targets/packaging/windows/dotnetCoreUninstall/dotnet.wxs Converts from Product/Package to Package-only, updates to v4 schema, modernizes UI Publish elements
src/redist/targets/packaging/windows/dotnetCoreUninstall/generatemsi.ps1 Deleted PowerShell script no longer needed with WiX SDK

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


<Target Name="SetInstallerInfo" BeforeTargets="CoreCompile">
<PropertyGroup>
<!-- Templates support rebuilding the same project for multiple MSIs so we expect some properties to be passed to this project when building. -->
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can probably remove this comment. That applies to the SDK template installs.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks - fixed with a3468fc

@NikolaMilosavljevic NikolaMilosavljevic merged commit 78fe122 into dotnet:main Dec 18, 2025
8 checks passed
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.

3 participants