Archive: Can I disable next button in dir page?


Can I disable next button in dir page?
Can I disable the next button in a directory page? for example I want to know if a State is correct in a page before so the user cant go on installing.

sorry about my bad english.. :o

TheJavaMan :)


Instead of disabling the next button you should check to make sure that the path is suitable in the leave function of the directory page and use the "abort" function if it is not to prevent the user from continuing with the install until the path is OK.

Vytautas


You can disable it by calling Abort from .onVerifyInstDir. This callback function is called everytime the user changes the installation directory. $INSTDIR is the value the user typed as in the leave function.