mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-27 00:09:53 -05:00
e3c7b570ae
* Remove mention of no longer used IRC network Channels exist on matrix, and on libera.chat now. * Correctly match only files with .png extension The current search would match files such as 'createpng'. * Fix comparison in script The result was always false, due to comparing a literal string instead of a variable. * Use correct license files from upstream Correct license files obtained from: https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt https://www.gnu.org/licenses/gpl-3.0.txt https://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt https://www.gnu.org/licenses/lgpl-3.0.txt * Refresh several shell scripts This fixes several shellcheck warnings, as well as makes the code more robust and have consistent codestyle between all the files. * Trim excess whitespace
134 lines
6.6 KiB
XML
134 lines
6.6 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?>
|
|
|
|
<UI>
|
|
<UIRef Id="$(var.CPACK_WIX_UI_REF)" />
|
|
<Publish Dialog="KPXC_ExitDialog" Control="Finish" Order="1" Event="DoAction" Value="LaunchApplication">LAUNCHAPPONEXIT</Publish>
|
|
</UI>
|
|
|
|
<?include "properties.wxi"?>
|
|
<?include "product_fragment.wxi"?>
|
|
|
|
<!-- Autostart via registry (optional) -->
|
|
<Component Id="Autostart" Guid="*" Directory="INSTALL_ROOT">
|
|
<RegistryValue Id="Autostart.rst" Root="HKCU" Action="write"
|
|
Key="Software\Microsoft\Windows\CurrentVersion\Run"
|
|
Name="$(var.CPACK_PACKAGE_NAME)"
|
|
Value=""[#CM_FP_KeePassXC.exe]""
|
|
Type="string" />
|
|
<Condition>AUTOSTARTPROGRAM</Condition>
|
|
</Component>
|
|
|
|
<DirectoryRef Id="TARGETDIR">
|
|
<!-- Startmenu shortcuts -->
|
|
<Directory Id="ProgramMenuFolder">
|
|
<Directory Id="ApplicationProgramsFolder" Name="KeePassXC">
|
|
<Component Id="ApplicationShortcuts" Guid="*">
|
|
<Shortcut Id="ApplicationStartMenuShortcut"
|
|
Name="KeePassXC"
|
|
Target="[#CM_FP_KeePassXC.exe]"
|
|
WorkingDirectory="INSTALL_ROOT"/>
|
|
<Shortcut Id="GettingStartedShortcut"
|
|
Name="KeePassXC - Getting Started"
|
|
Target="[#CM_FP_share.docs.KeePassXC_GettingStarted.html]"
|
|
WorkingDirectory="INSTALL_ROOT" />
|
|
<Shortcut Id="UserGuideShortcut"
|
|
Name="KeePassXC - User Guide"
|
|
Target="[#CM_FP_share.docs.KeePassXC_UserGuide.html]"
|
|
WorkingDirectory="INSTALL_ROOT" />
|
|
<RemoveFolder Id="ApplicationProgramsFolder" On="uninstall" />
|
|
<RegistryValue Root="HKCU" Key="Software\KeePassXC" Name="StartMenuShortcut" Type="integer" Value="1" KeyPath="yes"/>
|
|
</Component>
|
|
</Directory>
|
|
</Directory>
|
|
|
|
<!-- Desktop shortcut (optional) -->
|
|
<Directory Id="DesktopFolder" Name="Desktop">
|
|
<Component Id="DesktopShortcut" Guid="F8AFBA1C-296C-41AA-B968-60323A206665">
|
|
<Condition>INSTALLDESKTOPSHORTCUT</Condition>
|
|
<Shortcut Id="ApplicationDesktopShortcut"
|
|
Directory="DesktopFolder"
|
|
Name="KeePassXC"
|
|
Target="[#CM_FP_KeePassXC.exe]"
|
|
WorkingDirectory="INSTALL_ROOT" />
|
|
<RemoveFile Id="RemoveDesktopIcon" Name="KeePassXC.lnk" On="uninstall" />
|
|
<RegistryValue Root="HKCU" Key="Software\KeePassXC" Name="DesktopShortcut" Type="integer" Value="1" KeyPath="yes"/>
|
|
</Component>
|
|
</Directory>
|
|
</DirectoryRef>
|
|
|
|
<!-- Custom properties to control installation options -->
|
|
<Property Id="LAUNCHAPPONEXIT" Value="1" Secure="yes" />
|
|
<Property Id="AUTOSTARTPROGRAM" Value="1" Secure="yes" />
|
|
<Property Id="AUTOSTARTPROGRAM_REGISTRY">
|
|
<RegistrySearch Id="AutoStartSearch" Root="HKCU" Key="Software\Microsoft\Windows\CurrentVersion\Run" Name="$(var.CPACK_PACKAGE_NAME)" Type="raw" />
|
|
</Property>
|
|
<Property Id="INSTALLDESKTOPSHORTCUT" Secure="yes" />
|
|
<Property Id="INSTALLDESKTOPSHORTCUT_REGISTRY">
|
|
<RegistrySearch Id="DesktopIconSearch" Root="HKCU" Key="Software\KeePassXC" Name="DesktopShortcut" Type="raw" />
|
|
</Property>
|
|
|
|
<!-- Set properties based on existing conditions, prevents changing state on upgrade -->
|
|
<SetProperty Id="AUTOSTARTPROGRAM" After="AppSearch" Value="">AUTOSTARTPROGRAM="0" OR (WIX_UPGRADE_DETECTED AND NOT AUTOSTARTPROGRAM_REGISTRY)</SetProperty>
|
|
<SetProperty Id="INSTALLDESKTOPSHORTCUT" After="AppSearch" Value="1">WIX_UPGRADE_DETECTED AND INSTALLDESKTOPSHORTCUT_REGISTRY</SetProperty>
|
|
<SetProperty Id="LicenseAccepted" After="AppSearch" Value="1">WIX_UPGRADE_DETECTED</SetProperty>
|
|
|
|
<FeatureRef Id="ProductFeature">
|
|
<ComponentRef Id="ApplicationShortcuts" />
|
|
<ComponentRef Id="Autostart" />
|
|
<ComponentRef Id="DesktopShortcut" />
|
|
</FeatureRef>
|
|
|
|
<!-- Action to launch application after installer exits -->
|
|
<Property Id="WixShellExecTarget" Value="[#CM_FP_KeePassXC.exe]" />
|
|
<CustomAction Id="LaunchApplication" BinaryKey="WixCA" DllEntry="WixShellExec" Impersonate="yes" />
|
|
|
|
<!-- Action to kill running KeePassXC processes -->
|
|
<Property Id="WixSilentExecCmdLine" Value='taskkill /IM KeePassXC.exe; taskkill /IM keepassxc-proxy.exe /F' />
|
|
<CustomAction Id="KillKeePassXC" BinaryKey="WixCA" DllEntry="WixSilentExec" Execute="immediate" Return="ignore" />
|
|
|
|
<InstallExecuteSequence>
|
|
<Custom Action="KillKeePassXC" Before="InstallValidate" />
|
|
<!-- Prevent pinned taskbar shortcut from being removed -->
|
|
<RemoveShortcuts Suppress="yes" />
|
|
</InstallExecuteSequence>
|
|
</Product>
|
|
</Wix>
|