CA updatng a session property - Advanced Installer Community
azhockeynut
Posts: 8
Joined: Fri Feb 14, 2014 4:27 pm

CA updatng a session property

Thanks to you guys I have a project move forward quickly!

One question, I have a CA that calls a .net DLL, the DLL reads session properties perfectly, and sets one when completed, perfectly!
How do I "react" on that being completed.

for example, I have a property called RETVAL, it is an empty string by default.
the CA executes a function in a dll, that function, upon completion updates the session property RETVAL = "Completed"

I want the Next Button or some other control to become enabled when that RETVAL = Completed.

I can see when I run and log that RETVAL is being updated for sure, but the controls do not enable. Is there a way to do this or no?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: CA updatng a session property

Hello,

In order to achieve that you can add Control Condition on the related control.

From the Edit Control Condition Dialog you can select a Disable action when the your property is different than Completed (e.g. NOT (RETVAL = "Completed")) and another control condition for Enable action when the condition is true (e.g RETVAL = "Completed").

Also, I've attached a .zip archive that contains a sample which implements your scenario. On the WelcomeDlg I have an edit box where the user must enter Completed in order to proceed further with the installation. If any other string is entered, the Next > button is Disabled.

If there is anything else I can help with, please let me know.

Best regards,
Dan
Attachments
EnableDisableControl.zip
(3.35 KiB) Downloaded 295 times
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
azhockeynut
Posts: 8
Joined: Fri Feb 14, 2014 4:27 pm

Re: CA updatng a session property

Dan,
Thanks for that, it is close to what I was talking about but you are setting the property in the edit box, I want to do it as the property updated by a custom action call to an external dll. I see in the log where the Property is updated

PROPERTY CHANGE: Modifying RET_VAL_FROM_LDAP property. Its current value is ' '. Its new value: 'LDAP Test Passed!'

so how to I get this to say, enable the Next button.
I have a control condition for RET_VAL_FROM_LDAP = " " disable
and one for NOT(RET_VAL_FROM_LDAP = " ") enable
however it does not do this.

I tried using an image, and also an image button and the Show, Hide actions to no avail.

ideas?

thanks
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: CA updatng a session property

Hi,

This may happens if your custom action is executed on the Install Execution Stage, after the Wizard Dialogs Stage. Can you please tell us when your custom action is executed? You can take a look on the Standard Actions article which may be useful to you.
Also, can you please attach your AIP(project file) or a sample project which replicate this behavior so I can have a better view about this? If it contains confidential information you can send us an
email to support at advancedinstaller dot com.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
azhockeynut
Posts: 8
Joined: Fri Feb 14, 2014 4:27 pm

Re: CA updatng a session property

I sent it to support email as zipped the project is too big

Return to “Common Problems”