On 18/02/2021 2:10 pm, Sergey Rozhenko wrote:
> Oh, now I get what you mean. It's just an example. The password is meant
> to be calculated after the user selects the original games' folders.
That is definitely too late. wpPassword is shown well before
wpSelectDir and you can't set it "after the fact".
> Which shouldn't be the case, Inno should provide a support function
> for setting the password.
Again, it is usually a bad idea to do this, so providing a support
function sends entirely the wrong message.
> As for it being too late, it doesn't work even if it set in
> InitializeWizard. It seems the password is only set if the actual
> page is shown and Next button is clicked (seems to be no way to
> auto-click the button from code either).
Remove your use of ShouldSkipPage. The password will be prefilled, they
just need to click Next. You can set the [Messages] to that effect if
There is technically a way to still skip the page but as it's open to
abuse I'm not going to share it.