Does WizardSmallImageFile documentation have a mistake in it?

102 views
Skip to first unread message

Canol Gökel

unread,
Oct 3, 2024, 7:52:28 AM10/3/24
to innosetup
Hello, we started to use Inno Setup and we provided a WizardSmallImageFile with dimensions 55x55 like it says in the documentation.


But we noticed that the small image that we provided was being stretched vertically causing the aspect ratio to be wrong. Upon inspection the size of the image on the installer seems to be 55x58 not 55x55. Is the documentation wrong or is it maybe related to a settings on Windows?

Gavin Lambert

unread,
Oct 3, 2024, 8:10:55 PM10/3/24
to innosetup
On Friday, October 4, 2024 at 12:52:28 AM UTC+13 Canol Gökel wrote:
But we noticed that the small image that we provided was being stretched vertically causing the aspect ratio to be wrong. Upon inspection the size of the image on the installer seems to be 55x58 not 55x55. Is the documentation wrong or is it maybe related to a settings on Windows?

Do you have your DPI scale set above 100%? 

Canol Gökel

unread,
Oct 4, 2024, 3:59:03 AM10/4/24
to innosetup
The Windows scaling is 100% at 1920x1080 resolution.

Jordan Russell

unread,
Oct 12, 2024, 1:44:33 AM10/12/24
to inno...@googlegroups.com
On 10/3/2024 6:51 AM, Canol Gökel wrote:
> But we noticed that the small image that we provided was being stretched
> vertically causing the aspect ratio to be wrong. Upon inspection the size
> of the image on the installer seems to be 55x58 not 55x55. Is the
> documentation wrong or is it maybe related to a settings on Windows?

Are you specifying multiple images? Checking the code, it appears there
are two different behaviors depending on whether you specify one image
or multiple images.

The initial size of the image control is 55x58, but if you have only one
image, the image control is resized to match your image size. So the
control is 55x55 with a 55x55 image, and there's no change in aspect ratio.

But if you have multiple images, the size of the image control doesn't
change; it stays 55x58. So if the chosen image is 55x55, it will be
stretched to 55x58.

It looks like the initial size of the control should be changed to 55x55
to match the documentation. But for now, you'll have to make your image
55x58. And if this is fixed, you'll have to change it back to 55x55.

-JR

Jordan Russell

unread,
Oct 12, 2024, 2:08:58 AM10/12/24
to inno...@googlegroups.com
On 10/12/2024 12:44 AM, Jordan Russell wrote:
> It looks like the initial size of the control should be changed to 55x55
> to match the documentation. But for now, you'll have to make your image
> 55x58. And if this is fixed, you'll have to change it back to 55x55.

Or, you should be able to fix it now with:

[Code]
procedure InitializeWizard;
begin
WizardForm.WizardSmallBitmapImage.Height := ScaleY(55);
end;

-JR

Canol Gökel

unread,
Oct 12, 2024, 2:40:57 AM10/12/24
to innosetup
Okay, thank you very much.

Canol

Reply all
Reply to author
Forward
0 new messages