PC Review


Reply
Thread Tools Rate Thread

C# Windows Service installutil.exe

 
 
Trevor
Guest
Posts: n/a
 
      28th Dec 2004
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#?
 
Reply With Quote
 
 
 
 
W.G. Ryan eMVP
Guest
Posts: n/a
 
      28th Dec 2004
You can use a ServiceInstaller and ServiceProcessInstaller -
http://msdn.microsoft.com/library/de...pplication.asp

HTH

--
W.G. Ryan, MVP

www.tibasolutions.com | www.devbuzz.com | www.knowdotnet.com
"Trevor" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> 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#?



 
Reply With Quote
 
Willy Denoyette [MVP]
Guest
Posts: n/a
 
      28th Dec 2004

"Trevor" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Is "intstallutil.exe" (the program to install/uninstall a C# service)
> included with the .NET Runtime?


Yes, it's part of the runtime.

Willy.


 
Reply With Quote
 
Ken Kolda
Guest
Posts: n/a
 
      29th Dec 2004
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" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> 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#?



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
installutil - windows service installation Param R. Microsoft Dot NET Framework 3 10th Aug 2009 04:42 PM
Installing a .NET Windows Service using InstallUtil Randy Microsoft Dot NET 6 10th Jul 2009 10:51 PM
installutil for windows service Alhambra Eidos Kiquenet Microsoft C# .NET 4 7th Jul 2008 06:48 PM
Instaling Windows Service without using InstallUtil.exe =?Utf-8?B?U2FjaGluIFZhaXNobmF2?= Microsoft Dot NET Framework 2 16th Jun 2006 04:08 PM
windows service - installutil.exe scarred wind Microsoft C# .NET 7 4th Aug 2004 04:29 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:37 PM.