From: Ben Soares Date: Wed, 28 Aug 2024 12:17:06 +0000 (+0100) Subject: JAL-3631 Allow unixBinDir (where a symbolic link gets made) to be set in response... X-Git-Tag: Release_2_11_4_0~14^2~8^2~1 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=0f709498e152ee504198a378472a348a1d91590d;p=jalview.git JAL-3631 Allow unixBinDir (where a symbolic link gets made) to be set in response.varfile. If it's not set or empty then the usual (dynamic) default will be ascertained. Disallow reading in certain variables from the response.varfile that would just mess up the installation if changed. --- diff --git a/utils/install4j/install4j10_template.install4j b/utils/install4j/install4j10_template.install4j index 32f645d..c5d1460 100644 --- a/utils/install4j/install4j10_template.install4j +++ b/utils/install4j/install4j10_template.install4j @@ -689,7 +689,6 @@ public static final String getCanonicalFullPathToDirectoryHash(String installerA - @@ -720,7 +719,8 @@ return null; unixBinDir - context.getBooleanVariable("makeSymbolicLink") + context.getBooleanVariable("makeSymbolicLink") +&& (context.getVariable("unixBinDir") == null || context.getVariable("unixBinDir").toString().length() == 0) @@ -991,8 +991,12 @@ return true; - + sys.installationDir + sys.adminRights$Boolean + sys.adminRightsUiRootUnix$Boolean + sys.component.1031$Boolean + sys.fileAssociation.launchers$StringArray context.getBooleanVariable("sys.confirmedUpdateInstallation") @@ -1039,8 +1043,12 @@ return console.askOkCancel(message, true); - + sys.installationDir + sys.adminRights$Boolean + sys.adminRightsUiRootUnix$Boolean + sys.component.1031$Boolean + sys.fileAssociation.launchers$StringArray context.getVariable("sys.responseFile") == null