2016-04-08 24 views
1

私はこれで私のウィットの終わりです。IzPackショートカットナイトメア

Windows上の2つのパッケージのJavaアプリケーション用のizpack用の非常に簡単なインストール記述子があります。すべてが、ショートカットの作成を除いて、意図どおりに機能します。ショートカットパネルは、最初は正しいとは思われません。スタートアップの実行チェックボックスで、「起動時に実行する」または何らかの並べ替えの代わりに、ラベル「ShortcutPanel.regular.startup」が表示されます。

Something's not quite right...

インストーラを実行した後、ショートカットが単に作成されません。ここではそれはかなり簡単です、私のinstall.xmlのは次のようになります。

<izpack:installation version="5.0" 
xmlns:izpack="http://izpack.org/schema/installation" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://izpack.org/schema/installation http://izpack.org/schema/5.0/izpack-installation-5.0.xsd"> 

<info> 
    <appname>application_name</appname> 
    <appversion>2.0.0</appversion> 
    <appsubpath>myapp</appsubpath> 
    <javaversion>1.8</javaversion> 
</info> 

<locale> 
    <langpack iso3="bra" /> 
</locale> 

<resources> 
    <res src="shortcutSpec.xml" id="shortcutSpec.xml"/> 
</resources> 

<variables> 
    <variable name="TargetPanel.dir.windows" value="C:/Sistemas"/> 
</variables> 

<guiprefs width="800" height="600" resizable="no"> 
    <laf name="substance"> 
     <os family="windows" /> 
     <os family="unix" /> 
     <param name="variant" value="mist-silver" /> 
    </laf> 
    <modifier key="useHeadingPanel" value="yes" /> 
</guiprefs> 

<panels> 
    <panel classname="HelloPanel" /> 
    <panel classname="DefaultTargetPanel" /> 
    <panel classname="ShortcutPanel" /> 
    <panel classname="InstallPanel" /> 
    <panel classname="FinishPanel" /> 
</panels> 

<natives> 
    <native type="izpack" name="ShellLink.dll"> 
     <os family="windows"/> 
    </native> 
    <native type="izpack" name="ShellLink_x64.dll"> 
     <os family="windows"/> 
    </native> 
</natives> 

<packs> 
    <pack name="Pack1" required="yes"> 
     <description>one of the packs it's a jar</description> 
     <file src="lib/pack1.jar" targetdir="$INSTALL_PATH/pack1subdir" 
      override="true"> 
     </file> 
     <file src="imagens/logo.ico" targetdir="$INSTALL_PATH/pack1subdir/imagens/" 
      override="true" /> 
     <executable targetfile="lib/pack1.jar" type="jar" 
      stage="never"></executable> 
    </pack> 
    <pack name="Pack2" required="yes"> 
     <description>the other pack</description> 
     <file src="lib/pack2.jar" targetdir="$INSTALL_PATH/pack2subdir" 
      override="true"> 
     </file> 
     <file src="imagens/update.ico" targetdir="$INSTALL_PATH/pack2subdir/imagens/" 
      override="true" /> 
     <executable targetfile="lib/pack2.jar" type="jar" 
      stage="never"></executable> 
    </pack> 
</packs> 

その後shortcutSpec.xmlがあります。私のポンポンは、私のステージングディレクトリに移動:

<izpack:shortcuts version="5.0" 
xmlns:izpack="http://izpack.org/schema/shortcuts" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://izpack.org/schema/shortcuts http://izpack.org/schema/5.0/izpack-shortcuts-5.0.xsd"> 

<lateShortcutInstall /> 

<shortcut name="pack1" programGroup="false" 
    desktop="true" applications="false" startMenu="no" startup="true" 
    target="java -jar $INSTALL_PATH/pack1subdir/pack1.jar" 
    workingDirectory="$INSTALL_PATH/pack1subdir/"> 
    <createForPack name="pack1" /> 
</shortcut> 

<shortcut name="pack2" programGroup="false" 
    desktop="true" applications="false" startMenu="no" startup="true" 
    target="java -jar $INSTALL_PATH/pack2subdir/pack1.jar" 
    workingDirectory="$INSTALL_PATH/pack2subdir/"> 
    <createForPack name="pack2" /> 
</shortcut> 

インストーラは、単にどこでも任意のショートカットを作成しません。エラーメッセージなしで終了します。ログはありません。スタックトレースは何もありません。

ヘルプ。

答えて

0

私はのIzPack/libに/のIzPack-コア-5.0.9.jarに入ると、それに/COM/izforge /のIzPack/binに/ langpacks /インストーラ/フォルダを開いていることを修正しました。そして、bra.xmlファイルを編集し、次の行を追加:

<str id="ShortcutPanel.regular.startup" txt="Iniciar com o Windows"/> 

は、次に保存して、瓶内のファイルを更新してインスタレーションを再構築します。

関連する問題