<serializedBean>
<property name="failIfNotObtainedMac" type="boolean" value="false" />
<property name="failIfNotObtainedWin" type="boolean" value="false" />
- <property name="obtainIfAdminMac" type="boolean" value="true" />
+ </serializedBean>
+ </action>
+ <action name="BOTHSPACE: Set isAdmin flag" id="2970" beanClass="com.install4j.runtime.beans.actions.control.SetVariableAction" actionElevationType="elevated" rollbackBarrierExitCode="0">
+ <serializedBean>
+ <property name="script">
+ <object class="com.install4j.api.beans.ScriptProperty">
+ <property name="value" type="string">Util.hasFullAdminRights() // this doesn't seem to work in some conditionals so creating our own boolean</property>
+ </object>
+ </property>
+ <property name="variableName" type="string">isAdmin</property>
</serializedBean>
</action>
<action name="BOTHSPACE: Set makeSymbolicLink boolean variable?" id="2853" beanClass="com.install4j.runtime.beans.actions.control.SetVariableAction" rollbackBarrierExitCode="0">
</property>
<property name="variableName" type="string">macWrapperLinkLocation</property>
</serializedBean>
- <condition>Util.isMacOS() && !Util.hasFullAdminRights() // Admin on macOS will add path to /etc/paths.d in Create File action</condition>
+ <condition>Util.isMacOS() && !context.getBooleanVariable("isAdmin") // Admin on macOS will add path to /etc/paths.d in Create File action</condition>
</action>
</actions>
</screen>
<property name="subTitle" type="string">User account</property>
<property name="title" type="string">${i18n:WizardSelectTasks}</property>
</serializedBean>
- <condition>!Util.hasFullAdminRights()</condition>
+ <condition>!context.getBooleanVariable("isAdmin")</condition>
<formComponents>
<formComponent id="2894" beanClass="com.install4j.runtime.beans.formcomponents.MultilineLabelComponent" insetBottom="10">
<serializedBean>
( Util.isMacOS() && !Util.hasFullAdminRights() ) // Admin on macOS will add path to /etc/paths.d
&& context.getVariable("macWrapperLinkLocation") != null
)
- )
-</visibilityScript>
+ )</visibilityScript>
</formComponent>
</formComponents>
</screen>
<property name="subTitle" type="string">System</property>
<property name="title" type="string">${i18n:WizardSelectTasks}</property>
</serializedBean>
- <condition>Util.hasFullAdminRights()</condition>
+ <condition>context.getBooleanVariable("isAdmin")</condition>
<formComponents>
<formComponent id="2904" beanClass="com.install4j.runtime.beans.formcomponents.MultilineLabelComponent" insetBottom="10">
<serializedBean>
</action>
</beans>
</group>
- <group name="USERSPACE: Actions" id="2921" beanClass="com.install4j.runtime.beans.groups.ActionGroup">
+ <group name="USERSPACE: Actions" id="2921" beanClass="com.install4j.runtime.beans.groups.ActionGroup" actionElevationType="none">
<serializedBean>
<property name="conditionExpression">
<object class="com.install4j.api.beans.ScriptProperty">
- <property name="value" type="string">!Util.hasFullAdminRights()</property>
+ <property name="value" type="string">!context.getBooleanVariable("isAdmin")</property>
</object>
</property>
</serializedBean>
</action>
</beans>
</group>
- <group name="SYSTEMSPACE: Actions" id="2954" beanClass="com.install4j.runtime.beans.groups.ActionGroup">
+ <group name="SYSTEMSPACE: Actions" id="2954" beanClass="com.install4j.runtime.beans.groups.ActionGroup" actionElevationType="elevated">
<serializedBean>
<property name="conditionExpression">
<object class="com.install4j.api.beans.ScriptProperty">
- <property name="value" type="string">Util.hasFullAdminRights()</property>
+ <property name="value" type="string">context.getBooleanVariable("isAdmin")</property>
</object>
</property>
</serializedBean>
</action>
</beans>
</group>
- <group name="BOTHSPACE: Actions" id="2956" beanClass="com.install4j.runtime.beans.groups.ActionGroup">
+ <group name="BOTHSPACE: Actions" id="2956" beanClass="com.install4j.runtime.beans.groups.ActionGroup" actionElevationType="elevated">
<beans>
<action name="BOTHSPACE: Create Linux/Unix user symbolic link to jalview.sh in system bin" id="2955" beanClass="com.install4j.runtime.beans.actions.files.CreateSymlinkAction" rollbackBarrierExitCode="0" errorMessage="Could not make a ${compiler:WRAPPER_LINK} symbolic link in ~/${installer:unixBinDir}">
<serializedBean>
</formComponent>
</formComponents>
</screen>
- <screen id="20" beanClass="com.install4j.runtime.beans.screens.FinishedScreen" actionElevationType="elevated" rollbackBarrierExitCode="0" finishScreen="true">
+ <screen id="20" beanClass="com.install4j.runtime.beans.screens.FinishedScreen" rollbackBarrierExitCode="0" finishScreen="true">
<formComponents>
<formComponent id="21" beanClass="com.install4j.runtime.beans.formcomponents.MultilineLabelComponent" insetBottom="10">
<serializedBean>