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 (`*`)
This commit is contained in:
Christoph Bergmeister [MVP]
2018-09-05 13:39:40 -07:00
committed by Travis Plunk
parent d886c1b2b5
commit 9fc964a230
+1 -1
View File
@@ -223,7 +223,7 @@
</Directory>
<Directory Id="ProgramMenuFolder">
<Directory Id="ApplicationProgramsFolder" Name="$(var.ProductName)">
<Component Id="ApplicationProgramsMenuShortcut" Guid="{A77507A7-F970-4618-AC30-20AFE36EE2EB}">
<Component Id="ApplicationProgramsMenuShortcut" Guid="*">
<Shortcut Id="PowerShell_ProgramsMenuShortcut"
Name="$(var.ProductSimpleVersionWithNameAndOptionalArchitecture)"
Description="$(var.ProductSimpleVersionWithNameAndOptionalArchitecture)"