Skip to content
⌘ NSIS Forum Archive

Modify Icon for packaged exe?

5 posts

Guest#

Modify Icon for packaged exe?

Is it possible to modify the icon of an exe that is packaged with the installer with nsis script at the time of install/packaging?

We have an exe that we use for multiple products that have to be branded differently and have a need to do this? I've searched around on the forums but haven't really seen anything that does this.

Thanks,

Jesse
Afrow UK#
You could probably set the icon to an icon file on the system using the System pugin (through a Windows function call).

-Stu
Guest#
I found this set-exe-icons


While I think this may work? I'm not sure how i'd call this function from within my installer?

Thanks
Afrow UK#
Your best bet is to call Resource Hacker using !system.
It has some command-line switches which you can read up on in the Resource Hacker manual.

-Stu