You can easily do it with installer class.
- First of add installer class to your setup project. Go to
Add
>
Add New Item
> Select Installer class
Create a Window Form with radio button to get user input and logic to save selected values to a text file.
Within installer class`s Install method open windows form to get the user input. So during the installation windows form will pop up where user can select the values.(Please not that this form will not open as a modal pop up)
Install()
public override void Install(IDictionary stateSaver)
{
base.Install(stateSaver);
Form1 form = new Form1();
form.ShowDialog();
}
Best approach
Best approach to get the user input during the installation is to create .wid
file. See my post here.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…