83 lines
2.7 KiB
XML
83 lines
2.7 KiB
XML
<?xml version='1.0' encoding='utf-8'?>
|
|
<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>
|
|
<?define FullName = "@PROJECT_NAME@ @PROJECT_VERSION@" ?>
|
|
<?if $(sys.BUILDARCH) = x64 ?>
|
|
<?define ProgramFilesFolder = "ProgramFiles64Folder" ?>
|
|
<?else?>
|
|
<?define ProgramFilesFolder = "ProgramFilesFolder" ?>
|
|
<?endif?>
|
|
|
|
<Product Id='*'
|
|
Name='$(var.FullName)'
|
|
UpgradeCode='a99226f0-c9a4-4cc8-8065-bb79dc3c3469'
|
|
Language='1033'
|
|
Codepage='1252'
|
|
Version='@PROJECT_VERSION@'
|
|
Manufacturer='@CPACK_PACKAGE_VENDOR@'>
|
|
|
|
<Package Id='*'
|
|
Keywords='Installer,Image,Browser'
|
|
Description='$(var.FullName) Installer'
|
|
Manufacturer='@CPACK_PACKAGE_VENDOR@'
|
|
InstallerVersion='200'
|
|
Compressed='yes'
|
|
Languages='1033'
|
|
SummaryCodepage='1252' />
|
|
|
|
<Media Id='1' Cabinet='data.cab' EmbedCab='yes' />
|
|
<Icon Id='dn.ico' SourceFile='@DAWN_ICON_ICO@' />
|
|
<Property Id='ARPPRODUCTICON' Value='dn.ico' />
|
|
<Property Id='ARPURLINFOABOUT' Value='@PROJECT_HOMEPAGE_URL@' />
|
|
|
|
<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)'>
|
|
<Directory Id='INSTALLDIR' Name='$(var.FullName)' />
|
|
</Directory>
|
|
|
|
<Directory Id='ProgramMenuFolder'>
|
|
<Directory Id='ProgramMenuDir' Name='$(var.FullName)' />
|
|
</Directory>
|
|
|
|
<Directory Id='DesktopFolder' />
|
|
</Directory>
|
|
|
|
<DirectoryRef Id='ProgramMenuDir'>
|
|
<Component Id='ProgramMenuDir' Guid='*'>
|
|
<Shortcut Id='ProgramsMenuShortcut'
|
|
Name='@PROJECT_NAME@'
|
|
Target='[INSTALLDIR]\dn.exe'
|
|
WorkingDirectory='INSTALLDIR'
|
|
Arguments='"%USERPROFILE%"'
|
|
Icon='dn.ico' />
|
|
<?if @DAWN_MSI_WIP@ = ON ?>
|
|
<Shortcut Id='CropJpegShortcut' Name='Dawn JPEG Cropper'
|
|
Target='[INSTALLDIR]\dn.exe' WorkingDirectory='INSTALLDIR'
|
|
Arguments='--mode=cropjpeg' Icon='dn.ico' />
|
|
<Shortcut Id='CommanderShortcut' Name='Dawn Commander'
|
|
Target='[INSTALLDIR]\dn.exe' WorkingDirectory='INSTALLDIR'
|
|
Arguments='--mode=commander "%USERPROFILE%"' Icon='dn.ico' />
|
|
<?endif?>
|
|
<RemoveFolder Id='ProgramMenuDir' On='uninstall' />
|
|
<RegistryValue Root='HKCU'
|
|
Key='Software\[Manufacturer]\[ProductName]'
|
|
Type='string'
|
|
Value=''
|
|
KeyPath='yes' />
|
|
</Component>
|
|
</DirectoryRef>
|
|
|
|
<!-- FileAssociations is defined in the generated associations.wxs:
|
|
it needs dn's actual "list supported media types" output. -->
|
|
<Feature Id='Complete' Level='1'>
|
|
<ComponentGroupRef Id='CG.dn' />
|
|
<ComponentRef Id='ProgramMenuDir' />
|
|
<ComponentRef Id='FileAssociations' />
|
|
</Feature>
|
|
</Product>
|
|
</Wix>
|