Archive: Vista -> Win 2K (icons)


Vista -> Win 2K (icons)
OK, as a Mac user/programmer I'm completely new to NSIS and have been thrown in at the deep end at work, with the following task, so please excuse vague or stupid questions - I've done everything you should do before posting questions (at least with Forum etiquette, I'm slightly more experienced :D ) but could still use a bit of guidance, since, for one thing, I don't even know if my line of thinking is correct in the first place.

Well, with that little disclaimer over, I'll get to the point... our NSIS installer has been doing exactly what we need, since being written a couple of years ago. Now enter Vista and it's stupid oversized icons :mad: So, I've googled and searched till blue in the face but all I can find is info about compatability with XP. What about Win 2000, doesn't anybody develop 2k compatible software anymore? It seems Vista icons, whether compressed or not won't show on 2k? So, my line of thinking, we need 2 sets of icons?

uuuurghhh... :eek: i just realised... because the installer itself needs an icon, we need 2 installers anyway - 98/2k and XP/Vista? Well, don't think I need to go on then... but could somebody please confirm that?

TIA (in complete Windows ignorence :hang: )

Rich


You can have both BMP and PNG images in the same ICO file. Windows 2000 and XP will simply ignore the newer PNG format and use what it can. So, if you wish to produce backward compatibility icon-wise, you have two options. You can simply not use PNG, or include just the large 128x128 or 256x256 icons in PNG version and keep the rest as BMP. This way, when Vista searches for its big icons, it'll be able to find it and when XP or 2000 search for their icons, they'll find them as well.

This applies to the installer as well. However, note that the installer and uninstaller icon must be identical in structure and size. With BMP images, that's quite easy. With PNG, however, it's a different story. So you might want to skip PNG for the installer, for now.


the right icons are needed - normally 32*32 is usual, but
48*48 might better - better for creating lowsize.
the format is the same till win98 except with winxp came
truecolor/alpha which can not be handled on 2k and lower.
use a better icon-editor which can handle both.
idd xp/vista works fine with 256 colors, but the can more.

when i create icons i try the get the greteast picture of it.
Vista can do 256*256, but 128*128 or 64*64 will do too.
mostly i work with PNG files (due to real transparency) and
import them into axialis icon workshop.


Hi and thanks for the replies. As you've described it, is pretty well as I've already understood it.

Originally posted by Brummelchen
... with winxp came truecolor/alpha which can not be handled on 2k and lower. use a better icon-editor which can handle both.
I think I know what you mean, but it dependends a lot on what you define as "be handled". My main problem is this... until now we've used pretty much the type of icon you've described, created with IconWorkshop and containing 16, 32, 48 px images in BMP as well as PNG for XP and finally the original 128 px OSX icon image. now, of course, 2k didn't display the XP style icon but instead simply ignored them. However, after adding a further 256 px image (with or without compression), 2k no longer simply "ignores" what it can't use, it renders the whole icon unuseable - generic white file.

Since I wrote this morning we've tested a 128 px icon on Vista, which looks good, even at 256 px. So looks like the answer is dead easy... basically, same icons, no change! I think I was a bit confused because I thought it's not a valid "Vista" icon without the 256 px image.

So I guess that's my original problem solved, but I dare say I'll be back on Monday with more questions because I've still got the task or enhancing the script we've got, to take various variables into account and I'm still a bit confused by some of the syntax.

Cheers,
Rich

i dont like vista - i wont (never) use vista - astalavista :D

idd - 2k seems to ignore xp-icons (never used 2k, crashes my system)

afaik 256*256 in vista is not the default - many shots shows the normal 32*32


Plz go http://www.axialis.com/iconworkshop/, I know it is a windos Applications but the tutorials and info on their site will solve some of your misteries you might have about Vista Icons.

Note that if you test your icon on Windows, sometimes the Icon cache of the OS is corrupt or does not get refreshed. This is a know defect in Windows OS's

To solve this use a tool called MS PoverToy ,there is an repair iconc cache.

Note that if you can not see the icon, you do something wrong. Best is to downlaod a valid Vista Icon and compare yours with this icon.

Search the NSIS Wiki, I've added Vista Icons for NSIS there long ago.

Oh AND do always READ what kichik wrote!! about the size of the icons if compiled into an NSIS installer.


Oh AND do always READ what kichik wrote!! about the size of the icons if compiled into an NSIS installer.
huh? it blows the installer? idd it does
a row from 16*16 to 96*96 (xp only, 7 icons) has additional ~100kb

Brummelchen, ofcourse my remarks where not directly for you, but for the original poster who needed a little help.

I know you know ;)

And yes IMHO, the icons add a huge amount to the installer, I also do not like this. But if it is someone's wish, lets try to help the NSIS enthousiast out.