mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
68 lines
2.8 KiB
XML
68 lines
2.8 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<?include "cpack_variables.wxi"?>
|
|
|
|
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
|
|
xmlns:util="http://schemas.microsoft.com/wix/UtilExtension"
|
|
RequiredVersion="3.6.3303.0">
|
|
|
|
<Product Id="$(var.CPACK_WIX_PRODUCT_GUID)"
|
|
Name="$(var.CPACK_PACKAGE_NAME)"
|
|
Language="1033"
|
|
Version="$(var.CPACK_PACKAGE_VERSION)"
|
|
Manufacturer="$(var.CPACK_PACKAGE_VENDOR)"
|
|
UpgradeCode="$(var.CPACK_WIX_UPGRADE_GUID)">
|
|
|
|
<Package InstallScope="perMachine" InstallerVersion="301" Compressed="yes"/>
|
|
|
|
<Media Id="1" Cabinet="media1.cab" EmbedCab="yes"/>
|
|
|
|
<MajorUpgrade
|
|
Schedule="afterInstallInitialize"
|
|
AllowSameVersionUpgrades="yes"
|
|
DowngradeErrorMessage="A later version of [ProductName] is already installed. Setup will now exit."/>
|
|
|
|
<WixVariable Id="WixUILicenseRtf" Value="$(var.CPACK_WIX_LICENSE_RTF)"/>
|
|
<Property Id="WIXUI_INSTALLDIR" Value="INSTALL_ROOT"/>
|
|
|
|
<?ifdef CPACK_WIX_PRODUCT_ICON?>
|
|
<Property Id="ARPPRODUCTICON">ProductIcon.ico</Property>
|
|
<Icon Id="ProductIcon.ico" SourceFile="$(var.CPACK_WIX_PRODUCT_ICON)"/>
|
|
<?endif?>
|
|
|
|
<?ifdef CPACK_WIX_UI_BANNER?>
|
|
<WixVariable Id="WixUIBannerBmp" Value="$(var.CPACK_WIX_UI_BANNER)"/>
|
|
<?endif?>
|
|
|
|
<?ifdef CPACK_WIX_UI_DIALOG?>
|
|
<WixVariable Id="WixUIDialogBmp" Value="$(var.CPACK_WIX_UI_DIALOG)"/>
|
|
<?endif?>
|
|
|
|
<FeatureRef Id="ProductFeature"/>
|
|
|
|
<UIRef Id="$(var.CPACK_WIX_UI_REF)" />
|
|
|
|
<?include "properties.wxi"?>
|
|
<?include "product_fragment.wxi"?>
|
|
|
|
<DirectoryRef Id="TARGETDIR">
|
|
<Directory Id="ProgramMenuFolder" />
|
|
</DirectoryRef>
|
|
|
|
<Property Id="WixSilentExecCmdLine" Value='"Taskkill" /IM KeePassXC.exe'/>
|
|
<CustomAction Id="KillKeePassXCInstall" BinaryKey="WixCA" DllEntry="WixSilentExec" Execute="immediate" Return="ignore"/>
|
|
<CustomAction Id="KillKeePassXCUninstall" BinaryKey="WixCA" DllEntry="WixSilentExec" Execute="immediate" Return="ignore"/>
|
|
|
|
<Property Id="WixQuietExecCmdLine" Value='"Taskkill" /IM keepassxc-proxy.exe /F'/>
|
|
<CustomAction Id="KillProxyInstall" BinaryKey="WixCA" DllEntry="WixQuietExec" Execute="immediate" Return="ignore"/>
|
|
<CustomAction Id="KillProxyUninstall" BinaryKey="WixCA" DllEntry="WixQuietExec" Execute="immediate" Return="ignore"/>
|
|
|
|
<InstallExecuteSequence>
|
|
<Custom Action="KillKeePassXCInstall" After="InstallInitialize"/>
|
|
<Custom Action="KillProxyInstall" After="InstallInitialize"/>
|
|
<Custom Action="KillKeePassXCUninstall" Before="InstallValidate">Installed</Custom>
|
|
<Custom Action="KillProxyUninstall" Before="InstallValidate">Installed</Custom>
|
|
</InstallExecuteSequence>
|
|
</Product>
|
|
</Wix>
|