Skip to content
⌘ NSIS Forum Archive

Actual size of an image on a "welcome" screen

9 posts

vtsaran#

Actual size of an image on a "welcome" screen

Hi,
Is there a way for me to have NSIS preserve the actual size of a bitmap on the screen? What currently happens is that NSIS attempts to stretch the image to fill in available empty space. My image is 2 in by 2 in, but on a "welcome" screen, when inserted", the image looks much taller and narrower.

Thanks,
Victor
Joost Verburg#
Stretching is turned on because it should also work with custom DPI settings. If you don't have a full-size image, not stretching is of course better. I'll add an option to the Modern UI.
vtsaran#
Originally posted by Joost Verburg
Stretching is turned on because it should also work with custom DPI settings. If you don't have a full-size image, not stretching is of course better. I'll add an option to the Modern UI.
Hi,
So what can I do for now to fix this problem?
Thanks,
Vic
Afrow UK#
You will need to modify the MUI system.nsh file.
You need to find the "RESIZETOFIT"
If you search for it, then blank out the part (so there is no longer resietofit), then it might work ok.

-Stu
Joost Verburg#
Because of an InstallOptions bug, IO always stretches (even without the RESIZETOFIT flag). This is a flag in ioSpecial.ini, not in System.nsh.

You will have to wait one week before this bug will be fixed and a new version of the Modern UI will be uploaded.

If you need it within a week, create a 164x314 pixels image yourself.
Afrow UK#
Yeah.
What I did, was just add white space around my image, so it looked just like the background (and the image didn't look stretched).

-Stu
Joost Verburg#
I just had a little bit of time to fix it, earlier than I expected 🙂 See the Modern UI Readme.