updating UI elements based on external actions - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

sbrown_el
Posts: 20
Joined: Wed Dec 05, 2012 4:07 pm

updating UI elements based on external actions

I had it working - and then I changed my media type - and it stopped working.. so I changed the media type back, and it still doesnt work.

I've tried to implement the ideas in http://www.advancedinstaller.com/forums ... f=2&t=9819 but something just isnt right.

I have a custom action which validates user database selection and returns a database patch level. I've attached this to a button, until I can figure out how to trigger this from a ComboBox change.

The custom action completes by performing:

Code: Select all

msgbox sValidVersion

Session.Property("CHOSEN_DB_COMPAT") = sValidVersion

msgbox Session.Property("CHOSEN_DB_COMPAT")

'setting AiRefreshDlg refreshes the controls on a dialog when Enhanced UI is enabled
Session.Property("AiRefreshDlg") = cstr(1)

msgbox Session.Property("AiRefreshDlg")
And all the MsgBox comands show what I would expect. But the UI does not refresh any more. It was a few hours ago - before I changed my media type to see what the others would do (and then changed it back to MSI with resources next to it)

The annoying part is that the property is being set - I can go to the next (or previous) pane in the dialog set, and back to the dialog pane with the test on it, and the value is there - it's just not being set dynamically any longer.

What would have disabled the refresh capability when I changed media types? (and how do I regain the ability to refresh the UI?)
sbrown_el
Posts: 20
Joined: Wed Dec 05, 2012 4:07 pm

Re: updating UI elements based on external actions

Found the problem - at some point, the EnhancedUI got disabled.... :oops:

Return to “Common Problems”