2026-03-29 04:01:43 +03:00
<!-- SPDX - FileCopyrightText: Oleg Shparber, et al. <https://zealdocs.org> -->
2025-09-25 23:26:27 -04:00
<!-- SPDX - License - Identifier: GPL - 3.0 - or - later -->
2023-09-08 00:00:46 -04:00
<!-- Based on: https://gitlab.kitware.com/cmake/cmake/ - /blob/master/Utilities/Release/WiX/WIX.template.in -->
<?include "cpack_variables.wxi"?>
<?define AppExeName="zeal.exe" ?>
2026-04-11 18:33:11 +03:00
<Wix xmlns= "http://wixtoolset.org/schemas/v4/wxs" xmlns:util= "http://wixtoolset.org/schemas/v4/wxs/util" >
2023-09-08 00:00:46 -04:00
2026-04-11 18:33:11 +03:00
<Package Name= "$(var.CPACK_PACKAGE_NAME)" Language= "1033" Version= "$(var.CPACK_PACKAGE_VERSION)" Manufacturer= "$(var.CPACK_PACKAGE_VENDOR)" UpgradeCode= "$(var.CPACK_WIX_UPGRADE_GUID)" InstallerVersion= "500" ProductCode= "$(var.CPACK_WIX_PRODUCT_GUID)" >
<Media Id= "1" Cabinet= "media1.cab" EmbedCab= "yes" />
2023-09-08 00:00:46 -04:00
2026-04-11 18:33:11 +03:00
<MajorUpgrade Schedule= "afterInstallInitialize" DowngradeErrorMessage= "A later version of [ProductName] is already installed. Setup will now exit." />
2023-09-08 00:00:46 -04:00
2026-04-11 18:33:11 +03:00
<Launch Condition= "VersionNT64" Message= "This package can only be installed on 64-bit versions of Windows." />
2023-09-08 00:00:46 -04:00
2026-04-11 18:33:11 +03:00
<Property Id= "WIXUI_INSTALLDIR" Value= "INSTALL_ROOT" />
2023-09-08 00:00:46 -04:00
<?ifdef CPACK_WIX_PRODUCT_ICON?>
2026-04-11 18:33:11 +03:00
<Property Id= "ARPPRODUCTICON" Value= "ProductIcon.ico" />
<Icon Id= "ProductIcon.ico" SourceFile= "$(var.CPACK_WIX_PRODUCT_ICON)" />
2023-09-08 00:00:46 -04:00
<?endif?>
<?ifdef CPACK_WIX_UI_BANNER?>
2026-04-11 18:33:11 +03:00
<WixVariable Id= "WixUIBannerBmp" Value= "$(var.CPACK_WIX_UI_BANNER)" />
2023-09-08 00:00:46 -04:00
<?endif?>
<?ifdef CPACK_WIX_UI_DIALOG?>
2026-04-11 18:33:11 +03:00
<WixVariable Id= "WixUIDialogBmp" Value= "$(var.CPACK_WIX_UI_DIALOG)" />
2023-09-08 00:00:46 -04:00
<?endif?>
<UI >
2026-04-11 18:33:11 +03:00
<UIRef Id= "$(var.CPACK_WIX_UI_REF)" />
<Publish Dialog= "Zeal_ExitDialog" Control= "Finish" Order= "1" Event= "DoAction" Value= "LaunchApplication" Condition= "LAUNCHAPPONEXIT AND (NOT Installed OR WIX_UPGRADE_DETECTED)" />
2023-09-08 00:00:46 -04:00
</UI>
<?include "properties.wxi"?>
<?include "product_fragment.wxi"?>
<!-- Custom properties to control installation options -->
2026-04-11 18:33:11 +03:00
<Property Id= "LAUNCHAPPONEXIT" Value= "1" Secure= "yes" />
2023-09-08 00:00:46 -04:00
2026-04-11 18:33:11 +03:00
<!-- Pull in the auto - generated feature/component fragments. -->
<FeatureRef Id= "ProductFeature" />
2023-09-08 00:00:46 -04:00
<!-- Action to launch application after installer exits. -->
2026-04-11 18:33:11 +03:00
<Property Id= "WixShellExecTarget" Value= "[#CM_FP_zeal.exe]" />
<CustomAction Id= "LaunchApplication" DllEntry= "WixShellExec" Impersonate= "yes" BinaryRef= "Wix4UtilCA_$(sys.BUILDARCHSHORT)" />
2023-09-08 00:00:46 -04:00
<!-- Close running Zeal processes. -->
<util:CloseApplication CloseMessage= "yes" Target= "$(var.AppExeName)" ElevatedCloseMessage= "yes" RebootPrompt= "no" TerminateProcess= "0" />
<InstallExecuteSequence >
2026-04-11 18:33:11 +03:00
<Custom Action= "override Wix4CloseApplications_$(sys.BUILDARCHSHORT)" Before= "RemoveFiles" />
2023-09-08 00:00:46 -04:00
</InstallExecuteSequence>
2026-04-11 18:33:11 +03:00
</Package>
2023-09-08 00:00:46 -04:00
</Wix>