Link to home
Start Free TrialLog in
Avatar of John500
John500Flag for United States of America

asked on

Installing a Windows Service using - installutil / MyProject.exe

I'm trying to install a service but having no luck.  The message returned from 'installutil' (see picture below) is encouraging but nothing shows up in the Service Manager.

Also, how necessary is the 'public installer' option?  This service will probably be deployed as part of an image.  How about install privileges - if an administrator is the only expected installer, the installation should not need a project installer program - right?

Thanks!
install.jpg
ASKER CERTIFIED SOLUTION
Avatar of torimar
torimar
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of John500

ASKER

Thanks for the input on this.  However, a C# application created from the VS 2005 'Windows\Windows Service'  already has a built-in property/method for this:

private void InitializeComponent()
{
        components = new System.ComponentModel.Container();
        this.Servicename = "TestService";
}

I believe the 'CreateService()' function is for older VS builds like VS 6.0.

Also, the following link provides an explanation of how to ensure the Service will install by adding a project installer:

http://csharpcomputing.com/Tutorials/Lesson22.htm



I