Just spent the last week writing an installer with bells and whistles, and hit a problem. Scenario: I have several custom pages which I use to collect info. Some of the info is repeated and so the custom pages have to be repeated with cleared fields. There are various fields which are dynamically greyed out depending on what on the page is selected.
I did start of with a "Page custom startFn leaveFn" which handles the NOTIFY to grey out the buttons. But found that there was no way to clear a text field. I did use MUI_INSTALLOPTIONS_WRITE but found that you really need to call MUI_INSTALLOPTIONS_DISPLAY to redraw the screen with the new changes.
Then I looked at the mathtest.nsi to figure out how to repeatedly show the same screen, and found that it uses MUI_INSTALLOPTIONS_DISPLAY_RETURN to stay in the startFn and loop until it's ok. MUI_INSTALLOPTIONS_DISPLAY_RETURN only returns Success or Failed, so there is no way to tell if one of my custom buttons is being called.
I'm a bit confused about how I can submit a page (maybe from a custom button), have it do something and then clear all the fields.
Any help would be appreciated.