Archive: I can not use an icon from an exe even though it's 32x32x16.


I can not use an icon from an exe even though it's 32x32x16.
I can not use an icon from an exe even though it's 32x32x16.

The file is thebat.exe and can be downloaded here: http://www.ritlabs.com/ftp/pub/the_bat/beta/tb160c.rar


Ok, I know NSIS doesn't have the ablity to import icons sooo ... what exactly do you want??? And does it have something to do with NSIS???

-Duane


Re: I can not use an icon from an exe even though it's 32x32x16.

Originally posted by n0On3
I can not use an icon from an exe even though it's 32x32x16.

The file is thebat.exe and can be downloaded here: http://www.ritlabs.com/ftp/pub/the_bat/beta/tb160c.rar
If you look at the NSIS documentation you will noticed that it says "path_to_icon.ico." So you must use an icon file, even if you have the icon resource built into the executable. Just go back into your compiler and save the icon directly to an .ico file, and then feed that into NSIS. Then it should work right.

If you didn't construct the program, use an icon-editor to extract the icon from the exe or just make a screendump of the icon, cut it from it's background and save the bitmap as .ico.

-Hendri.


Reading your Replies I may be wrong, but I think I included an icon from an exe before with NSIS (and worked).

Thanks for the explanations and suggestions.


You can get makensis to import an icon from exe quite easily, with a few source modifications.