Archive: Change IO ValidateText and MinLen...


Change IO ValidateText and MinLen...
Hello,

Some controls of my setup are required, but according as the user check a checkBox, other controls are required.
An exemple :
- 1 text control 'server'
- 1 text control 'database'
- 1 text control 'user'
- 1 text control 'pass'
- 1 checkBox 'NTauthentification'

server and database are allways required, no problem with ValidateText and MinLen=1 in IO.

If the checkBox NTauthentification is checked, that's all.
But if the checkBox NTauthentification is not checked, user and pass are now required.
I tried to change ValidateText and MinLen of these 2 controls, but nothing change, if the user don't give information about pass and user, there is not alert and the setup continue.

Do you know how I can do that?

Thanks a lot


You'd have to verify the user name and the password on your own in the leave callback function of the page. Examples\InstallOptions\test.nsi is a good example for this.


Oh yes, great.
Thanks