Skip to content

Commit

Permalink
Installer allows to select installation for all users or current user
Browse files Browse the repository at this point in the history
* Add install for all users/single user form

* Add possibility to navigate back from folder selection

* Simpler implementation: set path to user dir if normal user, set path to program files if admin user

* asdf

* Try other shit

* Fix this shit once for all
  • Loading branch information
stefan-kolb committed Apr 7, 2016
1 parent 1df3c01 commit e534688
Showing 1 changed file with 38 additions and 13 deletions.
51 changes: 38 additions & 13 deletions jabref.install4j
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<install4j version="6.0.4" transformSequenceNumber="5">
<install4j version="6.1.1" transformSequenceNumber="5">
<directoryPresets config="./buildres/JabRef.VisualElementsManifest.xml" />
<application name="JabRef" distributionSourceDir="" applicationId="0034-7691-1464-4754" mediaDir="build/install4j" mediaFilePattern="${compiler:sys.shortName}_${compiler:sys.platform}_${compiler:sys.version}" compression="6" lzmaCompression="false" pack200Compression="false" excludeSignedFromPacking="true" commonExternalFiles="false" createMd5Sums="true" shrinkRuntime="true" shortName="JabRef" publisher="JabRef Community" publisherWeb="http://www.jabref.org/" version="DEV" allPathsRelative="true" backupOnSave="false" autoSave="true" convertDotsToUnderscores="true" macSignature="????" macVolumeId="780dfea2d33a0244" javaMinVersion="1.8" javaMaxVersion="" allowBetaVM="false" jdkMode="runtimeJre" jdkName="">
<languages skipLanguageSelection="true" languageSelectionInPrincipalLanguage="false">
Expand Down Expand Up @@ -73,6 +73,7 @@
<archive location="${compiler:buildFileName}" failOnError="false" />
</classPath>
<nativeLibraryDirectories />
<vmOptions />
</java>
<includedFiles />
<unextractableFiles />
Expand Down Expand Up @@ -117,16 +118,7 @@
<validation />
<preActivation />
<postActivation />
<actions>
<action name="" id="13" customizedId="" beanClass="com.install4j.runtime.beans.actions.misc.RequestPrivilegesAction" enabled="true" commentSet="false" comment="" actionElevationType="none" rollbackBarrier="false" multiExec="false" failureStrategy="1" errorMessage="">
<serializedBean>
<java class="java.beans.XMLDecoder">
<object class="com.install4j.runtime.beans.actions.misc.RequestPrivilegesAction" />
</java>
</serializedBean>
<condition />
</action>
</actions>
<actions />
<formComponents />
</screen>
</startup>
Expand Down Expand Up @@ -158,13 +150,46 @@
</serializedBean>
<condition>context.getBooleanVariable("sys.confirmedUpdateInstallation")</condition>
</action>
<action name="" id="13" customizedId="" beanClass="com.install4j.runtime.beans.actions.misc.RequestPrivilegesAction" enabled="true" commentSet="false" comment="" actionElevationType="none" rollbackBarrier="false" multiExec="false" failureStrategy="1" errorMessage="">
<serializedBean>
<java class="java.beans.XMLDecoder">
<object class="com.install4j.runtime.beans.actions.misc.RequestPrivilegesAction" />
</java>
</serializedBean>
<condition />
</action>
<action name="" id="184" customizedId="" beanClass="com.install4j.runtime.beans.actions.control.RunScriptAction" enabled="true" commentSet="false" comment="" actionElevationType="elevated" rollbackBarrier="false" multiExec="true" failureStrategy="1" errorMessage="">
<serializedBean>
<java class="java.beans.XMLDecoder">
<object class="com.install4j.runtime.beans.actions.control.RunScriptAction">
<void property="script">
<object class="com.install4j.api.beans.ScriptProperty">
<void property="value">
<string>if (Util.hasFullAdminRights()) {
context.setInstallationDirectory(context.getInstallationDirectory());
} else {
context.setInstallationDirectory(new File(System.getProperty("user.home"), "JabRef"));
}
return true;</string>
</void>
</object>
</void>
</object>
</java>
</serializedBean>
<condition />
</action>
</actions>
<formComponents />
</screen>
<screen name="" id="4" customizedId="" beanClass="com.install4j.runtime.beans.screens.InstallationDirectoryScreen" enabled="true" commentSet="false" comment="" actionElevationType="inherit" rollbackBarrier="false" backButton="2" finishScreen="false" wizardIndexChangeType="unchanged" wizardIndexKey="">
<serializedBean>
<java class="java.beans.XMLDecoder">
<object class="com.install4j.runtime.beans.screens.InstallationDirectoryScreen" />
<object class="com.install4j.runtime.beans.screens.InstallationDirectoryScreen">
<void property="suggestAppDir">
<boolean>false</boolean>
</void>
</object>
</java>
</serializedBean>
<condition>!context.getBooleanVariable("sys.confirmedUpdateInstallation")</condition>
Expand Down Expand Up @@ -331,7 +356,7 @@
<action name="" id="86" customizedId="" beanClass="com.install4j.runtime.beans.actions.desktop.AddToDockAction" enabled="true" commentSet="false" comment="" actionElevationType="none" rollbackBarrier="false" multiExec="false" failureStrategy="1" errorMessage="">
<serializedBean>
<java class="java.beans.XMLDecoder">
<object class="com.install4j.runtime.beans.actions.desktop.AddToDockAction">
<object class="com.install4j.runtime.beans.actions.desktop.AddToDockAction">
<void property="executable">
<object class="java.io.File">
<string>JabRef</string>
Expand Down

0 comments on commit e534688

Please sign in to comment.