-
Notifications
You must be signed in to change notification settings - Fork 0
/
Product.wxs
34 lines (30 loc) · 1.97 KB
/
Product.wxs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?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" />
<Media Id="1" Cabinet="media1.cab" EmbedCab="yes" />
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder">
<Directory Id="INSTALLLOCATION" Name="DesktopToastsSample">
<!-- Add the files here -->
</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="[INSTALLLOCATION]DesktopToastsSample.exe" WorkingDirectory="INSTALLLOCATION">
<!-- Set the AppID in order to get toasts to work -->
<ShortcutProperty Key="System.AppUserModel.ID" Value="Microsoft.Samples.DesktopToastsSample"></ShortcutProperty>
</Shortcut>
<RemoveFolder Id="ApplicationProgramsFolder" On="uninstall"/>
<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="ApplicationShortcut"/>
<ComponentGroupRef Id="Product.Generated" />
</Feature>
</Product>
</Wix>