50 lines
3.0 KiB
XML
50 lines
3.0 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
|
|
<!-- This XML file is meant to be used with the WiX toolkit for installing a shortcut with the right properties for toasts -->
|
|
<Product Id="a7e03305-aec7-4e0c-8e85-9e71ee0b64f4" Name="DesktopToastsSample" Language="1033" Version="1.0.0.0" Manufacturer="DesktopToastsSample" UpgradeCode="35d2a9d4-1e5f-448e-8ee8-a36ea24579aa">
|
|
<Package InstallerVersion="200" Compressed="yes" InstallPrivileges="limited" />
|
|
|
|
<Media Id="1" Cabinet="media1.cab" EmbedCab="yes" />
|
|
|
|
<!-- Disallow user from installing for all users -->
|
|
<Property Id="ALLUSERS" Secure="yes"/>
|
|
<Condition Message="Setting the ALLUSERS property is not allowed because [ProductName] is a per-user application. Setup will now exit.">
|
|
NOT ALLUSERS
|
|
</Condition>
|
|
|
|
<Directory Id="TARGETDIR" Name="SourceDir">
|
|
<Directory Id="LocalAppDataFolder">
|
|
<Directory Id="AppRootDirectory" Name="DesktopToastsSample">
|
|
<Component Id="DesktopToastsSample.exe" Guid="64F1F115-CECA-4A90-B82E-2A1BBFAD2D51">
|
|
<CreateFolder/>
|
|
<RemoveFolder Id="RemoveAppRootDirectory" On="uninstall" />
|
|
<File Id="DesktopToastsSample.exe" Source="$(var.DesktopToastsSample.TargetPath)" Checksum="yes"/>
|
|
<File Id="toastImageAndText.png" Source="$(var.DesktopToastsSample.TargetDir)toastImageAndText.png" Checksum="yes"/>
|
|
|
|
<!-- This is needed to tell COM what process to start to activate the COM server for this CLSID -->
|
|
<RegistryValue Root="HKCU" Key="Software\Classes\CLSID\{23A5B06E-20BB-4E7E-A0AC-6982ED6A6041}\LocalServer32" Type="string" Value="[#DesktopToastsSample.exe]" KeyPath="yes" />
|
|
</Component>
|
|
</Directory>
|
|
</Directory>
|
|
|
|
<Directory Id="ProgramMenuFolder">
|
|
<!-- This creates a start menu shortcut -->
|
|
<Component Id="ApplicationShortcut" Guid="9F9C249C-A3AD-4765-804F-34BCD571359A">
|
|
<Shortcut Id="ApplicationStartMenuShortcut" Name="Desktop Toasts Sample" Description="Sends basic toasts" Target="[AppRootDirectory]DesktopToastsSample.exe" WorkingDirectory="AppRootDirectory">
|
|
<!-- Set the AppID in order to get toasts to work -->
|
|
<ShortcutProperty Key="System.AppUserModel.ID" Value="Microsoft.Samples.DesktopToasts"></ShortcutProperty>
|
|
<!-- Set the ToastActivatorCLSID in order to get notifications working in Action Center -->
|
|
<ShortcutProperty Key="System.AppUserModel.ToastActivatorCLSID" Value="{23A5B06E-20BB-4E7E-A0AC-6982ED6A6041}"></ShortcutProperty>
|
|
</Shortcut>
|
|
<RegistryValue Root="HKCU" Key="Software\Microsoft\DesktopToasts" Name="installed" Type="integer" Value="1" KeyPath="yes"/>
|
|
</Component>
|
|
</Directory>
|
|
</Directory>
|
|
|
|
<Feature Id="ProductFeature" Title="DesktopToastsSample" Level="1">
|
|
<ComponentRef Id="DesktopToastsSample.exe" />
|
|
<ComponentRef Id="ApplicationShortcut" />
|
|
</Feature>
|
|
</Product>
|
|
</Wix>
|