[izpack-users] problem creating shortcuts

mika mika.works at gentlemansclub.de
Fri Aug 4 14:14:39 CEST 2006


Hi,

install.xml:
<installation version="1.0">
  <info>
    <appname>Check for VirusUpdate</appname>
    <appversion>0.9 beta</appversion>
    <authors>
      <author name="Maik Schlotter" email="Maik.Schlotter at gmx.net" />
    </authors>
  </info>

  <guiprefs resizable="no" width="800" height="600" />

  <locale>
    <langpack iso3="deu" />
    <langpack iso3="por" />
  </locale>

  <resources>
    <res src="c:\programme\izpack\mysample\shortcut_specification.xml" id="shortcutSpec.xml" />
  </resources>

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

  <packs>
    <pack name="classes" required="yes">
      <description>Die Klassen</description>
      <file src="class" targetdir="$INSTALL_PATH" />
    </pack>
    <pack name="executable" required="yes" os="windows">
      <description>Die Windows Startdatei</description>
      <file src="win" targetdir="$INSTALL_PATH" />
    </pack>
    <pack name="documentation and licence" required="no" preselected="no">
      <description>Die Dokumentation und Lizensbestimmungen</description>
    </pack>
    <pack name="    documentation" required="no">
      <description>Die Dokumentation</description>
      <depends packname="documentation and licence" />
      <file src="txts\doc\documentation.txt" targetdir="$INSTALL_PATH\documentation" />
    </pack>
    <pack name="    licence" required="no">
      <description>Die Lizensbestimmungen</description>
      <depends packname="documentation and licence" />
      <file src="txts\licence\licence.txt" targetdir="$INSTALL_PATH\licence" />
    </pack>
  </packs>
  <native type="izpack" name="native\ShellLink.dll" />
</installation>

shortcutSpec.xml:
<shortcuts>
  <skipIfNotSupported />
  <programGroup defaultName="MyApp\CheckVirusUpdate"
                location="startMenu" />
  <shortcut name="Involve Checking"
		target="$INSTALL_PATH\win\CheckVirusUpdate.bat"
		description="This involves Checking wheather there are new updates"
		initialState="noShow"
		startMenu="yes">
    <createForPack name="executable" />
  </shortcut>
</shortcuts>

BTW, I placed the shortcutSpec.xml in the same directory like the install.xml.

Thanks,
mika
-- 


Echte DSL-Flatrate dauerhaft für 0,- Euro*. Nur noch kurze Zeit!
"Feel free" mit GMX DSL: http://www.gmx.net/de/go/dsl



More information about the izpack-users mailing list