The shortcuts work fine in my system, but do not work or do not display an image when installed in a different system.




  • Avatar

    This is likely to be happening because you hardcode the path to the image or executable to the location of the files in your system, and do not include those files as part of your installation. Make sure you include the file the shortcut points to and the image or icon the shortcut is using as part of your installation. Make sure they are referenced as ${installdir}/path/to/image.png so the right path is specified once installed. On Unix, make sure also that if the target is an executable, it has the right permissions ( chmod +x filename ).

    Comment actions Permalink
  • Avatar

    I have found a way around this for windows icons.

    If you include the icon files as part of your installation and then reference them as described above for your shortcuts you can then delete them as a post-installation action and have the shortcuts still display the icons correctly on windows (this doesn't seem to be necessary for mac). For example, I created a folder called Temp in my default component which contains my icon file. This is unpacked only on windows, and my shortcuts reference the icon here.


    Then, after installation is successful, I can delete the Temp folder and my shortcut still retains the icon image.


    I find this helps keep clutter out of my installation directory.

    Comment actions Permalink

Please sign in to leave a comment.