Old 23rd January 2003, 15:44   #1
bensinc
Junior Member
 
Join Date: Jan 2003
Posts: 4
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.
bensinc is offline   Reply With Quote
Old 23rd January 2003, 16:34   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
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).

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 23rd January 2003, 18:37   #3
bensinc
Junior Member
 
Join Date: Jan 2003
Posts: 4
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!
Attached Files
File Type: zip iconproblem.zip (4.9 KB, 147 views)
bensinc is offline   Reply With Quote
Old 23rd January 2003, 19:19   #4
Joel
Debian user
(Forum King)
 
Joel's Avatar
 
Join Date: Jan 2003
Location: Arch land
Posts: 4,917
Cool Try this...

Ok, this might work:
Attached Files
File Type: nsi dpssetup2.nsi (3.2 KB, 210 views)
Joel is offline   Reply With Quote
Old 23rd January 2003, 19:31   #5
bensinc
Junior Member
 
Join Date: Jan 2003
Posts: 4
That did the same thing, unfortunately.
bensinc is offline   Reply With Quote
Old 23rd January 2003, 19:39   #6
Joel
Debian user
(Forum King)
 
Joel's Avatar
 
Join Date: Jan 2003
Location: Arch land
Posts: 4,917
Change in the part of the declare of the uninstaller icon:
define MUI_UICON

with:

!define MUI_UNICON



* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux-i686 with MATE.
* Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Archlinux-x86-64 with MATE.
Joel is offline   Reply With Quote
Old 23rd January 2003, 19:51   #7
bensinc
Junior Member
 
Join Date: Jan 2003
Posts: 4
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!
bensinc is offline   Reply With Quote
Old 23rd January 2003, 19:53   #8
Joel
Debian user
(Forum King)
 
Joel's Avatar
 
Join Date: Jan 2003
Location: Arch land
Posts: 4,917
glad to help..... :P


* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux-i686 with MATE.
* Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Archlinux-x86-64 with MATE.
Joel is offline   Reply With Quote
Old 22nd May 2003, 22:12   #9
mattibbals
Junior Member
 
Join Date: Apr 2003
Posts: 12
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!
mattibbals is offline   Reply With Quote
Old 22nd May 2003, 22:22   #10
Joel
Debian user
(Forum King)
 
Joel's Avatar
 
Join Date: Jan 2003
Location: Arch land
Posts: 4,917
can you please attach in zip format your icons and script,
maybe that way I can tell you the problem.


* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux-i686 with MATE.
* Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Archlinux-x86-64 with MATE.

Last edited by Joel; 22nd May 2003 at 22:40.
Joel is offline   Reply With Quote
Old 22nd May 2003, 23:13   #11
mattibbals
Junior Member
 
Join Date: Apr 2003
Posts: 12
Here are the icons and the basic.nsi script that I made modifications to.

Thanks a lot for your quick response!
Attached Files
File Type: zip icons.zip (10.2 KB, 143 views)
mattibbals is offline   Reply With Quote
Old 22nd May 2003, 23:40   #12
Joel
Debian user
(Forum King)
 
Joel's Avatar
 
Join Date: Jan 2003
Location: Arch land
Posts: 4,917
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
Attached Files
File Type: zip icons_ll.zip (45.1 KB, 164 views)


* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux-i686 with MATE.
* Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Archlinux-x86-64 with MATE.
Joel is offline   Reply With Quote
Old 23rd May 2003, 00:06   #13
mattibbals
Junior Member
 
Join Date: Apr 2003
Posts: 12
Muchas gracias amigo Lobo Lunar!
mattibbals is offline   Reply With Quote
Old 23rd May 2003, 00:15   #14
Joel
Debian user
(Forum King)
 
Joel's Avatar
 
Join Date: Jan 2003
Location: Arch land
Posts: 4,917
[spanish]
De nada, viejo...un placer ayudarte
[/spanish]

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


* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux-i686 with MATE.
* Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Archlinux-x86-64 with MATE.
Joel is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast 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