IzPack executable does not work for linux scripts

I am trying to create an installer for my one of java applications.

According to the documentation here, the executable is used to execute sumthing during the installation process or can be used to set the executable flag on unix-like systems.

But when I use the same thing inside one of my packages, it does nothing. Thus, my work becomes unsuccessful with few exceptions.

Java.io.IOException: cannot start program / home / user / 1.0 / installations / test.sh: error = 13, Permission Denied

The following is the package definition inside the install.xml file

<pack name="Install Database Server" required="no" preselected="no"
installGroups="New Application">
    <description>New server installation of the selected database as
        required by the application.
    </description>
    <fileset dir="installations" targetdir="$INSTALL_PATH/$APP_VERSION/installations">
        <include name="**" />
    </fileset>
    <executable target="$INSTALL_PATH/$APP_VERSION/installations/test.sh"
        stage="never" keep="true" os="unix">
    </executable>
</pack>

And below is the XML file for the Job process specification.

<job name="TestInstaller">
    <executefile name="$INSTALL_PATH/$APP_VERSION/installations/test.sh">
    </executefile>
</job>

So can someone please help me with this.

Thanks in advance.

+4
2

os - . install.xml :

<executable target="$INSTALL_PATH/$APP_VERSION/installations/test.sh"
    stage="never" keep="true">
    <os family="unix" />
</executable>

-unix- , XML:

<job name="TestInstaller">
    <executefile name="$INSTALL_PATH/$APP_VERSION/installations/test.sh">
        <os family="unix" />
    </executefile>
</job>
+1

ProcessPanel, :

<pack name="Pack" id="pack" required="yes">
  <description>Pack</description>
  <executable targetfile="${INSTALL_PATH}/bin/run.sh" os="unix" stage="never" failure="warn" keep="true" />
</pack>
0

Source: https://habr.com/ru/post/1598157/


All Articles