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

  • Home
  • SEARCH
  • 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 8553041
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T14:33:30+00:00 2026-06-11T14:33:30+00:00

I have created a custom wizard page in inno, which needs to be shown

  • 0

I have created a custom wizard page in inno, which needs to be shown after installing the files to {app} folder. This is achieved by giving the wpInfoAfter.
The problem is, its showing only the ‘next’ button, there is no cancel/back button, also the dialog’s closing button on top right is also disabled. I understand that the back button isn’t needed, as it needs to remove the files which are installed. Is there anyway the ‘cancel’ button can be displayed?

  • 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-11T14:33:31+00:00Added an answer on June 11, 2026 at 2:33 pm

    The Cancel button has no functionality at the after install stage, because InnoSetup doesn’t expect to do further actions, that would require cancel, after the installation process is done. So, even if you show the button against that fact, you would get a button without any action.

    Personally I would prefer to collect the information needed to setup your database before the installation starts, because consider the situation when the user installs your application and simply cancel the after installation wizard (what can easily happen). Doing it before, you’ll be able to force your users to fill what you need before they actually get to the application itself. But if you still want to do it after install, here is a workaround for that missing cancel button.

    As a workaround, you can create your own custom button, that will be on a same position with the same functionality. Here is a sample script, simulating a cancel button and showing it only on the custom page which is laying after the installation process. It’s just a workaround, because you’d need at least fix this:

    • enable the closing cross of the wizard form (it’s disabled after the installation stage is done)
    • handle the ESC key shortcut somehow (it invokes the exit prompt dialog too, but I couldn’t find a way how to workaround this)
    [Setup]
    AppName=My Program
    AppVersion=1.5
    DefaultDirName={pf}\My Program
    
    [Code]
    procedure ExitProcess(uExitCode: UINT);
      external 'ExitProcess@kernel32.dll stdcall';
    
    var
      CustomPage: TWizardPage;
      CancelButton: TNewButton;
    
    procedure OnCancelButtonClick(Sender: TObject);
    begin
      // confirmation "Exit setup ?" message, if user accept, then... 
      if ExitSetupMsgBox then
      begin
        // stop and rollback actions you did from your after install
        // process and kill the setup process itself
        ExitProcess(0);
      end;  
    end;
    
    procedure InitializeWizard;
    begin
      // create a custom page
      CustomPage := CreateCustomPage(wpInfoAfter, 'Caption', 'Description');
      // create a cancel button, set its parent, hide it, setup the bounds
      // and caption by the original and assign the click event
      CancelButton := TNewButton.Create(WizardForm);
      CancelButton.Parent := WizardForm;
      CancelButton.Visible := False;
      CancelButton.SetBounds(
        WizardForm.CancelButton.Left, 
        WizardForm.CancelButton.Top, 
        WizardForm.CancelButton.Width,
        WizardForm.CancelButton.Height
      );  
      CancelButton.Caption := SetupMessage(msgButtonCancel);  
      CancelButton.OnClick := @OnCancelButtonClick;
    end;
    
    procedure CurPageChanged(CurPageID: Integer);
    begin
      // show your fake Cancel button only when you're on some of your after
      // install pages; if you have more pages use something like this
      // CancelButton.Visible := (CurPageID >= FirstPage.ID) and 
      //   (CurPageID <= LastPage.ID);
      // if you have just one page, use the following instead
      CancelButton.Visible := CurPageID = CustomPage.ID;
    end;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created custom posts and I want one page in my site to
I have created custom cell in which there are n number of image views.
I have created a custom post type named People. I have created a page
I have created a custom scroll. In which I am shifting the contents right
I have a simple create user wizard and custom membership provider which was taken
I have created Custom User Control which contain TextBox and PasswordBox. it is binding
I would like to create a custom wizard page after the page where you
I have custom-made wizard system which so far has been quite suitable. For most
i have created custom camera overlay view from this blog AROVerlayViewController it's all working
i have created custom query which i am sending via POST ajax but problem

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.