From acb90325e4fde76fbe1d67b80f451a76353908bd Mon Sep 17 00:00:00 2001 From: Ben Soares Date: Wed, 28 Aug 2024 11:53:00 +0100 Subject: [PATCH] JAL-3631 Adjustments to allow setting the Advanced options in the response.varfile. Also big improvement on setting sys.fileAssociation.launchers automatically so only sys.fileAssociation.extensions needs to be set in a response.varfile. --- utils/install4j/install4j10_template.install4j | 31 ++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/utils/install4j/install4j10_template.install4j b/utils/install4j/install4j10_template.install4j index 6369d95..39f5b4a 100644 --- a/utils/install4j/install4j10_template.install4j +++ b/utils/install4j/install4j10_template.install4j @@ -679,6 +679,8 @@ public static final String getCanonicalFullPathToDirectoryHash(String installerA + + Util.isLinux() || Util.isUnixInstaller() || ( Util.isMacosInstaller() && context.getBooleanVariable("isAdmin") ) @@ -741,6 +743,8 @@ return MacOSDir; + + Boolean.FALSE @@ -751,6 +755,8 @@ return MacOSDir; + + Boolean.TRUE @@ -761,6 +767,8 @@ return MacOSDir; + + Boolean.FALSE @@ -771,6 +779,8 @@ return MacOSDir; + + "" @@ -781,6 +791,8 @@ return MacOSDir; + + Boolean.FALSE @@ -888,6 +900,25 @@ return true; context.isConsole() || context.isUnattended() + + + + + String[] extensions = (String[]) context.getVariable("sys.fileAssociation.extensions"); +if (extensions == null) { + return false; +} +int num = extensions.length; +String[] launchers = new String[num]; +for (int i = 0; i < num; i++) { + launchers[i] = "JALVIEW"; +} +context.setVariable("sys.fileAssociation.launchers", launchers); +return true; + + + + -- 1.7.10.2