8273040: Turning off JpAllowDowngrades (or Upgrades)
Reviewed-by: asemenyuk
This commit is contained in:
parent
394ebc8642
commit
22a7191f70
@ -106,8 +106,9 @@ import org.xml.sax.SAXException;
|
|||||||
* value generated by jpackage every time {@link #execute} method is called if
|
* value generated by jpackage every time {@link #execute} method is called if
|
||||||
* --win-upgrade-uuid command line option is not specified. Otherwise this
|
* --win-upgrade-uuid command line option is not specified. Otherwise this
|
||||||
* variable is set to the value of --win-upgrade-uuid command line option
|
* variable is set to the value of --win-upgrade-uuid command line option
|
||||||
* <li>JpAllowDowngrades. Set to "yes" if --win-upgrade-uuid command line option
|
* <li>JpAllowUpgrades. Set to "yes", but all that matters is it is defined.
|
||||||
* was specified. Undefined otherwise
|
* <li>JpAllowDowngrades. Defined for application installers, and undefined for
|
||||||
|
* Java runtime installers.
|
||||||
* <li>JpConfigDir. Absolute path to the directory with generated WiX source
|
* <li>JpConfigDir. Absolute path to the directory with generated WiX source
|
||||||
* files.
|
* files.
|
||||||
* <li>JpIsSystemWide. Set to "yes" if --win-per-user-install command line
|
* <li>JpIsSystemWide. Set to "yes" if --win-per-user-install command line
|
||||||
@ -450,7 +451,9 @@ public class WinMsiBundler extends AbstractBundler {
|
|||||||
upgradeCode));
|
upgradeCode));
|
||||||
|
|
||||||
data.put("JpAllowUpgrades", "yes");
|
data.put("JpAllowUpgrades", "yes");
|
||||||
data.put("JpAllowDowngrades", "yes");
|
if (!StandardBundlerParam.isRuntimeInstaller(params)) {
|
||||||
|
data.put("JpAllowDowngrades", "yes");
|
||||||
|
}
|
||||||
|
|
||||||
data.put("JpAppName", APP_NAME.fetchFrom(params));
|
data.put("JpAppName", APP_NAME.fetchFrom(params));
|
||||||
data.put("JpAppDescription", DESCRIPTION.fetchFrom(params));
|
data.put("JpAppDescription", DESCRIPTION.fetchFrom(params));
|
||||||
|
@ -12,6 +12,8 @@
|
|||||||
<?define JpInstallerVersion=200 ?>
|
<?define JpInstallerVersion=200 ?>
|
||||||
<?define JpCompressedMsi=yes ?>
|
<?define JpCompressedMsi=yes ?>
|
||||||
|
|
||||||
|
<?include $(var.JpConfigDir)/overrides.wxi ?>
|
||||||
|
|
||||||
<?ifdef JpAllowUpgrades ?>
|
<?ifdef JpAllowUpgrades ?>
|
||||||
<?define JpUpgradeVersionOnlyDetectUpgrade="no"?>
|
<?define JpUpgradeVersionOnlyDetectUpgrade="no"?>
|
||||||
<?else?>
|
<?else?>
|
||||||
@ -23,8 +25,6 @@
|
|||||||
<?define JpUpgradeVersionOnlyDetectDowngrade="yes"?>
|
<?define JpUpgradeVersionOnlyDetectDowngrade="yes"?>
|
||||||
<?endif?>
|
<?endif?>
|
||||||
|
|
||||||
<?include $(var.JpConfigDir)/overrides.wxi ?>
|
|
||||||
|
|
||||||
<Product
|
<Product
|
||||||
Id="$(var.JpProductCode)"
|
Id="$(var.JpProductCode)"
|
||||||
Name="$(var.JpAppName)"
|
Name="$(var.JpAppName)"
|
||||||
|
@ -18,15 +18,14 @@ Value of `Language` attribute of `Product` WiX element. Default value is 1033.
|
|||||||
- JpInstallerVersion
|
- JpInstallerVersion
|
||||||
Value of `InstallerVersion` attribute of `Package` WiX element. Default value is 200.
|
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`.
|
|
||||||
|
|
||||||
- JpAllowDowngrades
|
- JpAllowDowngrades
|
||||||
Should be defined to enable downgrades and undefined to disable downgrades.
|
Should be defined to enable downgrades and undefined to disable downgrades.
|
||||||
Default value is `yes`.
|
By default it is defined for applications and undefined for Runtime installer.
|
||||||
|
Use <?define JpAllowUpgrades = "foo" ?> to enable or <?undef JpAllowUpgrades?>
|
||||||
|
to disable (the value doesn't mater).
|
||||||
|
|
||||||
- JpAllowUpgrades
|
- JpAllowUpgrades
|
||||||
Should be defined to enable upgrades and undefined to disable upgrades.
|
Should be defined to enable upgrades and undefined to disable upgrades.
|
||||||
Default value is `yes`.
|
By default it is defined, use <?undef JpAllowUpgrades?> to disable.
|
||||||
-->
|
-->
|
||||||
<Include/>
|
<Include/>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user