I believe the ChangeServiceConfig Win32 function is the usual way to
change the account of an installed service.
Phil Wilson
-Original Message-
From: Discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] On Behalf Of Alex
Smotritsky
Sent: Friday, December 29, 2006 3:11 PM
To: A
Alternatively, you may be able to use the RemotingConfiguration.Configure ()
method. It's in System.Runtime.Remoting, but you don't have to be using
remoting to use the method.
Details are hazy, but I remember (a long time ago) being able to use this to
load a .config file other than the default.
Why don't you rename your cMyConfigFile.config file as a first step of your
application. The reason why you would need a different name (I presume) is
to be able to switch from one config file to the other just by restarting
your service with a different start-up parameter. You could have
cMyConfi