https://bugs.kde.org/show_bug.cgi?id=409723

--- Comment #8 from Thomas <tho...@safing.io> ---
I really don't think that this is the way you want to do it since the
SnoreToast-CLSID is hardcoded into the installer at the moment. We will write
an entry in the Makefile that replaces the CLSID in the wixfile dynamically.

But here it goes:
<Directory Id="ProgramMenuDir" Name="Appname">
        <Component Id="ProgramMenuDir" Guid="SOME-RANDOM-GUID">
                <RemoveFolder Id="ProgramMenuDir" On="uninstall"/>
                <RegistryValue Root="HKLM"
Key="Software\[Manufacturer]\[ProductName]\installed_shortcuts" Type="string"
Value="" KeyPath="yes"/> <!-- Just done to have a keypath -->
                <Shortcut Id="startmenuNotifier" Directory="ProgramMenuDir"
Name="Appname" Description="Appdec" Target="[#id_of_exe_component]"
WorkingDirectory="INSTALLDIR" Icon="icon.ico" Advertise="no">
                        <ShortcutProperty Key="System.AppUserModel.ID"
Value="com.example.appid" />
                        <ShortcutProperty
Key="{9F4C2855-9F79-4B39-A8D0-E1D42DE1D5F3}, 26"
Value="{SNORETOAST-GUID}"></ShortcutProperty><!--
System.AppUserModel.ToastActivatorCLSID written in hex to make it work on older
Windows-Versions, too -->
                </Shortcut>
                <Shortcut Id="Uninstall" Name="Uninstall Portmaster"
Target="[SystemFolder]msiexec.exe" Arguments="/x [ProductCode]"
Description="Uninstalls Portmaster Application Firewall" />
                <RegistryValue Root="HKCU"
Key="SOFTWARE\Classes\CLSID\{SNORETOAST-GUID}\LocalServer32" Type="string"
Value="C:\snoretoast.exe" /><!-- see snoretoast: linkhelper.cpp:86 -->
        </Component>
</Directory>

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to