Archive: Associating an icon with a Java jar file


Associating an icon with a Java jar file
Hi All,

I am using the Eclipse NSIS wizard to produce a setup.exe file .

In the script I have inserted the following lines in an attempt to associate an icon with a jar file:

SetOutPath $INSTDIR CreateShortCut $DESKTOP\AMTester.lnk $INSTDIR\AMTester.jar "" $INSTDIR\AMTester.ico

Is this line correct, some of my users complain that when they click on the icon the program fails to start, yet when they click on the jar file itself it does.

Also when I uninstall the program the icon remains, it is not deleted as expected.

Any advice would be appreciated.

Fankx,

MrFredBloggs


try using quotes