Hi Kundan Sinha,
You can use Custom Action to show a dialog require user information during installation. Here is a sample which shows the step to create a custom action for your setup project.(the sample code is not for this case)
http://www.codeproject.com/KB/install/Installation.aspx
You can override the OnBeforeInstall method to raise a form(Form1 in the sample code below), In form1, you can let user to input some information to configurate the database.
public partial class Installer1 : Installer
{
public Installer1()
{
InitializeComponent();
}
protected override void OnBeforeInstall(IDictionary savedState)
{
Form1 frm = new Form1();
frm.ShowDialog();
base.OnBeforeInstall(savedState);
}
}
If you have anything unclear, please feel free to tell me.
Sincerely,
Kira Qian
Please remember to mark the replies as answers if they help and unmark them if they provide no help. Welcome to the
All-In-One Code Framework!