Search code examples
installationinno-setupnsis

Clickable banner/ header image in Setup program


I need to make an Windows installer either with NSIS or InnoSetup. The customer wants an image to be displayed in the installer dialogues/ wizard pages and the image needs to be clickable, e.g. open a browser window when clicked. Is this possible? If yes, is it also possible to use animated gifs?


Solution

  • To make the welcome page's left image clickable, you can use the following:

    [Code]
    procedure OnBannerClick(Sender: TObject);
    var
      ErrorCode: Integer;
    begin
      ShellExec('', 'http://www.stackoverflow.com', '', '', SW_SHOW, ewNoWait, 
        ErrorCode);
    end;
    
    procedure InitializeWizard;
    begin
      WizardForm.WizardBitmapImage.Cursor := crHand;
      WizardForm.WizardBitmapImage.OnClick := @OnBannerClick;
    end;