From 0f709498e152ee504198a378472a348a1d91590d Mon Sep 17 00:00:00 2001 From: Ben Soares Date: Wed, 28 Aug 2024 13:17:06 +0100 Subject: [PATCH] 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. --- utils/install4j/install4j10_template.install4j | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) 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 -- 1.7.10.2