I am creating a setup for windows application, i want to show a form when user clicks on setup. That form will ask for password to the user.
Right password will lead
Following would be the easiest approach,
Windows Form
which allows the user to enter password.Install method
you have to open created windows form (please note windows form can not be opened as a modal pop up here).Installer classe's Install()
public override void Install(System.Collections.IDictionary stateSaver)
{
base.Install(stateSaver);
Form1 validationForm = new Form1();
validationForm.ShowDialog();
if (!validationForm.IsValidPassword)
{
throw new Exception("Invalid Password. Please enter valid password to continue installation");
}
}