Skip to content

Commit 9fc964a

Browse files
bergmeisterTravisEz13
authored andcommitted
Make Windows MSI uninstallation shortcut remove work when more than one version is installed (#7701)
Fixes underlying problem of #3341. Related: #2881 When multiple versions (e.g. RTM and preview) of PowerShell are installed via the MSI and one is being uninstalled, then the start menu shortcut does not get removed due to the shortcut component being not unique per version. This also applies to an upgrade scenario. Therefore use an auto-generated Guid (`*`)
1 parent d886c1b commit 9fc964a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎assets/Product.wxs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@
223223
</Directory>
224224
<Directory Id="ProgramMenuFolder">
225225
<Directory Id="ApplicationProgramsFolder" Name="$(var.ProductName)">
226-
<Component Id="ApplicationProgramsMenuShortcut" Guid="{A77507A7-F970-4618-AC30-20AFE36EE2EB}">
226+
<Component Id="ApplicationProgramsMenuShortcut" Guid="*">
227227
<Shortcut Id="PowerShell_ProgramsMenuShortcut"
228228
Name="$(var.ProductSimpleVersionWithNameAndOptionalArchitecture)"
229229
Description="$(var.ProductSimpleVersionWithNameAndOptionalArchitecture)"

0 commit comments

Comments
 (0)