Skip to content

Instantly share code, notes, and snippets.

@Windos Windos/AppId-Template.wxs
Last active Jun 18, 2018

Embed
What would you like to do?
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Product Id="*" UpgradeCode="__GUID1__" Version="1.0.0.0" Language="1033" Name="__NAME__" Manufacturer="__MANUFACTURER__">
<Package InstallerVersion="300" Compressed="yes"/>
<Media Id="1" Cabinet="__NAME__.cab" EmbedCab="yes" />
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder">
<Directory Id="APPLICATIONROOTDIRECTORY" Name="__NAME__"/>
</Directory>
<Directory Id="ProgramMenuFolder">
<Directory Id="ApplicationProgramsFolder" Name="__NAME__"/>
</Directory>
</Directory>
<DirectoryRef Id="APPLICATIONROOTDIRECTORY">
<Component Id="__NAME__.png" Guid="__GUID2__">
<File Id="__NAME__.png" Source="__NAME__.png" KeyPath="yes" Checksum="yes"/>
</Component>
</DirectoryRef>
<Icon Id="__NAME__.ico" SourceFile="__NAME__.ico" />
<DirectoryRef Id="ApplicationProgramsFolder">
<Component Id="ApplicationShortcut" Guid="__GUID3__">
<Shortcut Id="ApplicationStartMenuShortcut"
Name="__NAME__"
Description="Shortcut that enables Toast Notifications"
Target="[#__NAME__.png]"
WorkingDirectory="APPLICATIONROOTDIRECTORY"
Icon="__NAME__.ico">
<ShortcutProperty Key="System.AppUserModel.ID" Value="__MANUFACTURER__!__NAME__" />
<ShortcutProperty Key="System.AppUserModel.ToastActivatorCLSID" Value="{__GUID4__}"></ShortcutProperty>
</Shortcut>
<RemoveFolder Id="ApplicationProgramsFolder" On="uninstall"/>
<RegistryValue Root="HKCU" Key="Software\Microsoft\__NAME__" Name="installed" Type="integer" Value="1" KeyPath="yes"/>
</Component>
</DirectoryRef>
<Feature Id="MainApplication" Title="Main Application" Level="1">
<ComponentRef Id="__NAME__.png" />
<ComponentRef Id="ApplicationShortcut" />
</Feature>
</Product>
</Wix>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.