Home All Groups Group Topic Archive Search About

Installer and app.config

Author
2 Apr 2007 9:06 PM
William Stacey [C# MVP]
Have a need to load app.config inside the Installer for a service.  This
took me a while to figure out and is now obvious, but SCM just uses the exe
as a "library" and calls the Installer class, so you don't get the
app.config loaded as if it was run as an exe - so you don't get the Settings
class populated.  If Settings was loaded, it would be SCM's settings.  Is
there a fast way to point to an app.config and get it loaded up into
Settings class instance so I get the strong typing without a lot of manual
parsing/serializing?  I can currently get is loaded, but not into a Settings
object.  tia

--
William Stacey [C# MVP]

AddThis Social Bookmark Button