Inno Setup is stretching progress style - inno-setup

I'm using a custom VCL style, Its progress bar image is like windows XP.
But While installing and using the style, inno setup will stretch the progress image into the progress bar.
How to avoid such an effect?

Related

Inno Setup - How to fill a button with an image in Inno Setup?

Base on this question:
How to create an image button in Inno Setup?
How to fill the entire button with the image in Inno Setup? At the same time use different images on one button such as for, mouse click, mouse hover, disabled and normal view?

Change the header window color of an installer in inno setup

I create a simple installer using inno setup, and I set the background color in the installer as shown in the image.
Is it also possible to change the color of the window title to match the color of the installer body?

windows 10 custom title bar color

Microsoft Apps such as Word, Excel use custom colors in the window title bar. IntelliJ and BeyondCompare have chosen similar colored icons so to takes a few more of MY cycles to select the correct window when I am changing tasks.
Is there a way to tailor installed applications to have a specific title bar color perhaps using registry entries and themes. This would speed up task switches which I do continuously in development mode.
As a second choice, I am not adverse to creating an IntelliJ plugin that would zap the color if that would do the job but am not sure if there is a way to easily zap the title bar color in the Windows-10 API.

Pop dialog background form color [duplicate]

Is it possible to change inner background color for modal and browse directory windows in Inno Setup? In my case I want it should be white.
UPD: Same behaviour is on the inner pages of Inner Setup, but I've fixed it by setting WizardForm.InnerPage.Color := clWhite;
I'm using VclStylesInno for styling my installer with custom style spreadsheat.
You cannot change the color of these in Inno Setup itself, except by a custom build of Inno Setup or some addon DLL (see below).
All you can do is to re-implement these dialogs from the scratch:
For the "browse" dialog: Handle the WizardForm.DirBrowseButton.OnClick and use CreateCustomForm and TFolderTreeView to implement the browse dialog. Download Inno Setup code and copy the existing implementation from SelFolderForm.pas.
For an example of handling WizardForm.DirBrowseButton.OnClick, see
How to display localized Program Files name (display name) during installation?
For the "cancel" dialog: Implement the CancelButtonClick event function. Make sure you set Confirm to False to get rid of the default prompt. And implement your own. Again, use the CreateCustomForm.
It's a lot of work for a small gain. I'd not do it.
Instead, you can use VCL Styles for Inno Setup (DLL) to style Inno Setup windows (including all modal dialogs).
As turned out, the reason was in the "Colors" option in Bitmap Designer, which I use to modify my installer style. This option makes some additional styling for controls:

Circular progress bar in Inno Setup

I'm searching for an circular progress indication for Inno Setup, like this one on jQuery: http://anthonyterrien.com/knob/
Is there something similar or is it possible to do this in Inno Setup?
I want to set the percentage manually, it shouldn't be a spinning circle or something like that...
Without an external DLL library, all you can do is to use TBitmapImage control and draw the progress bar manually.
For an example of painting on TBitmapImage, see How do I change the color of my progress bar in Inno Setup?
An easier option is to prepare set of progress images (10%, 20%, 30%, etc) in advance and load respective image as needed.

Resources