1 <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:util="http://schemas.microsoft.com/wix/UtilExtension" xmlns:netfx="http://schemas.microsoft.com/wix/NetFxExtension">
2 <Product Id="*" Name="{{Title}} Deployment Tool" Language="1033" Codepage="{{Codepage}}" Version="!(bind.FileVersion.{{Id}}.exe)" UpgradeCode="{{IdAsGuid1}}" Manufacturer="{{Author}}">
4 <Package Description="This package installs a deployment tool for {{Title}}. Not {{Title}} itself. {{Title}} is only installed if a user logs into the machine." InstallScope="perMachine" Comments="Comments" InstallerVersion="200" Compressed="yes" Platform="{{Platform}}"/>
5 <MajorUpgrade AllowSameVersionUpgrades="yes" DowngradeErrorMessage="A later version of this product is already installed. Setup will now exit."/>
6 <Media Id="1" Cabinet="contents.cab" EmbedCab="yes" CompressionLevel="high"/>
8 <PropertyRef Id="NETFRAMEWORK45" />
10 <Condition Message="This application requires .NET Framework 4.5 or higher. Please install the latest .NET Framework then run this installer again.">
11 <![CDATA[Installed OR NETFRAMEWORK45]]>
14 <Directory Id="TARGETDIR" Name="SourceDir">
15 <Directory Id="{{ProgramFilesFolder}}">
16 <Directory Id="APPLICATIONROOTDIRECTORY" Name="{{Title}} Deployment" />
20 <DirectoryRef Id="APPLICATIONROOTDIRECTORY">
21 <Component Id="{{Id}}.exe" Guid="{{IdAsGuid2}}" Win64="{{Win64YesNo}}">
22 <File Id="{{Id}}.exe" Name="{{Id}}DeploymentTool.exe" Source="./Setup.exe" KeyPath="yes"/>
26 <DirectoryRef Id="TARGETDIR">
27 <Component Id="RegistryEntries" Guid="{{IdAsGuid3}}" Win64="{{Win64YesNo}}">
28 <RegistryKey Root="HKLM" Key="SOFTWARE\Microsoft\Windows\CurrentVersion\Run">
29 <RegistryValue Type="expandable" Name="{{Id}}Deployment" Value=""[#{{Id}}.exe]" --checkInstall" />
34 <Feature Id="MainApplication" Title="Main Application" Level="1">
35 <ComponentRef Id="{{Id}}.exe" />
36 <ComponentRef Id="RegistryEntries" />