Archive: must same size ?install and uninstall ico


must same size ?install and uninstall ico
I want to use my own ".ico" pictures in installer and uninstaller. But NSIS compiler told me that the size of the installer ico picture must keep same as uninstaller ico. e.g. one 1.5KB,another 2.1KB,the scripts will abort with error .

Why?

Another question, the picture must be ".ico" file, why ? I try to use a ".bmp" files but NSIS compiler abort with error "can't found right file".


1. What is meant by size is that the installer and uninstaller icons have to be the same resolution. Also, the two files have to have the icons in the same order.

Example:
installer 16x16 256 colour, 32x32 16 bit
uninstaller 16x16 256 colour, 32x32 16 bit

This will work. The following example will not.

Example:
installer 16x16 256 colour 32x32 16 bit
uninstaller 32x32 256 colour 16x16 16 bit

2. This is because the compiler expects the icons to be... well... icons (.ico). Bitmaps can vary in size and you can't have multiple formats in one bitmap (size and colour formats). The uninstaller uses the uninstaller icon that was compiled into the installer exe file. I don't know about anyone else on the forums but I use an old icon editor (Icomagic) to make my icons. It only supports 32x32 at 16 colours but this is just fine for me.


I use AWicons which supports icons up to 128x128. It's usually a good idea to have atleast 48x48 though as that's what XP uses in Explorer (and desktop).

-Stu


Thanks for the tip (no pun intended - tip as in 'here's a tip' and tip as in tipoff) :D. I really like having 16 colours for my icons, because then they stay the same colour when you decrease how many colours there are. Also, you can change the icon colours easily when editing because there are only 16 colours to change :D. Also, I like using Microangelo (even though I have to change the computer clock back to the 21 day period to use it).


JasonFriday13 and Afrow UK,thanks .

JasonFriday13:

I think I can understand what you said above.

Now,there are two icons. one 32x32,256 colors,4.59k(nsis\Contrib\Graphics\Icons\arrow2-uninstall.ico),the other 32x32,256 colors,2.18k(nsis\Contrib\Graphics\Icons\llama-blue.ico),the only differece between the two icons is their disk space.

failed again.

Why?


Same color palette? No additional images in the image?


arrow2-uninstall.ico contains 4 images(16x16 @ 16 and 256,32x32 @ 16 and 256 colors), llama-blue.ico only the 32x32 image with 256 colors


yes,one have four images,another has only one images.

I c.

Thanks.

Sorry.

I'm so poor.