Archive: Full color icon?


Full color icon?
I want to use a custom icon for NSIS, but only 16 color icons are supported. Is there any way to use a full color icon?

Thanks.


Not possible? Maybe a nice feature for 1.7 ;)


Not currently... though if you don't mind recompiling, you should be able to modify the icon in the exehead resource... you may need to disable the icon finding in build.cpp as well...

-Justin


yes, it would be possible, but it would require quite a few changes to the way the icon resources are updated in the exeheader. To be honest I think it is more trouble than it is worth .. what would be more useful would be a generic resource modifier that could be used from a command line interface in place of the exe packer.. hmm.. that sounds like a good idea.. then people could update dialogs and things..


Originally posted by justin
Not currently... though if you don't mind recompiling, you should be able to modify the icon in the exehead resource... you may need to disable the icon finding in build.cpp as well...

-Justin
kewl, that was the something I didn't like bout NSIS... didn't know there was such a simple work around...

All you have to do:

1. Go inside the source/exehead folder and replace nsis.ico with yer own full color icon that uses the same name.

2. Right click on the new nsis.ico file. go to properties. Take the size in bytes and paste it into this line in exehead.h:

int new_size = <the size of the new icon in bytes>;
//extern unsigned char icon_data[766];
extern unsigned char icon_data[new_size];

Thanks a LOT Justin!!!