aboutsummaryrefslogtreecommitdiff
path: root/fiv.wxs.in
blob: c81fcbb3f250ee39621632f98848b4fd8d0da936 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?xml version='1.0' encoding='utf-8'?>
<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>
	<?define FullName = "@ProjectName@ @ProjectVersion@" ?>
	<?if $(sys.BUILDARCH) = x64 ?>
		<?define ProgramFilesFolder = "ProgramFiles64Folder" ?>
	<?else?>
		<?define ProgramFilesFolder = "ProgramFilesFolder" ?>
	<?endif?>

	<Product Id='*'
		Name='$(var.FullName)'
		UpgradeCode='a3e64e2d-4310-4c5f-8562-bb0e0b3e0a53'
		Language='1033'
		Codepage='1252'
		Version='@ProjectVersion@'
		Manufacturer='Premysl Eric Janouch'>

		<Package Id='*'
			Keywords='Installer,Image,Viewer'
			Description='$(var.FullName) Installer'
			Manufacturer='Premysl Eric Janouch'
			InstallerVersion='200'
			Compressed='yes'
			Languages='1033'
			SummaryCodepage='1252' />

		<Media Id='1' Cabinet='data.cab' EmbedCab='yes' />
		<Icon Id='fiv.ico' SourceFile='fiv.ico' />
		<Property Id='ARPPRODUCTICON' Value='fiv.ico' />
		<Property Id='ARPURLINFOABOUT' Value='https://git.janouch.name/p/fiv' />

		<UIRef Id='WixUI_Minimal' />
		<!-- This isn't supported by msitools, but is necessary for WiX.
		<WixVariable Id='WixUILicenseRtf' Value='License.rtf' />
		-->

		<Directory Id='TARGETDIR' Name='SourceDir'>
			<Directory Id='$(var.ProgramFilesFolder)' Name='Files'>
				<Directory Id='INSTALLDIR' Name='$(var.FullName)' />
			</Directory>

			<Directory Id='ProgramMenuFolder' Name='Programs'>
				<Directory Id='ProgramMenuDir' Name='$(var.FullName)'>
					<Component Id='ProgramMenuDir' Guid='*'>
						<Shortcut Id='ProgramsMenuShortcut'
							Name='@ProjectName@'
							Target='[INSTALLDIR]\fiv.exe'
							WorkingDirectory='INSTALLDIR'
							Arguments='"%USERPROFILE%"'
							Icon='fiv.ico' />
						<RemoveFolder Id='ProgramMenuDir' On='uninstall' />
						<RegistryValue Root='HKCU'
							Key='Software\[Manufacturer]\[ProductName]'
							Type='string'
							Value=''
							KeyPath='yes' />
					</Component>
				</Directory>
			</Directory>

			<Directory Id='DesktopFolder' Name='Desktop' />
		</Directory>

		<Feature Id='Complete' Level='1'>
			<ComponentGroupRef Id='CG.fiv' />
			<ComponentRef Id='ProgramMenuDir' />
		</Feature>
	</Product>
</Wix>