Install4j: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
Line 36: Line 36:
==Repository==
==Repository==
<source lang="xml">
<source lang="xml">
<repositories>
<repository>
     <repository>
     <id>ej-technologies</id>
        <id>ej-technologies</id>
    <url>https://maven.ej-technologies.com/repository</url>
        <url>https://maven.ej-technologies.com/repository</url>
    <snapshots><enabled>false</enabled><updatePolicy>never</updatePolicy></snapshots>
        <snapshots><enabled>false</enabled><updatePolicy>never</updatePolicy></snapshots>
    <releases><enabled>true</enabled><updatePolicy>daily</updatePolicy></releases>
        <releases><enabled>true</enabled><updatePolicy>daily</updatePolicy></releases>
</repository>
     </repository>
</source>
</repositories>
 
==Dependency==
<source lang="xml">
<dependency>
    <groupId>com.install4j</groupId>
     <artifactId>install4j-runtime</artifactId>
    <version>7.0.10</version>
    <scope>provided</scope>
</dependency>
</source>
</source>



Revision as of 23:06, 8 June 2019

#!/bin/bash
# export ANT_HOME
# export INSTALL4J_HOME
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="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>

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

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}

References