Archive: Uninstaller icon size mismatch


Uninstaller icon size mismatch
I've seen this discussed here before, but none of the replies had a good solution.

When I create an installer without an uninstaller, it works fine with the icon I chose for the installer. When I try and generate both an installer and uninstaller, it complains. Both icons contain a single icon that is 32x32 with 256 colors. I tried using the exact same icon for both, and it still complains about the mismatch.

What is mismatched? Both icons are identical.


Are you using the Modern UI? If so:
http://forums.winamp.com/showthread....light=mismatch
If not, plesae attach your script and icons (in a zip file).


Here are are my script and icons. The script now uses the !defines for the icons, but it still complains about the icon size mismatch.

Thanks!


Try this...
Ok, this might work:


That did the same thing, unfortunately.


Change in the part of the declare of the uninstaller icon:
define MUI_UICON

with:

!define MUI_UNICON

:)


That did the trick. Thanks!

NSIS is the best install system I've used yet. I previously used InstallAnywhere to install a JRE and my Java application. Now I use NSIS with a custom Java launcher. It works much better!


glad to help..... :P


Hi,

I am having a problem similar to the one described here but I can't seem to also replicate the solution.

I have 2 Icons that are both 32X32 and 256 Colors. I want to use one for the install Icon and one for the uninstall icon. I keep getting the error "installer, uninstaller icon size mismatch".

I tried pasting the code:

!define MUI_ICON "XIcon.ico"
!define MUI_UNICON "UninstallXIcon.ico"

into the Basic.nsi example (on the first line) and I got the same error.

I checked the format of the icons by opening them up with Visual Studio .NET and checking the properties. Is there another way to check that might reveal more information?

I am using NSIS v2.0b3

Thanks in advance for any help!


can you please attach in zip format your icons and script,
maybe that way I can tell you the problem.


Here are the icons and the basic.nsi script that I made modifications to.

Thanks a lot for your quick response!


Hi mattibbals! :)
1. The size aren't the same, they must be in the same KB size
and color depth:
a) Xicon.ico = 7.59 KB
b) UninstallXicon = 13.8 KB

2. Update your Nsis CVS, I modify a line:
a) We don't need this line: !insertmacro MUI_SECTIONS_FINISHHEADER

3. Get also a cool Icon editor, like Microangelo.

I modify your icons, now are in the same depth and size.

Attaching your new script and Icon set
also with you compiled script ;)
smooth :D


Muchas gracias amigo Lobo Lunar!


[spanish]
De nada, viejo...un placer ayudarte :D
[/spanish]

[English]
For nothing, dude... cool that I can help you :D
[/English]