windows installer: disallow downgrades, allow upgrades

This commit is contained in:
Armin Schrenk 2021-08-12 11:04:16 +02:00
parent b255996619
commit 4b9ae03bc2
No known key found for this signature in database
GPG Key ID: 8F2992163CBBA7FC

27
dist/win/resources/overrides.wxi vendored Normal file
View File

@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Stub by design -->
<!--
overrides.wxi is a placeholder to set/alter WiX variables referenced from default
main.wxs file.
Put custom overrides.wxi in resource directory to replace this default file.
Override default overrides.wxi if configuring of msi installers through jpackage
command line is not sufficient.
WiX variables referenced from default main.wxs that can be altered in custom overrides.wxi:
- JpProductLanguage
Value of `Language` attribute of `Product` WiX element. Default value is 1033.
- JpInstallerVersion
Value of `InstallerVersion` attribute of `Package` WiX element. Default value is 200.
- JpCompressedMsi
Value of `Compressed` attribute of `Package` WiX element. Default value is `yes`.
-->
<?define JpAllowDowngrades="no" ?>
<?define JpAllowUpgrades="yes" ?>
<Include/>