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
HELP! VB.net Service error: "Could not start service on local computer. Error 1053: The service did not respond to the start or control request in a timely fashion." mrwoopey Microsoft Dot NET Framework 4 21st Aug 2008 06:27 PM
Unable to retrieve service name of VB.Net service after service st =?Utf-8?B?VG9t?= Microsoft Dot NET Framework 0 20th Jan 2006 10:01 AM
Windows Service - Windows application - Start/Stop Service Murali Microsoft C# .NET 1 22nd Apr 2005 12:49 PM
Unable to upgrade from Microsoft Windows 200 Professional Service Pack 4 to Microsoft Windows 2000 Professional Service Pack 2 =?Utf-8?B?TWF0dGhldyBQb2xsb2Nr?= Microsoft Windows 2000 4 8th Mar 2004 11:41 AM
The <service> service hung on starting. / Service started successfully. =?Utf-8?B?cm9iX3Nhcw==?= Microsoft Dot NET 0 12th Feb 2004 11:21 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:56 PM.