2016-04-08 3 views
1

Je suis à bout de nerfs avec ça.IzPack Shortcut Nightmare

J'ai un descripteur d'installation TRÈS simple pour izpack pour une application Java à deux paquets sous Windows. Tout fonctionne comme prévu SAUF pour la création de raccourci. Le panneau de raccourci ne semble pas correct, pour commencer. Le libellé "ShortcutPanel.regular.startup" est affiché à la place de "Exécuter au démarrage" ou quelque chose de ce genre dans la case à cocher d'exécution au démarrage.

Something's not quite right...

Après avoir exécuté le programme d'installation, les raccourcis sont tout simplement pas créés. Voici ce que mon install.xml ressemble, il est assez simple:

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

Puis il y a le shortcutSpec.xml. Mon pom se déplace à mon répertoire de mise en scène:

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

Le programme d'installation ne crée pas simplement des raccourcis partout. Il se termine sans messages d'erreur aucun journal ne trace aucune trace de rien.

Aide.

Répondre

0

Je fixe en allant dans le IzPack/lib/IzPack-core-5.0.9.jar et en ouvrant le /com/izforge/IzPack/bin/langpacks/installateur/dossier en elle. éditer le fichier de bra.xml et en ajoutant la ligne suivante:

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

ensuite enregistrer et mettre à jour le fichier dans le pot et reconstruire votre instalation.