Install4j: Difference between revisions
Jump to navigation
Jump to search
Line 29: | Line 29: | ||
* [https://stackoverflow.com/questions/44280888 Script to Start/Stop a service in install4j] | * [https://stackoverflow.com/questions/44280888 Script to Start/Stop a service in install4j] | ||
==Service== | ==[http://resources.ej-technologies.com/install4j/help/doc/index.html#install4j.helptopics.concepts.services Service]== | ||
* [https://stackoverflow.com/questions/44280888 Configure Start/Stop a service in install4j] | * [https://stackoverflow.com/questions/44280888 Configure Start/Stop a service in install4j] | ||
==[http://resources.ej-technologies.com/install4j/help/doc/index.html#install4j.helptopics.concepts.variables Variables]== | |||
With variables you can customize many aspects of install4j. They can be used in all text fields and text properties in the install4j IDE as well as from the install4j API. The general variable syntax is | |||
${prefix:variableName} | |||
==References== | ==References== |
Revision as of 22:59, 24 March 2019
# export ANT_HOME
# export INSTALL4J_HOME
export INSTALL4J_JAVA_HOME=$JRE_HOME
export PATH=$INSTALL4J_HOME/bin:$PATH
install4jc --help
Ant Build
<project name="hello" default="media">
<property environment="env"/>
<property name="install4jHomeDir" location="${env.INSTALL4J_HOME}"/>
<fail message="Specify install4jHomeDir in build.xml" unless="install4jHomeDir"/>
<target name="media">
<taskdef name="install4j"
classname="com.install4j.Install4JTask"
classpath="${install4jHomeDir}/bin/ant.jar"/>
<install4j projectfile="hello.install4j"/>
</target>
</project>
Script
Service
Variables
With variables you can customize many aspects of install4j. They can be used in all text fields and text properties in the install4j IDE as well as from the install4j API. The general variable syntax is
${prefix:variableName}