diff options
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> |