Unchecking a checkbox during installation? - Advanced Installer Community
Codename K
Posts: 479
Joined: Fri Jan 29, 2010 3:04 pm

Unchecking a checkbox during installation?

Hello,

In my Finish dialog I show a checkbox. Based on a condition it need to check or uncheck automatically. How to do that?

:)
K
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Unchecking a checkbox during installation?

Hi,

In order to achieve this you can create two "Set installer property" custom actions in the "Finish Dialogs Stage" section to set or delete the property related to your checkbox. For example, if the checkbox property is [MY_CHECKBOX] you can use two control events like below:
  • Property: MY_CHECKBOX
    Value: 1
    Condition: <true>

    Property: MY_CHECKBOX
    Value: {}
    (this is how a property can by set to empty, deleted)
    Condition: <false>
Let us know if this helped.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Codename K
Posts: 479
Joined: Fri Jan 29, 2010 3:04 pm

Re: Unchecking a checkbox during installation?

Hello,

I am checking for an application running using the AI_PROCESS_STATE method. If it is Running then the check box needs to be unchecked. This did not work. The conditions are AI_PROCESS_STATE = "Running" and AI_PROCESS_STATE = "Stopped".

:)
K
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Unchecking a checkbox during installation?

Hi,

This may happen if your "Detect Process" custom action is added in the "Install Execution Stage" section. In this case the value of the [AI_PROCESS_STATE] property that is set to in that section is not passed to the "Finish Dialogs Stage" section because this is the Windows Installer default behavior.

So, to overcome this problem you can drag the "Detect Process" custom action to the "Finish Dialogs Stage" section above the "Set installer property" custom actions.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Codename K
Posts: 479
Joined: Fri Jan 29, 2010 3:04 pm

Re: Unchecking a checkbox during installation?

Splendid, worked perfectly. Thanks as always.

:D :D :D
K
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Unchecking a checkbox during installation?

You're welcome. Glad to help.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”