How to change app.config settings on a win form app once it's installed on a client

1k Views Asked by At

I create a quick little win form application that I want to deploy to a user. In my application I created several user settings so that he can configure it on his end once it's installed.

In my app.config I have:

<userSettings>
    <MyApp.Properties.Settings>
      <setting name="Custom1" serializeAs="String">
        <value>This is my value 1</value>
      </setting>
      <setting name="Custom2" serializeAs="String">
        <value>This is my value 2</value>
      </setting>      
    </MyApp.Properties.Settings>
  </userSettings>

In my Application I reference them like:

lblOne.Text = MyApp.Properties.Settings.Default.JobLocation;
lblTwo.Text = MyApp.Properties.Settings.Default.UmiLocation;

I click install and I don't see the app.config file on deployment. I just see the ClickOnce Application installed on a path on my c drive.

0

There are 0 best solutions below