Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

C# Windows Service installutil.exe

2 views
Skip to first unread message

Trevor

unread,
Dec 28, 2004, 4:32:50 PM12/28/04
to
Is "intstallutil.exe" (the program to install/uninstall a C# service)
included with the .NET Runtime? Will an end user who does not have
Visual Studio .NET installed still be able to execute "installutil.exe"
from the command line if only the .NET Runtime is installed? Are there
any other methods of installing a Windows Service written in C#?

W.G. Ryan eMVP

unread,
Dec 28, 2004, 4:51:18 PM12/28/04
to
You can use a ServiceInstaller and ServiceProcessInstaller -
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbtskaddinginstallerstoyourserviceapplication.asp

HTH

--
W.G. Ryan, MVP

www.tibasolutions.com | www.devbuzz.com | www.knowdotnet.com
"Trevor" <tre...@spam.com> wrote in message
news:%23HMxJTS...@TK2MSFTNGP09.phx.gbl...

Willy Denoyette [MVP]

unread,
Dec 28, 2004, 5:57:13 PM12/28/04
to

"Trevor" <tre...@spam.com> wrote in message
news:%23HMxJTS...@TK2MSFTNGP09.phx.gbl...
> Is "intstallutil.exe" (the program to install/uninstall a C# service)
> included with the .NET Runtime?

Yes, it's part of the runtime.

Willy.


Ken Kolda

unread,
Dec 28, 2004, 8:07:33 PM12/28/04
to
You can also invoke the installutil through an undocumented class named
ManagedInstallerClass, e.g.

System.Configuration.Install.ManagedInstallerClass.InstallHelper(new
string[] { yourServiceExePath });

Similarly, you would uninstall your service as follows:

System.Configuration.Install.ManagedInstallerClass.InstallHelper(new
string[] { "/u", yourServiceExePath });

Ken


"Trevor" <tre...@spam.com> wrote in message
news:%23HMxJTS...@TK2MSFTNGP09.phx.gbl...

0 new messages