-2

I want to fetch values of custom textbox values Email_ID and Serial_key created during setup in c#. I went through some stack overflow answers and got to know need to override Installer class

public override void Install(IDictionary stateSaver)
{
         base.Install(stateSaver);

}

I want to know where to write this class and how to fetch values in this installer class.During setup I want to fetch this textbox values and send to server

PhilDW
  • 20,260
  • 1
  • 18
  • 28
kam
  • 1
  • 2
  • Duplicate of https://stackoverflow.com/questions/47131830/c-sharp-visual-studio-project-installer-save-data-from-textbox-into-textfile/47164481#47164481 and most of https://stackoverflow.com/questions/47131830/c-sharp-visual-studio-project-installer-save-data-from-textbox-into-textfile/47164481#47164481 – PhilDW Jan 08 '18 at 18:26

1 Answers1

0

You may need to create a custom install program and override Install method inside that.

In the Solution Explorer, right click on the project name and choose 'Add' > 'New Item' and then choose 'Installer Class' from the New Item dialog.

Refer this as a startup

The user input values will be available in the Context.Parameters object. Look at this

Praveen Prasannan
  • 7,093
  • 10
  • 50
  • 70
  • Thanks..Now, I have created Installer Class but how to fetch those values in that class?. – kam Jan 08 '18 at 11:38