Initializing user.config or app.exe.config during install

前端 未结 3 1871
醉酒成梦
醉酒成梦 2021-02-20 07:25

I am developing a .NET WinForms application which relies on user.config to store various useful settings such as intranet web service URLs. We would like to make it possible to

3条回答
  •  隐瞒了意图╮
    2021-02-20 08:02

    If you create this application for larger companies, then you should have a look at Group Policy. Unfortunately, it'll bring your application back to the golden age of registry. I understand, that this would be a huge change in your program, but this is the way to this.

    However, if the web service's URL is the only thing, you have to setup this way, then GPO might be an overkill. In that case I would hardcode the executable's name.

提交回复
热议问题