File tree Expand file tree Collapse file tree 3 files changed +12
-10
lines changed
src/jdk.jpackage/windows/classes/jdk/jpackage/internal Expand file tree Collapse file tree 3 files changed +12
-10
lines changed Original file line number Diff line number Diff line change 106106 * value generated by jpackage every time {@link #execute} method is called if
107107 * --win-upgrade-uuid command line option is not specified. Otherwise this
108108 * variable is set to the value of --win-upgrade-uuid command line option
109- * <li>JpAllowDowngrades. Set to "yes" if --win-upgrade-uuid command line option
110- * was specified. Undefined otherwise
109+ * <li>JpAllowUpgrades. Set to "yes", but all that matters is it is defined.
110+ * <li>JpAllowDowngrades. Defined for application installers, and undefined for
111+ * Java runtime installers.
111112 * <li>JpConfigDir. Absolute path to the directory with generated WiX source
112113 * files.
113114 * <li>JpIsSystemWide. Set to "yes" if --win-per-user-install command line
@@ -450,7 +451,9 @@ private Map<String, String> prepareMainProjectFile(
450451 upgradeCode ));
451452
452453 data .put ("JpAllowUpgrades" , "yes" );
453- data .put ("JpAllowDowngrades" , "yes" );
454+ if (!StandardBundlerParam .isRuntimeInstaller (params )) {
455+ data .put ("JpAllowDowngrades" , "yes" );
456+ }
454457
455458 data .put ("JpAppName" , APP_NAME .fetchFrom (params ));
456459 data .put ("JpAppDescription" , DESCRIPTION .fetchFrom (params ));
Original file line number Diff line number Diff line change 1212 <?define JpInstallerVersion =200 ?>
1313 <?define JpCompressedMsi =yes ?>
1414
15+ <?include $(var.JpConfigDir)/overrides.wxi ?>
16+
1517 <?ifdef JpAllowUpgrades ?>
1618 <?define JpUpgradeVersionOnlyDetectUpgrade =" no" ?>
1719 <?else ?>
2325 <?define JpUpgradeVersionOnlyDetectDowngrade =" yes" ?>
2426 <?endif ?>
2527
26- <?include $(var.JpConfigDir)/overrides.wxi ?>
27-
2828 <Product
2929 Id =" $(var.JpProductCode)"
3030 Name =" $(var.JpAppName)"
Original file line number Diff line number Diff line change @@ -18,15 +18,14 @@ Value of `Language` attribute of `Product` WiX element. Default value is 1033.
1818- JpInstallerVersion
1919Value of `InstallerVersion` attribute of `Package` WiX element. Default value is 200.
2020
21- - JpCompressedMsi
22- Value of `Compressed` attribute of `Package` WiX element. Default value is `yes`.
23-
2421- JpAllowDowngrades
2522Should be defined to enable downgrades and undefined to disable downgrades.
26- Default value is `yes`.
23+ By default it is defined for applications and undefined for Runtime installer.
24+ Use <?define JpAllowUpgrades = "foo" ?> to enable or <?undef JpAllowUpgrades?>
25+ to disable (the value doesn't mater).
2726
2827- JpAllowUpgrades
2928Should be defined to enable upgrades and undefined to disable upgrades.
30- Default value is `yes` .
29+ By default it is defined, use <?undef JpAllowUpgrades?> to disable .
3130-->
3231<Include />
You can’t perform that action at this time.
0 commit comments