Skip to content

Commit

Permalink
Mitigate winget issue with MSI upgrade by removing default display of…
Browse files Browse the repository at this point in the history
… the custom uninstall UI (#3013)
  • Loading branch information
danieljurek authored Nov 29, 2023
1 parent c0d1dc4 commit 70655e6
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions cli/installer/windows/azd.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@
</Component>

<!-- Override ARP to display full UI during uninstall. -->
<Component Directory="INSTALLDIR">
<!-- Uncomment this block to restore displaying full UI on uninstall (which includes a notice to clean ~/.azd/bin) -->
<!-- See https://github.com/Azure/azure-dev/issues/3012 -->
<!-- <Component Directory="INSTALLDIR">
<RegistryKey Root="HKCU" Key="SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(var.BaseProductName)">
<RegistryValue Name="DisplayName" Value="$(var.BaseProductName)" Type="string" />
<RegistryValue Name="DisplayVersion" Value="[ProductVersion]" Type="string" />
Expand All @@ -100,11 +102,13 @@
<RegistryValue Name="Publisher" Value="[Manufacturer]" Type="string" />
<RegistryValue Name="UninstallString" Value="msiexec.exe /X[ProductCode] /qf" Type="string" />
</RegistryKey>
</Component>
</Component> -->
</Feature>

<!-- Override ARP to display full UI during uninstall. -->
<Property Id="ARPSYSTEMCOMPONENT" Value="1" />
<!-- Uncomment this line to restore displaying full UI on uninstall (which includes a notice to clean ~/.azd/bin) -->
<!-- See https://github.com/Azure/azure-dev/issues/3012 -->
<!-- <Property Id="ARPSYSTEMCOMPONENT" Value="1" /> -->

<!-- Broadcast environment variable changes even if a reboot is pending -->
<CustomActionRef Id="WixBroadcastEnvironmentChange" />
Expand Down

0 comments on commit 70655e6

Please sign in to comment.