Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 19th August 2005, 05:33   #1
foruok
Junior Member
 
Join Date: Aug 2005
Location: China
Posts: 13
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".
foruok is offline   Reply With Quote
Old 19th August 2005, 06:04   #2
JasonFriday13
Senior Member
 
JasonFriday13's Avatar
 
Join Date: May 2005
Location: Taranaki, New Zealand
Posts: 400
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.

"Only a MouseHelmet will save you from a MouseTrap" -Jason Ross (Me)
Wiki Profile
JasonFriday13 is offline   Reply With Quote
Old 19th August 2005, 09:48   #3
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
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

Need an installer? http://www.afrowsoft.co.uk
Afrow UK is offline   Reply With Quote
Old 22nd August 2005, 06:02   #4
JasonFriday13
Senior Member
 
JasonFriday13's Avatar
 
Join Date: May 2005
Location: Taranaki, New Zealand
Posts: 400
Thanks for the tip (no pun intended - tip as in 'here's a tip' and tip as in tipoff) . 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 . Also, I like using Microangelo (even though I have to change the computer clock back to the 21 day period to use it).

"Only a MouseHelmet will save you from a MouseTrap" -Jason Ross (Me)
Wiki Profile
JasonFriday13 is offline   Reply With Quote
Old 22nd August 2005, 08:01   #5
foruok
Junior Member
 
Join Date: Aug 2005
Location: China
Posts: 13
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?
foruok is offline   Reply With Quote
Old 22nd August 2005, 09:40   #6
Joost Verburg
NSIS MUI Dev
 
Join Date: Nov 2001
Posts: 3,717
Same color palette? No additional images in the image?
Joost Verburg is offline   Reply With Quote
Old 22nd August 2005, 15:34   #7
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 2,777
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

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 23rd August 2005, 01:10   #8
foruok
Junior Member
 
Join Date: Aug 2005
Location: China
Posts: 13
yes,one have four images,another has only one images.

I c.

Thanks.

Sorry.

I'm so poor.
foruok is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump