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 7900381
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T08:57:23+00:00 2026-06-03T08:57:23+00:00

I have added a checkbox to the Additional Tasks page of an InnoSetup script

  • 0

I have added a checkbox to the “Additional Tasks” page of an InnoSetup script with

[Tasks]
Name: "StartMenuEntry" ; Description: "Start my app when Windows starts" ; GroupDescription: "Windows Startup"; MinVersion: 4,4; 

I want to initialize this checkbox when the wpSelectTasks page shows, and read the value when the Next button is clicked. I can’t work out how to access the checkbox `checked’ value.

function NextButtonClick(CurPageID: Integer): Boolean;

var
  SelectTasksPage : TWizardPage ;
  StartupCheckbox : TCheckbox ;

begin
Result := true ;
case CurPageID of

    wpSelectTasks :
        begin
        SelectTasksPage := PageFromID (wpSelectTasks) ;
        StartupCheckbox := TCheckbox (SelectTasksPage... { <== what goes here??? }
        StartupCheckboxState := StartupCheckbox.Checked ;
        end ;
    end ;    
end ;     
  • 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-03T08:57:25+00:00Added an answer on June 3, 2026 at 8:57 am

    The task check boxes are in fact items in the WizardForm.TasksList check list box. If you know their indexes you can access them pretty easily. Note, that the items can be grouped (what is just your case) and each new group takes also one item in that check list box, so for your case the item index will be 1:

    [Setup]
    AppName=TasksList
    AppVersion=1.0
    DefaultDirName={pf}\TasksList
    
    [Tasks]
    Name: "TaskEntry"; Description: "Description"; GroupDescription: "Group";
    
    [code]
    function NextButtonClick(CurPageID: Integer): Boolean;
    begin
      Result := True;
      if CurPageID = wpSelectTasks then
      begin
        if WizardForm.TasksList.Checked[1] then
          MsgBox('First task has been checked.', mbInformation, MB_OK)
        else
          MsgBox('First task has NOT been checked.', mbInformation, MB_OK);
      end;
    end;
    
    procedure CurPageChanged(CurPageID: Integer);
    begin
      if CurPageID = wpSelectTasks then
        WizardForm.TasksList.Checked[1] := False;
    end;
    

    Here is illustrated how the WizardForm.TasksList check list box would looks like when you’d have two tasks with different groups:

    enter image description here

    To access the task check box by its description try the following:

    [Setup]
    AppName=Task List
    AppVersion=1.0
    DefaultDirName={pf}\TasksList
    
    [Tasks]
    Name: "Task"; Description: "Task Description"; GroupDescription: "Group 1";
    
    [code]
    function NextButtonClick(CurPageID: Integer): Boolean;
    var
      Index: Integer;
    begin
      Result := True;
      if CurPageID = wpSelectTasks then
      begin
        Index := WizardForm.TasksList.Items.IndexOf('Task Description');
        if Index <> -1 then
        begin
          if WizardForm.TasksList.Checked[Index] then
            MsgBox('First task has been checked.', mbInformation, MB_OK)
          else
            MsgBox('First task has NOT been checked.', mbInformation, MB_OK);
        end;
      end;
    end;
    
    procedure CurPageChanged(CurPageID: Integer);
    var
      Index: Integer;
    begin
      if CurPageID = wpSelectTasks then
      begin
        Index := WizardForm.TasksList.Items.IndexOf('Task Description');
        if Index <> -1 then    
          WizardForm.TasksList.Checked[Index] := False;
      end;
    end;   
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have added checkbox selection model to grid panel. It works fine in IE8
I have added checkbox in display table using decorator class as shown in below
I have added a textbox, a dropdownlist, a checkbox, a button, and an update
I have created a messagebox which returns DialogResult. Now I added checkbox on it
I have a form which contains list of data, I added a checkbox in
I have added a checkbox to the rows of a gridview that when clicked
I have a gridview that I have added a checkbox column using a templatefield
I have added a checkbox inside a list view, but i am able to
I have added a checkbox to the Listview and managed to get the checkbox
I have a RadGrid having a checkbox column, i have added the column as

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.