bwilliamson
11th October 2005 15:46 UTC
License Tickbox
I know this sounds like a strange thing to do but...
Using MUI, Is there a way to enable the next button on the license page regardless of whether the checkbox is checked?
Then, I have two Sections that install two seperate applications, if the checkbox on the license screen was not checked, i would like to skip section 2!
Please help.
Ben
kichik
11th October 2005 15:53 UTC
When using MUI_LICENSEPAGE_CHECKBOX, it will always disable the next button until the checkbox is checked.
You can use Resource Hacker to modify the UI (Contrib\UIs\modern.exe) on your own to add another check box. Since you'd add it on your own, it will not be used to enable the next button. In the leave function of the license page, you can check the status of this checkbox.
bwilliamson
11th October 2005 15:59 UTC
Thanks, kichik. How would I check the value of the check box?
kichik
11th October 2005 16:10 UTC
Get is HWND using FindWindow and GetDlgItem (Conitrb\Modern UI\System.nsh contains examples of that) and send it the BM_GETCHECK message. The value of BM_GETCHECK is defined in Includes\WinMessages.nsh.