1

我正在尝试让无头安装程序工作(从远程 Linux 的命令行安装)

但是每次我运行命令时,我都会立即得到这个

java -jar install.jar -console
[ Console Installation done ] 

我必须做什么才能让安装程序使用 -console 命令,我宁愿让它工作而不是求助于使用自动安装 XML 文件

这是我使用 izpack 5.0.0 的 Izpack XML

 <?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>

<!-- 
    A sample installation file.
    Use it as a base for your own installers :-)

    To compile it :
    - go in the bin directory where you installed IzPack
    - call "compile ../sample/install.xml -b ../sample"
-->

<installation version="1.0">

    <!-- 
        The info section.
        The meaning of the tags should be natural ...
    -->
    <info>
        <appname>EMEProvisioningSDK</appname>
        <appversion>${project.version}-Linux</appversion>
      <!--
        <authors>
            <author name="Anthony Lafleur-Tighe" email="anthony.lafleur-tighe@ericsson.com"/>
        </authors>
        <url>http://prodcat.ericsson.se/frontend/category.action?code=FGB%20101%20652&path=%5cNavigation%20Root%5cFGA%20101%2017%5cFGB%20101%20743%5cFGB%20101%20399</url>
Roll       -->
    </info>

    <!-- 
        The gui preferences indication.
        Sets the installer window to 640x480. It will not be able to change the size.
    -->
    <guiprefs width="640" height="480" resizable="yes"/>

    <!-- 
        The locale section.
        Asks here to include the English and French langpacks.
    -->
    <locale>
        <langpack iso3="eng"/>
    </locale>

    <!-- 
        The resources section.
        The ids must be these ones if you want to use the LicencePanel and/or the InfoPanel.
    -->
    <resources>
        <res id="LicencePanel.licence" src="Licence.txt"/>
        <res id="InfoPanel.info" src="Readme.txt"/>
        <res id="ProcessPanel.Spec.xml" src="installProvisioningPanelSpec_linux.xml" />
        <res id="shortcutSpec.xml" src="shortcutSpec_linux.xml" />
    </resources>

    <!-- 
        The panels section.
        We indicate here which panels we want to use. The order will be respected.
    -->
    <panels>
        <panel classname="HelloPanel"/>
        <panel classname="InfoPanel"/>
        <panel classname="LicencePanel"/>
        <panel classname="TargetPanel"/>
        <panel classname="PacksPanel"/>
        <panel classname="InstallPanel"/>
        <panel classname="ProcessPanel" />
        <panel classname="ShortcutPanel"/>
        <panel classname="FinishPanel"/>
    </panels>

    <!-- 
        The packs section.
        We specify here our packs.
    -->
    <packs>
        <pack name="Base" required="yes">
            <description>The base files</description>
            <file src="Readme.txt" targetdir="$INSTALL_PATH"/>
            <file src="Licence.txt" targetdir="$INSTALL_PATH"/>
            <file src="unzip.exe" targetdir="$INSTALL_PATH"/>
            <file src="changePermissions.sh" targetdir="$INSTALL_PATH"/>
        </pack>
        <pack name="MCDProxy" required="yes">
            <description>The MCDProxy</description>
            <file src="install_mcd.sh" targetdir="$INSTALL_PATH"/>
            <file src="mcdproxy-component-eme-resource-assembly.zip" targetdir="$INSTALL_PATH"/>
            <file src="global-config.zip" targetdir="$INSTALL_PATH"/>
            <file src="MCDPROXY-CXC1736424-win32.zip" targetdir="$INSTALL_PATH"/>
            <file src="postgresql-jdbc-driver.jar" targetdir="$INSTALL_PATH"/>
        </pack>
        <pack name="Tomcat" required="yes">
            <description>Tomcat 7, web container for Provisioning Agent</description>
            <file src="tomcat-7.0.20-noarch-full.zip" targetdir="$INSTALL_PATH"/>
            <file src="install_tomcat.sh" targetdir="$INSTALL_PATH"/>
            <file src="tomcat-users.xml" targetdir="$INSTALL_PATH"/>
            <file src="security-component.jar" targetdir="$INSTALL_PATH"/>
            <file src="libsysutils-component.jar" targetdir="$INSTALL_PATH"/>
            <file src="libsysutils.so" targetdir="$INSTALL_PATH"/>
            <file src="common-oam.jar" targetdir="$INSTALL_PATH"/>
            <file src="common-debug.jar" targetdir="$INSTALL_PATH"/>
            <file src="common-cache.jar" targetdir="$INSTALL_PATH"/>
            <file src="common-mcd.jar" targetdir="$INSTALL_PATH"/>
            <file src="common-crypto.jar" targetdir="$INSTALL_PATH"/>
            <file src="mcc_common.jar" targetdir="$INSTALL_PATH"/>
        <file src="common-xml.jar" targetdir="$INSTALL_PATH"/>
    <file src="mcc_mfs.jar" targetdir="$INSTALL_PATH"/>
    <file src="mcc_sm.jar" targetdir="$INSTALL_PATH"/>
            <file src="security-component.jar" targetdir="$INSTALL_PATH"/>
            <file src="authentication-api.jar" targetdir="$INSTALL_PATH"/>
            <file src="mcc_identityformatter.jar" targetdir="$INSTALL_PATH"/>
            <file src="mail.jar" targetdir="$INSTALL_PATH"/>
            <file src="javax.mail-api.jar" targetdir="$INSTALL_PATH"/>
            <file src="mio-valve.jar" targetdir="$INSTALL_PATH"/>
            <file src="mio-filters.jar" targetdir="$INSTALL_PATH"/>
            <file src="mio_startup.sh" targetdir="$INSTALL_PATH"/>
        </pack>
        <pack name="Provisioning Agent" required="yes">
            <description>The Provisioning Agent</description>
            <file src="install_pa.sh" targetdir="$INSTALL_PATH"/>
            <file src="provisioningagent-web.war" targetdir="$INSTALL_PATH"/>
            <file src="provisioningagent-eme-config-assembly.zip" targetdir="$INSTALL_PATH"/>
            <file src="samples.zip" targetdir="$INSTALL_PATH"/>

        </pack>
        <pack name="PostgreSQL" required="yes">
            <description>PostgreSQL Relational DB</description>
            <file src="postgresql-9.1.2-150.1.x86_64.rpm" targetdir="$INSTALL_PATH"/>
            <file src="postgresql-libs-9.1.2-66.1.x86_64.rpm" targetdir="$INSTALL_PATH"/>
            <file src="postgresql-server-9.1.2-150.1.x86_64.rpm" targetdir="$INSTALL_PATH"/>
            <file src="pg_hba.conf" targetdir="$INSTALL_PATH"/>
            <file src="install_postgresql.sh" targetdir="$INSTALL_PATH"/>
            <executable targetfile="$INSTALL_PATH/changePermissions.sh" type="bin" stage="postinstall" keep="true" failure="warn" os="linux">
             <args>
               <arg value="$INSTALL_PATH"/> 
              </args>
            </executable>
        </pack>
    </packs>
</installation>
4

1 回答 1

0

换线

<installation version="1.0">

<installation version="5.0">

IzPack 5.0.* 不能与 1.0 版一起正常工作。

于 2016-02-26T16:24:30.633 回答