Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7775401
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T17:37:19+00:00 2026-06-01T17:37:19+00:00

I have prepared simple script that displays image under ProgressGauge bar on wpInstalling Page.

  • 0

I have prepared simple script that displays image under ProgressGauge bar on wpInstalling Page.

But… I need more complex functionality.

What I need is multiple images show, each after X (e.g. 7) seconds (with loop when installation longer then X secs * number of images) or each after X (e.g. 10) percent of installation. I have tried to embed images display in ProgressGauge.Position, but I failed.

Here is what I have:

procedure CurPageChanged(CurPageID: Integer);
var
  BmpFile: TBitmapImage;
begin
  ExtractTemporaryFile('01.bmp');
  ExtractTemporaryFile('02.bmp');
  ExtractTemporaryFile('03.bmp');

  if CurPageID = wpInstalling then
  begin
    BmpFile:= TBitmapImage.Create(WizardForm);
    BmpFile.Bitmap.LoadFromFile(ExpandConstant('{tmp}\01.bmp'));
    BmpFile.Width:= ScaleX(420);
    BmpFile.Height:= ScaleY(180);
    BmpFile.Left := WizardForm.ProgressGauge.Left + ScaleX(0); 
    BmpFile.Top := WizardForm.ProgressGauge.Top + ScaleY(35);
    
    // BmpFile.Parent:= WizardForm.InstallingPage;
    // BmpFile:= TBitmapImage.Create(WizardForm);
    // BmpFile.Bitmap.LoadFromFile(ExpandConstant('{tmp}\03.bmp'));
    // BmpFile.Width:= ScaleX(420);
    // BmpFile.Height:= ScaleY(400);
    // BmpFile.Left := WizardForm.ProgressGauge.Left + ScaleX(0); 
    // BmpFile.Top := WizardForm.ProgressGauge.Top + ScaleY(35);
    // BmpFile.Parent:= WizardForm.InstallingPage;  
      
    // BmpFile:= TBitmapImage.Create(WizardForm);
    // BmpFile.Bitmap.LoadFromFile(ExpandConstant('{tmp}\03.bmp'));
    // BmpFile.Width:= ScaleX(420);
    // BmpFile.Height:= ScaleY(400);
    // BmpFile.Left := WizardForm.ProgressGauge.Left + ScaleX(0); 
    // BmpFile.Top := WizardForm.ProgressGauge.Top + ScaleY(35);
    // BmpFile.Parent:= WizardForm.InstallingPage;
  end;
end;  

The goal is:
On the wpInstalling there should be X images displayed, every next per X seconds or after X percent of installation.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T17:37:20+00:00Added an answer on June 1, 2026 at 5:37 pm

    Since the ProgressGauge has no progress change events and there is no way to process setup application messages you will need to use the Windows API timer. This timer needs a callback function which you can’t define in Inno Setup script unfortunately so you will need some external library to do this job for you. However there’s the InnoCallback library which can do exactly this.

    For the following code copy the InnoCallback.dll library into your setup directory, merge this code with your Inno Setup script and implement some kind of a slideshow page turning in the OnSlideTimer event which will be called periodically (with the current settings each second).

    [Files]
    Source: "InnoCallback.dll"; DestDir: "{tmp}"; Flags: dontcopy
    
    [code]
    var
      TimerID: Integer;
    
    type
      TTimerProc = procedure(Wnd: HWND; Msg: UINT; TimerID: UINT_PTR; 
        SysTime: DWORD);
    
    function WrapTimerProc(Callback: TTimerProc; ParamCount: Integer): LongWord;
      external 'wrapcallback@files:InnoCallback.dll stdcall';    
    function SetTimer(hWnd: HWND; nIDEvent, uElapse: UINT;
      lpTimerFunc: UINT): UINT; external 'SetTimer@user32.dll stdcall';
    function KillTimer(hWnd: HWND; uIDEvent: UINT): BOOL; 
      external 'KillTimer@user32.dll stdcall'; 
    
    procedure OnSlideTimer(Wnd: HWND; Msg: UINT; TimerID: UINT_PTR; 
      SysTime: DWORD);
    begin
      { here you can turn your slideshow pages; use some variable to store the }
      { current index of the slide you are on, note that this procedure is called }
      { periodically each 1000 ms (see below why), so here you can also check the }
      { progress value, if you want to }
    end;
    
    procedure StartSlideTimer;
    var
      TimerCallback: LongWord;
    begin
      TimerCallback := WrapTimerProc(@OnSlideTimer, 4);
      { third parameter here is the timer's timeout value in milliseconds }
      TimerID := SetTimer(0, 0, 1000, TimerCallback);
    end;
    
    procedure KillSlideTimer;
    begin
      if TimerID <> 0 then 
      begin
        if KillTimer(0, TimerID) then
          TimerID := 0;
      end;
    end;
    
    function InitializeSetup: Boolean;
    begin
      Result := True;
      TimerID := 0;
    end;
    
    procedure DeinitializeSetup;
    begin
      KillSlideTimer;
    end; 
    
    procedure CurPageChanged(CurPageID: Integer);
    begin
      if CurPageID = wpInstalling then
        StartSlideTimer
      else
        KillSlideTimer;
    end;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a very simple php ldap script that is only failing when running
I have prepared a r script and trying to apply the same codes in
We have a Prepared Statement in Java and we hear that it is different
I have heard that prepared statements with SQLite should improve performance. I wrote some
I am preparing a simple dictionary project and I have prepared it to search
I have a pure ActionScript 3 problem, but the simplified test case I've prepared
I have prepared a simple test case for my question. Just save it to
I have prepared a simple test case demonstrating my problem. It is just 1
I have prepared a code to just play a simple mp4 file from my
I have a very general question and have prepared a simple test case. When

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.