How to set up .exe.config during installation

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: policywatcher (policywatcher_at_discussions.microsoft.com)
Date: 10/18/04


Date: Mon, 18 Oct 2004 07:25:21 -0700

So I've been really good. I've written my nice shiny new app to use a
.config file.

I have code that is nicely reading (and updating as required) the settings
in the .config file, and the app is passing testing, fine.

All goes well, right up to the point where I want to make the install script
set up the initial values in the config file, based on part of the
installation script values and text box values from a form in the install
script.

And can I find out how to do it?

Nope. Not at all.



Relevant Pages

  • Re: CLI-kiddies/advocates ?
    ... On Sun, 27 Nov 2005 20:01:55 GMT, Aragorn staggered into the Black Sun ... all the 4.n Xs are supposed to use the same config file format. ... having may be due to compatability libraries, or if the app is really ... post the error messages from the problem app's startup. ...
    (comp.os.linux.misc)
  • Re: Why not XML based configurationfiles?
    ... config file, they lose use of that APP. ... If an admin screws up ... If an admin screws up a GLOBAL config file for all apps ...
    (comp.os.linux.misc)
  • Re: WSE2.0 Security Exception ?
    ... that is simply trying to read its app config file. ... invalid, Rename will be used as AfterCopyEvent. ... >>executable with full trust on a Win2k box without error. ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • RE: Application error in event log
    ... image is compiled by the .NET the first time that you load the assembly, ... This means that the image compilation failed. ... can not alter at runtime the config file (upon there are functions like ... At some point I got one of our network admins to run the app ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: strang, isnt it?
    ... "An unhandled exception has occured in your application..... ... > denote you want the app to start on start-up (so I can repro the problem. ... > There's more than one registry setting that can be used like this). ... >> the config file as a parameter? ...
    (microsoft.public.dotnet.languages.csharp)