3

With the help of IExpress I created an exe from a bat file and would like to set a custom icon for the exe. Is this possible?

Regards

orschiro
  • 19,847
  • 19
  • 64
  • 95

2 Answers2

8

Try Resource Hacker. It worked here with a test IExpress installer.


Step-by-step instructions:

  1. Create your IExpress package as normal.

  2. Launch Resource Hacker, then open your IExpress-generated executable.

  3. In the Action menu, choose Replace Icon …

  4. Open the file that contains the icon you want to use, then click Replace.

  5. Save the file in Resource Hacker. This will get you two files:

    • Your new file: package.exe
    • Your original file: package_original.exe
  6. If the icon for package.exe looks wrong on your computer, this is expected behaviour due to the old icon being cached by Explorer. To clear the icon cache, you can execute:

    ie4uinit.exe -show
    

    (This will only be a problem on the computer that you used to edit the file; other computers should show the correct icon straight away.)

fission
  • 1,170
  • 18
  • 35
  • Old discussion but, could you elaborate on how one would do this? – Mark Deven Dec 05 '21 at 03:36
  • 1
    Sure, I added steps. Also found an interesting issue with the Explorer icon cache preventing the change from being immediately seen. I recorded a [YouTube video](https://www.youtube.com/watch?v=QD1xJjhEypg) of me doing it, in case that helps. – fission Dec 06 '21 at 21:54
  • 1
    Really appreciate you following up on this **and** not being condescending. Breaking all the stack exchange molds, Bravo! Thanks! – Mark Deven Dec 07 '21 at 04:20
  • 1
    No problem – honestly, it's what I should have written in the first place. I'm grateful for your feedback! – fission Dec 07 '21 at 09:34
0

As a workaround you can create a shortcut of the exe file and then set a custom icon to it.

orschiro
  • 19,847
  • 19
  • 64
  • 95