Archive: Please add an option for showing a 48x48 icon


Please add an option for showing a 48x48 icon
The default 32x32 icon looks too small in the installer UI header, which is 57 pixel high even at a standard 96 DPI resolution. So it would be nice to have an option to use a larger icon size (something like "IconSize 48" or "IconSize big"). As I understand, implementing this feature requires just removing the LR_DEFAULTSIZE and setting cxDesired and cyDesired to the requested value in the LoadImage call in exehead/ui.c?


what's wrong with using this as headerimage? otherwise you could still reshack the ui to fit your requirements.


Originally posted by Yathosho
what's wrong with using this as headerimage? otherwise you could still reshack the ui to fit your requirements.
What's wrong with using my own icon which is already embedded in my installer? It includes image sizes up to 256x256, but installer ignores them.

ok, the solution is the same :)


Originally posted by Yathosho
ok, the solution is the same :)
Adding a redundant copy of the same image is rather a workaround, not a solution.

Developers, anyone? Does the "big icon" option deserve attention? If you think it doesn't - ok, we'll have to stick with an extra header image (or even with two extra images - the second one is for RTL layout).


That LoadImage you found is not the one responsible for bringing the icon to the dialog. The dialog template resource defines an ICON control and specifies the icon. I don't know of any flag for that control that tells it to load a bigger icon. If I remember correctly, it takes the first icon, so you might want to try and reorder the icons in your icon file.


No, reordering the images and moving all the 48x48 ones to the beginning did not change anything.

The STM_SETICON message should do the trick with changing the icon in the icon control.


Then you can do so in .onGUIInit with a slightly modified version of NSD_SetImage from nsDialogs.nsh.


Originally posted by kichik
Then you can do so in .onGUIInit with a slightly modified version of NSD_SetImage from nsDialogs.nsh.
Ok, thanks, I'll try this approach.