Install4j: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
<source lang="bash">
<source lang="bash">
# export ANT_HOME
#!/bin/bash
# export INSTALL4J_HOME
# export ANT_HOME="/opt/cli/apache-ant-1.9.9"
 
# export INSTALL4J_HOME="/Applications/install4j.app/Contents/Resources/app"
export INSTALL4J_JAVA_HOME=$JRE_HOME
export INSTALL4J_JAVA_HOME=$JRE_HOME
export PATH=$INSTALL4J_HOME/bin:$PATH
export PATH=$INSTALL4J_HOME/bin:$PATH
install4jc --help
</source>


<source lang="batch">
@echo off
if "%OS%" == "Windows_NT" setlocal
set "INSTALL4J_HOME=C:\Program Files\install4j7"
set "PATH=%INSTALL4J_HOME%\bin;%PATH%"
set "INSTALL4J_JAVA_HOME=%JRE_HOME%"
install4jc --help
install4jc --help
</source>
</source>
Line 11: Line 19:
==Ant Build==
==Ant Build==
<source lang="xml">
<source lang="xml">
<project name="hello" default="media">
<project name="make4j" default="media">
   <property environment="env"/>
   <property environment="env"/>
   <property name="install4jHomeDir" location="${env.INSTALL4J_HOME}"/>
   <property name="install4jHomeDir" location="${env.INSTALL4J_HOME}"/>
Line 21: Line 29:
             classpath="${install4jHomeDir}/bin/ant.jar"/>
             classpath="${install4jHomeDir}/bin/ant.jar"/>


     <install4j projectfile="hello.install4j"/>
     <install4j projectfile="init.install4j"/>
   </target>
   </target>
</project>
</project>
</source>
</source>


==Script==
==Repository==
<source lang="xml">
<repository>
    <id>ej-technologies</id>
    <url>https://maven.ej-technologies.com/repository</url>
    <snapshots><enabled>false</enabled><updatePolicy>never</updatePolicy></snapshots>
    <releases><enabled>true</enabled><updatePolicy>daily</updatePolicy></releases>
</repository>
</source>
 
==Dependency==
<source lang="xml">
<dependency>
    <groupId>com.install4j</groupId>
    <artifactId>install4j-runtime</artifactId>
    <version>7.0.10</version>
    <scope>provided</scope>
</dependency>
</source>
 
==Script References==
* [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]
* [https://stackoverflow.com/questions/14894488 Enable/disabled Next Button in install4j]
* [https://stackoverflow.com/questions/14894488 Enable/disabled Next Button in install4j]
* [https://stackoverflow.com/questions/16278630 Form Text Field reset using validation]


==[http://resources.ej-technologies.com/install4j/help/doc/index.html#install4j.helptopics.concepts.services Service]==
==[http://resources.ej-technologies.com/install4j/help/doc/index.html#install4j.helptopics.concepts.services Service References]==
* [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]==
==[http://resources.ej-technologies.com/install4j/help/doc/index.html#install4j.helptopics.concepts.variables Variables References]==
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
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


Line 39: Line 68:


==References==
==References==
 
{|
* [https://www.ej-technologies.com/resources/install4j/help/doc/#install4j.helptopics.installers.options Command Line Options For Generated Installers]
| valign="top" |
* [https://www.ej-technologies.com/resources/install4j/help/doc/#install4j.helptopics.installers.options CLI Options For Generated Installers]
* [https://www.ej-technologies.com/resources/install4j/help/doc/#install4j.cli Command Line Compiler]
* [https://www.ej-technologies.com/resources/install4j/help/doc/#install4j.cli Command Line Compiler]
* [https://mvn.chorke.com/m2/releases/com/install4j/install4j-runtime/ Maven Install4j Runtime]
* [https://github.com/sonatype/install4j-support/issues/19 Maven build for install4j]
* [https://github.com/sonatype/install4j-support/issues/19 Maven build for install4j]
* [https://www.ej-technologies.com/blog/2010/12/my-first-try-with-install4j/ My first try with Install4j]
* [https://stackoverflow.com/questions/tagged/install4j?sort=newest&page=1&pagesize=50 Stackoverflow Install4j]
* [https://stackoverflow.com/questions/tagged/install4j?sort=newest&page=1&pagesize=50 Stackoverflow Install4j]
* [https://www.ej-technologies.com/resources/install4j/help/doc/#install4j.helptopics.installers.responseFile Response Files]
* [https://www.ej-technologies.com/resources/install4j/help/doc/#install4j.helptopics.installers.responseFile Response Files]
* [https://www.ej-technologies.com/resources/install4j/help/doc/ Install4j Help]
* [https://www.ej-technologies.com/resources/install4j/help/doc/ Install4j Help]
* [https://www.ej-technologies.com/blog/category/tutorial/ Auto Update]
* [https://www.ej-technologies.com/products/install4j/extensions.html Extensions]
| valign="top" |
|}

Latest revision as of 20:12, 2 January 2021

#!/bin/bash
# export ANT_HOME="/opt/cli/apache-ant-1.9.9"
# export INSTALL4J_HOME="/Applications/install4j.app/Contents/Resources/app"
export INSTALL4J_JAVA_HOME=$JRE_HOME
export PATH=$INSTALL4J_HOME/bin:$PATH
install4jc --help
@echo off
if "%OS%" == "Windows_NT" setlocal
set "INSTALL4J_HOME=C:\Program Files\install4j7"
set "PATH=%INSTALL4J_HOME%\bin;%PATH%"
set "INSTALL4J_JAVA_HOME=%JRE_HOME%"
install4jc --help

Ant Build

<project name="make4j" 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="init.install4j"/>
  </target>
</project>

Repository

<repository>
    <id>ej-technologies</id>
    <url>https://maven.ej-technologies.com/repository</url>
    <snapshots><enabled>false</enabled><updatePolicy>never</updatePolicy></snapshots>
    <releases><enabled>true</enabled><updatePolicy>daily</updatePolicy></releases>
</repository>

Dependency

<dependency>
    <groupId>com.install4j</groupId>
    <artifactId>install4j-runtime</artifactId>
    <version>7.0.10</version>
    <scope>provided</scope>
</dependency>

Script References

Service References

Variables References

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