summaryrefslogtreecommitdiff
path: root/data/wix/installer.wxs
blob: 7366ab4d27b9516ade86669e9f4a9b4b11ded94f (plain)
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
<?xml version="1.0" ?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
	<?include $(sys.CURRENTDIR)\Config.wxi?>
	<Product Id="$(var.ProductID)" Language="$(var.Language)" Manufacturer="$(var.Manufacturer)"
			Name="$(var.ProductName)" UpgradeCode="$(var.UpgradeCode)"
			Version="$(var.Version)">

		<Package Comments="$(var.PackageComments)" Compressed="yes"
			Description="$(var.Description)" InstallPrivileges="elevated"
			Manufacturer="$(var.Manufacturer)"/>

		<Media Cabinet="product.cab" EmbedCab="yes" Id="1"/>

		<!-- Upgrades -->
		<MajorUpgrade DowngradeErrorMessage="A later version of [ProductName] is already installed. Setup will now exit"/>

		<!-- Add/Remove Programs -->
		<Property Id="ARPPRODUCTICON" Value="MainIcon" />
		<Property Id="ARPCONTACT" Value="$(var.Manufacturer)" />
		<Property Id="ARPURLINFOABOUT" Value="$(var.WebSiteName)" />
		<Property Id="ALLUSERS">1</Property>
		
		<!-- UI -->
		<CustomAction Execute="firstSequence" Id="SetWixUIInstallDir" Property="WIXUI_INSTALLDIR" Value="INSTALLDIR"/>
		<InstallUISequence>
			<Custom Action="SetWixUIInstallDir" Before="CostInitialize"/>
		</InstallUISequence>
		<Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR"/>

		<UIRef Id="$(var.UIType)"/>
	</Product>
</Wix>