Archive: How to control selection in a custom page?


How to control selection in a custom page?
Hi all,

I'm new to NSIS. I have a custom page for user to input server name and port number and checkbox to use default value.

If user click on the checkbox to use default, I need to grey out the text box for user to input server name and port in the custom page. How do I do that?

Thanks,

nsislover


One way to do it is by using the NOTIFY flag on your checkbox. You would create a function that would change the state of the server name and port number boxes and set their flags to DISABLED using WriteINIStr. The Examples\InstallOptions folder of your NSIS installation has a great one called TestNotify.nsi if you want an example.