Skip to content

Commit b2df221

Browse files
committed
Setup: Fix installer warning on Windows 7
`Warning 1946. Property 'System.AppUserModel.ToastActivatorCLSID' for shortcut 'Open-Shell Update.lnk' could not be set.` Windows 7 doesn't recognize `System.AppUserModel.ToastActivatorCLSID` name so we have to use GUID directly. https://docs.microsoft.com/en-us/troubleshoot/windows/win32/warning-1946-when-you-install-installer-package Fixes #507.
1 parent c88f028 commit b2df221

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Src/Setup/Setup.wxs

+2-1
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,8 @@
576576
<Component Id="UpdateSettingsLink" Guid="10B5A082-6C92-4EA7-AFF8-21AE3D2D7FE0">
577577
<Shortcut Id="UpdateSettingsLink" Name="!(loc.UpdateItem)" Advertise="no" Description="!(loc.UpdateSettingsDesc)" Target="[APPLICATIONFOLDER]Update.exe" WorkingDirectory="APPLICATIONFOLDER">
578578
<ShortcutProperty Key="System.AppUserModel.ID" Value="OpenShell.Update"/>
579-
<ShortcutProperty Key="System.AppUserModel.ToastActivatorCLSID" Value="{E407B70A-1FBD-4D5E-8822-231C69102472}"/>
579+
<!-- Windows 7 doesn't recognize `System.AppUserModel.ToastActivatorCLSID` name so we have to use GUID directly -->
580+
<ShortcutProperty Key="{9F4C2855-9F79-4B39-A8D0-E1D42DE1D5F3}, 26" Value="{E407B70A-1FBD-4D5E-8822-231C69102472}"/>
580581
</Shortcut>
581582
<CreateFolder />
582583
<Condition>START_MENU_FOLDER=1</Condition>

0 commit comments

Comments
 (0)