</action>
<action name="BOTHSPACE: Set makeSymbolicLink boolean variable?" id="2853" beanClass="com.install4j.runtime.beans.actions.control.SetVariableAction" rollbackBarrierExitCode="0">
<serializedBean>
+ <property name="onlyIfUndefined" type="boolean" value="true" />
+ <property name="responseFileVariable" type="boolean" value="true" />
<property name="script">
<object class="com.install4j.api.beans.ScriptProperty">
<property name="value" type="string">Util.isLinux() || Util.isUnixInstaller() || ( Util.isMacosInstaller() && context.getBooleanVariable("isAdmin") )</property>
</action>
<action name="BOTHSPACE: Set advancedOptions" id="3040" beanClass="com.install4j.runtime.beans.actions.control.SetVariableAction" rollbackBarrierExitCode="0">
<serializedBean>
+ <property name="onlyIfUndefined" type="boolean" value="true" />
+ <property name="responseFileVariable" type="boolean" value="true" />
<property name="script">
<object class="com.install4j.api.beans.ScriptProperty">
<property name="value" type="string">Boolean.FALSE</property>
</action>
<action name="BOTHSPACE: Set allowUserDefaultAppdirUpdates" id="2976" beanClass="com.install4j.runtime.beans.actions.control.SetVariableAction" rollbackBarrierExitCode="0">
<serializedBean>
+ <property name="onlyIfUndefined" type="boolean" value="true" />
+ <property name="responseFileVariable" type="boolean" value="true" />
<property name="script">
<object class="com.install4j.api.beans.ScriptProperty">
<property name="value" type="string">Boolean.TRUE</property>
</action>
<action name="BOTHSPACE: Set allowSetUserAppdirPath" id="3039" beanClass="com.install4j.runtime.beans.actions.control.SetVariableAction" rollbackBarrierExitCode="0">
<serializedBean>
+ <property name="onlyIfUndefined" type="boolean" value="true" />
+ <property name="responseFileVariable" type="boolean" value="true" />
<property name="script">
<object class="com.install4j.api.beans.ScriptProperty">
<property name="value" type="string">Boolean.FALSE</property>
</action>
<action name="BOTHSPACE: Set userAppdirPath" id="3038" beanClass="com.install4j.runtime.beans.actions.control.SetVariableAction" rollbackBarrierExitCode="0">
<serializedBean>
+ <property name="onlyIfUndefined" type="boolean" value="true" />
+ <property name="responseFileVariable" type="boolean" value="true" />
<property name="script">
<object class="com.install4j.api.beans.ScriptProperty">
<property name="value" type="string">""</property>
</action>
<action name="BOTHSPACE: Set allowInstallerAppdirUpdates" id="2977" beanClass="com.install4j.runtime.beans.actions.control.SetVariableAction" rollbackBarrierExitCode="0">
<serializedBean>
+ <property name="onlyIfUndefined" type="boolean" value="true" />
+ <property name="responseFileVariable" type="boolean" value="true" />
<property name="script">
<object class="com.install4j.api.beans.ScriptProperty">
<property name="value" type="string">Boolean.FALSE</property>
</serializedBean>
<condition>context.isConsole() || context.isUnattended()</condition>
</action>
+ <action name="Set sys.fileAssociation.launchers correctly" id="3080" beanClass="com.install4j.runtime.beans.actions.control.RunScriptAction" rollbackBarrierExitCode="0">
+ <serializedBean>
+ <property name="script">
+ <object class="com.install4j.api.beans.ScriptProperty">
+ <property name="value" type="string">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;</property>
+ </object>
+ </property>
+ </serializedBean>
+ </action>
</actions>
</screen>
</startup>