2016-04-08 14 views
1

Ich bin mit meinem Witz damit Schluss.IzPack Shortcut Nightmare

Ich habe einen sehr einfachen Installationsdeskriptor für izpack für eine Zwei-Paket-Java-Anwendung unter Windows. Alles funktioniert wie vorgesehen, AUSSER für die Verknüpfungserstellung. Das Shortcut-Panel scheint zunächst nicht richtig zu sein. Die Beschriftung "ShortcutPanel.regular.startup" wird anstelle von "beim Start ausführen" oder etwas der Art in der Startausführung Kontrollkästchen angezeigt.

Something's not quite right...

Nachdem das Installationsprogramm ausgeführt wird, werden die Verknüpfungen einfach nicht erstellt. Hier ist, was meine install.xml aussieht, es ist ziemlich einfach:

<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> 

Dann gibt es die shortcutSpec.xml. Mein Pom macht es zu meinem Testverzeichnis:

<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> 

Das Installationsprogramm einfach keine Verknüpfungen überall schafft. Es endet mit keine Fehlermeldungen keine Protokolle keine Stack-Spuren nichts.

Hilfe.

Antwort

0

ich festgelegt, dass durch in den IzPack/lib/IzPack-Core-5.0.9.jar gehen und Öffnen der /com/izforge/IzPack/ist/Langpack/installer/ Ordner darin. Dann Bearbeiten der bra.xml-Datei und fügen Sie die folgende Zeile:

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

dann speichern und die Datei in dem Glas aktualisieren und Ihre Installation wieder aufzubauen.