diff options
| author | Přemysl Eric Janouch <p@janouch.name> | 2023-06-22 23:34:51 +0200 | 
|---|---|---|
| committer | Přemysl Eric Janouch <p@janouch.name> | 2023-06-26 02:10:31 +0200 | 
| commit | 089c90004ba8f2af9574e3982b20a4b6cb2ab2f1 (patch) | |
| tree | b10b84635ec98c89f1c0656be01d70e494366fda /fiv.wxs.in | |
| parent | 19913a5e4880503dd06a73c03584e77d3cf504a0 (diff) | |
| download | fiv-089c90004ba8f2af9574e3982b20a4b6cb2ab2f1.tar.gz fiv-089c90004ba8f2af9574e3982b20a4b6cb2ab2f1.tar.xz fiv-089c90004ba8f2af9574e3982b20a4b6cb2ab2f1.zip  | |
Produce a basic Windows installer package
We're very early adopters of msitools' new UI feature,
so this doesn't work on MSYS2 directly yet due to an old version.
Diffstat (limited to 'fiv.wxs.in')
| -rw-r--r-- | fiv.wxs.in | 69 | 
1 files changed, 69 insertions, 0 deletions
diff --git a/fiv.wxs.in b/fiv.wxs.in new file mode 100644 index 0000000..c81fcbb --- /dev/null +++ b/fiv.wxs.in @@ -0,0 +1,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>  | 
