izpack: Create shortcut on windows 7

后端 未结 2 478
别跟我提以往
别跟我提以往 2020-12-21 13:29

I use izpack to create an installer for my application. So far I was able to create the installer and on my linux machine everything is fine.
The problem is that on the

相关标签:
2条回答
  • 2020-12-21 13:47

    Unfortunately there are a few known issues with ShortcutPanel. After extensive trial-and-error testing I have found that the following requirements have to be satisfied in order for it to display correctly:

    • The <lateShortcutInstall/> tag in the shorctuts XML file must only be present if you want to show ShortcutPanel before InstallPanel. If your ShortcutPanel comes after the installation step, your shurtcut panel will not be shown!

    • Your <native> tags must be enclosed within a <natives> tag,

    • Add the <skipIfNotSupported /> tag to the beginning of the <shortcuts> element,

    • Double check your shortcuts XML file as it may have incorrect attribute names and/or missing quotes. Many users have reported such issues and it may be that there is an incorrect website that a lot of people copy-paste from. The specification for shortcut attributes can be found here.

    • Check whether the native DLLs are packaged into the installer JAR. For the ShellLink DLLs unpack the JAR and look inside: com/izforge/izpack/bin/native (and NOT com/izforge/izpack/bin/native/izpack/)1,

    • And finally, this is a bit trivial, but check whether your shortcuts XML file is where you think it is and that it has the correct name.


    Footnotes:

    1. I am using IzPack version 5.0.6.
    0 讨论(0)
  • 2020-12-21 13:53

    I compared this to a working installer file here which in contrast contains the following <natives> setting:

    <natives>
        <native type="izpack" name="ShellLink.dll" />
        <native type="izpack" name="ShellLink_x64.dll" />
    </natives>
    

    When using a 32-Bit Java Runtime the 32-Bit ShellLink.dll will be used which is missing in your setup.

    0 讨论(0)
提交回复
热议问题