1

I have created an executable file using NetBeans 8.0.2 (the standard JDK), following the instructions on this website about native packaging: https://netbeans.org/kb/docs/java/native_pkg.html.

Now, how do I change the icon of the exe installer file from the standard Java coffee cup, to my own custom icon? (I was able to change the icon that displays in the installed application's top left window, by directly coding the frame's image resource in the source code of my application).

However I want my custom icon to also be displayed on the actual exe installer file, and the installed application's desktop icon. I had the same issue when I tried an MSI file, instead of and EXE file. I tried searching for other solutions, but none of them have worked for me. I even tried Resource Hacker, but that didn't work for me. How do other people achieve this (seemingly simple/straightforward) thing? I would imagine this requirement is in high demand.

seenukarthi
  • 8,241
  • 10
  • 47
  • 68
user3477955
  • 91
  • 1
  • 11
  • 1
    Maybe [this](http://stackoverflow.com/questions/209812/how-do-i-change-the-default-application-icon-in-java?rq=1) and [this](http://stackoverflow.com/questions/4882043/how-do-i-get-an-icon-on-a-jar-file?rq=1) can help. Both are SO answers to similar questions – Gikkman Nov 02 '16 at 09:12
  • 1
    Possible duplicate of [Set Icon for executable Jar file](http://stackoverflow.com/questions/19927509/set-icon-for-executable-jar-file) – Vibhay Sachan Nov 02 '16 at 09:13
  • 1
    You need some packaging tool to make executable like InstallBuilder or Install4J – Vibhay Sachan Nov 02 '16 at 09:15
  • Hi, some of these suggestions were only to change the icon of the open application, not the actual icon of the executable file, or the desktop file before it is opened by the user. However, I found the sure-fire solution that worked for me, and was easy enough to do entirely from their GUI option without any complex code, was the InstallBuilder (the free evaluation download). – user3477955 Nov 03 '16 at 09:41

1 Answers1

0

Yes, after looking at a quick video demo of InstallBuilder: https://www.youtube.com/watch?v=wMXWq2b5IxM I think this is the easiest solution for customising (plus it offers a whole help of features). It looks like a high-end product. HOWEVER, it is pricey - starting at around $500, but they do have a free evaluation download, so I'll start there. There are some other free tools out there, but InstallBuilder seems to be the most user-friendly I've seen so far.

user3477955
  • 91
  • 1
  • 11
  • I am able to use an academic version of InstallBuilder, as a student, on a recurring 30-day period on the evaluation product - THANK YOU! – user3477955 Nov 03 '16 at 09:36