I create a installer (setup) for my WM application. The purpose of this installer is to allow user to enter a server URL and save it to the app config file. Here is what I have done:
1) Add "Textboxes (A)" below the "Welcome" folder
2) In the custom installer project, add the following code to "Install" event. There is no error but the config file does not get updated.
Question - what is the proper way to get this done? Thank you in advance!
// code block:
public override void Install(IDictionary stateSaver)
string sUserInput = this.Context.Parameters["EDITA1"];
string TEMP_FILE = @"tempFile.txt";
string sUserInputFile = Path.Combine(installPath, TEMP_FILE);
StreamWriter oURLWriter = File.CreateText(sUserInputFile);
oURLWriter.WriteLine("end of user input");
code block added[/edit]
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)