title: IzPack - Desktop Shortcut on Windows - Not Working
body: <p>I'm trying to use IzPack to install my program and I'd like to add Desktop Shortcuts to the installer, here is the documentation/instructions from the IzPack website.</p>
  
  <p><a href="http://izpack.org/documentation/desktop-shortcuts.html" rel="noreferrer">http://izpack.org/documentation/desktop-shortcuts.html</a></p>
  
  <p>However, the below XML files, when compiled, only create a blank screen in the installer that hangs when you try to click "Next" to go past it. Here's what the screen looks like when running on Windows 7 - 64 bit.</p>
  
  <p><img src="https://i.stack.imgur.com/MW2w1.png" alt="enter image description here"></p>
  
  <p>Here is my install.xml and shortcutSpec.xml files.</p>
  
  <p><strong>install.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?&gt;
  
  &lt;installation version="1.0"&gt;
  
  &lt;!-- The info section. --&gt;
  
  &lt;info&gt;
      &lt;appname&gt;Application Name&lt;/appname&gt;
      &lt;appversion&gt;1.0&lt;/appversion&gt;
      &lt;url&gt;http://www.example.com/&lt;/url&gt;
      &lt;javaversion&gt;1.6&lt;/javaversion&gt;
      &lt;run-privileged condition="izpack.macinstall|izpack.windowsinstall.vista|izpack.windowsinstall.7"/&gt;
  &lt;/info&gt;
  
  &lt;!-- The gui preferences indication. --&gt;
  
  &lt;guiprefs width="640" height="480" resizable="yes"/&gt;
  
  &lt;!-- The locale section. --&gt;
  
  &lt;locale&gt;
      &lt;langpack iso3="eng"/&gt;
  &lt;/locale&gt;
  
   &lt;!-- The resources section. --&gt;
  
  &lt;resources&gt;
      &lt;res id="LicencePanel.licence" src="licence.txt"/&gt;
      &lt;res id="InfoPanel.info" src="readme.txt"/&gt;
      &lt;res id="shortcutSpec.xml" src="shortcutSpec.xml"/&gt;
  &lt;/resources&gt;
  &lt;native type="izpack" name="ShellLink.dll"/&gt;
  
  &lt;!-- The panels section. --&gt;
  
  &lt;panels&gt;
      &lt;panel classname="HelloPanel"/&gt;
      &lt;panel classname="InfoPanel"/&gt;
      &lt;panel classname="LicencePanel"/&gt;
      &lt;panel classname="TargetPanel"/&gt;
      &lt;panel classname="ShortcutPanel"/&gt;
      &lt;panel classname="PacksPanel"/&gt;
      &lt;panel classname="InstallPanel"/&gt;
      &lt;panel classname="SimpleFinishPanel"/&gt;
  &lt;/panels&gt;
  
  &lt;native type="izpack" name="ShellLink.dll"/&gt;
  
  &lt;!-- The packs section. --&gt;
  
  &lt;packs&gt;
      &lt;pack name="Program and Dependencies" required="yes"&gt;
          &lt;description&gt;Program, libraries and other dependencies&lt;/description&gt;
          &lt;file src="ExecutableJar.jar" targetdir="$INSTALL_PATH"/&gt; 
          &lt;file src="lib" targetdir="$INSTALL_PATH"/&gt; 
          &lt;file src="save" targetdir="$INSTALL_PATH"/&gt; 
          &lt;file src="HelpContents.chm" targetdir="$INSTALL_PATH"/&gt;
          &lt;file src="icon.png" targetdir="$INSTALL_PATH"/&gt;   
          &lt;file src="application.ini" targetdir="$INSTALL_PATH"/&gt;     
          &lt;file src="readme.txt" targetdir="$INSTALL_PATH"/&gt;
          &lt;file src="licence.txt" targetdir="$INSTALL_PATH"/&gt;
          &lt;file src="autorun-win.bat" targetdir="$INSTALL_PATH"/&gt;
      &lt;/pack&gt;
      &lt;pack name="Samples" required="no"&gt;
          &lt;description&gt;Word Document Samples&lt;/description&gt;
          &lt;file src="samples" targetdir="$INSTALL_PATH"/&gt;
      &lt;/pack&gt;
      &lt;pack name="Templates" required="no"&gt;
          &lt;description&gt;Word Document Templates&lt;/description&gt;
          &lt;file src="templates" targetdir="$INSTALL_PATH"/&gt;
      &lt;/pack&gt;
  &lt;/packs&gt;
  </code></pre>
  
  <p></p>
  
  <p><strong>And the shortcutSpec.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" standalone="yes" ?&gt;
  
  &lt;shortcuts&gt;
      &lt;skipIfNotSupported/&gt;
      &lt;programGroup defaultName="AppGroupName" location="applications"/&gt;
      &lt;shortcut
          name="Application - Startup"
          target="$INSTALL_PATH\autorun-win.bat"
          workingDirectory="$INSTALL_PATH"
          programGroup="no"
          desktop="yes"
          applications="yes"
          startMenu="yes"
          startup="yes"/&gt;
  &lt;/shortcuts&gt;
  </code></pre>
  
  <p><strong>Additional Notes:</strong></p>
  
  <ol>
  <li><p>I am getting zero compilation errors.</p></li>
  <li><p>Without the shortcut stuff added, the installer works fine.</p></li>
  <li><p>My program is an executable jar, to run it automatically I've created a batch script in Windows named autorun-win.bat, which is the what the desktop shortcut should be linked to.</p></li>
  </ol>
  
  <p><strong>EDIT:</strong></p>
  
  <p>I have tried this import as well as the 32-bit flavor. Neither had any effect on the above results. Any more contributions would be greatly appreciated.</p>
  
  <pre><code>&lt;native type="izpack" name="ShellLink_x64.dll" /&gt;
  </code></pre>