Archive: disable readme checkbox when user unchecks run checkbox


disable readme checkbox when user unchecks run checkbox
I use the readme check box on the MUI2 finish page to let the user open the application console. This can only work if the user chooses to start the application with the run checkbox. I would like to make it obvious by disabling the readme checkbox whenever the run checkbox is unchecked. When the readme is disabled, it should also be unchecked. If the user changes his mind and checks the run checkbox again, then the readme checkbox should be reactivated.

This is a common problem and is often discussed in the forums. In all the examples I have seen, the state is updated before the dialog is shown and it stays that way.

My problem is I want to do this continuously for as long as the Finish page is up.

In my research, I found EnableWindow, or the GROUPCONTROLS macro. I've seen examples using MUI_PAGE_CUSTOMFUNCTION_SHOW for a custom page. The onSelChange callback looked promising but it is documented only for the component selection page. I also looked at testnotify.nsi but I don't understand how it relates to the MUI2 finish page.

Thanks for your help.


it doesn't.. your best bet is to create your own Custom page, with your own checkboxes, that you then have full control over


use NSD_OnClick (or NSD_OnChange) in the show callback, to find the var name for the checkbox, you must look at the MUI2 source