In the code behind for the installer, replace the Install function with
below:
public override void Install( IDictionary mySavedState )
{
base.Install( mySavedState ); // This must be called first
Microsoft.Win32.RegistryKey ServDescription = null;
ServDescription =
Microsoft.Win32.Registry.LocalMachine.OpenSubKey(@ "System\CurrentControlSet\Services\<
Service Name >", true);
ServDescription.SetValue("Description", "< Your Description Here >");
ServDescription.Close();
ServiceController sc = new ServiceController("< Service Name >", ".");
sc.Refresh();
sc.Start();
}
"ivang" <iv************@hotmail.com> wrote in message
news:Or**************@TK2MSFTNGP15.phx.gbl...
Hello, All!
How can I set "description" column text which is displayed in MMC snap-in
"Services" for my own service process?
Thanx