[IzPack] Ajout du panel de raccourcis
Bonjour,
dans le cadre d'un projet que j'ai à réaliser, j'utilise IzPack afin de copier les fichiers de mon application Java sur le disque de l'utilisateur.
Par défaut, tout marche correctement mais je souhaite ajouter le panneau de création des raccourcis, qui est quand même bien pratique.
Voilà mon fichier install.xml (en partie)
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77
|
<guiprefs width="640" height="480" resizable="no"/>
<!--
The locale section.
Asks here to include the English and French langpacks.
-->
<locale>
<langpack iso3="eng"/>
<langpack iso3="fra"/>
</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 src="D:\Applications\IzPack\src\dist-files\shortcutSpec.xml" id="shortcutSpec.xml"/>
<res src="D:\Applications\IzPack\src\dist-files\Unix_shortcutSpec.xml" id="Unix_shortcutSpec.xml"/>
</resources>
<native type="izpack" name="ShellLink.dll"/>
<!--
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="ShortcutPanel"/>
<panel classname="PacksPanel"/>
<panel classname="InstallPanel"/>
<panel classname="FinishPanel"/>
</panels>
<!--
The packs section.
We specify here our packs.
-->
<packs>
<pack name="Base" required="yes">
<description>Fichiers de l'application</description>
<file src="exe" targetdir="$INSTALL_PATH"/>
<!-- The file will be parsed -->
</pack>
<pack name="Docs" required="no">
<description>Documentation de l'application</description>
<file src="doc" targetdir="$INSTALL_PATH"/>
<!-- Reccursive adding -->
</pack>
<pack name="Sources" required="no">
<description>Fichiers sources de l'application</description>
<file src="src" targetdir="$INSTALL_PATH"/>
</pack>
</packs>
<shortcuts>
<programGroup defaultName="JavaPaint" location="applications"/>
<shortcut
name="Lancer JavaPaint"
target="$INSTALL_PATH\exe\Paint__.jar"
description="Lancer JavaPaint"
programGroup="no"
desktop="yes"
applications="yes"
startMenu="no"
startup="no">
<createForPack name="Base"/>
</shortcut>
</shortcuts>
</installation> |
Je ne comprend pas d'où vient le problème, j'ai bien suivi la doc :
1) Lier Shelllink.dll (ça fonctionne, j'ai vérifié au compilateur)
2) Lier les fichiers de définitions des spec' de raccourcis (là aussi vérifié, j'ai ouvert l'installeur avec Winrar et les fichiers sont bien inclus)
3) Créer les balises de shortcut (là il n'y en a qu'une, mais ça ne marche pas quand même...)
Une idée d'où ça pourrait venir ?