This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Managed custom action result property doesn't work like a regular property
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 26, 2015
06:19 AM
Managed custom action result property doesn't work like a regular property
I'm struggling with an issue where I have a managed code custom action (a C# DLL) that's doing some DB connectivity validation for me. The DLL itself runs successfully and its return value is also stored into a property I defined when assigning a custom method signature. According to MSI log the return value is stored into a property with a proper value, but still any controls or events depending on that property value aren't evaluated, i.e. a control that's supposed to be enabled after a successful connectivity check doesn't get enabled. If I add a separate button that set the same property value with a SetProperty action, everything works like it should. How could I get the managed custom action result to take effect in the UI?
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 27, 2015
01:08 AM
If I run the custom action, it does set the property just fine and the control which has the property value as its Enabled condition gets enabled if I back away to the previous dialog page and return to the one where the custom action was run. So if I could just trigger re-evaluation of conditions after setting that property from a custom action like it does if I have a control triggering a SetProperty action on the same page, my problem would be solved.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 27, 2015
01:36 AM
...and now after another cup of coffee I just ran a SetProperty action setting MYPROPERTY to [MYPROPERTY] after the managed custom action and that's it.