Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorSebastian Marsching <sebastian-git-2016@marsching.com>2017-10-30 17:41:20 +0300
committerSebastian Marsching <sebastian-git-2016@marsching.com>2017-10-30 17:41:20 +0300
commit3e9067fe8eba8ee7e0556361707ee0796f4c8bde (patch)
tree3ac9b07c3c909f85930ed1bdc73c39778bdc92d2 /share
parente100ba8362b0903f04c95256216fda7495f6086c (diff)
Add build of MSI packages (#1148)
Diffstat (limited to 'share')
-rw-r--r--share/windows/wix-banner.bmpbin0 -> 85894 bytes
-rw-r--r--share/windows/wix-dialog.bmpbin0 -> 461814 bytes
-rw-r--r--share/windows/wix-patch.xml8
-rw-r--r--share/windows/wix-template.xml51
4 files changed, 59 insertions, 0 deletions
diff --git a/share/windows/wix-banner.bmp b/share/windows/wix-banner.bmp
new file mode 100644
index 000000000..14a13b8f1
--- /dev/null
+++ b/share/windows/wix-banner.bmp
Binary files differ
diff --git a/share/windows/wix-dialog.bmp b/share/windows/wix-dialog.bmp
new file mode 100644
index 000000000..b26ad1e25
--- /dev/null
+++ b/share/windows/wix-dialog.bmp
Binary files differ
diff --git a/share/windows/wix-patch.xml b/share/windows/wix-patch.xml
new file mode 100644
index 000000000..1c1d222a9
--- /dev/null
+++ b/share/windows/wix-patch.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<CPackWiXPatch>
+ <CPackWiXFragment Id="CM_FP_KeePassXC.exe">
+ <Shortcut Id="CM_SP_KeePassXC.exe" Directory="ProgramMenuFolder"
+ Name="KeePassXC" Icon="ProductIcon.ico"
+ WorkingDirectory="INSTALL_ROOT" Advertise="yes" />
+ </CPackWiXFragment>
+</CPackWiXPatch>
diff --git a/share/windows/wix-template.xml b/share/windows/wix-template.xml
new file mode 100644
index 000000000..1e47029ef
--- /dev/null
+++ b/share/windows/wix-template.xml
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<?include "cpack_variables.wxi"?>
+
+<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
+ 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>
+ </Product>
+</Wix>