Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Installing a Windows Service using - installutil / MyProject.exe

Posted on 2008-11-05
2
Medium Priority
?
526 Views
Last Modified: 2013-12-17
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
0
Comment
Question by:John500
2 Comments
 
LVL 35

Accepted Solution

by:
torimar earned 1500 total points
ID: 22887662
Try:

net start TestService

net stop TestService


If this works fine, too, you will probably have forgotten to set the lpDisplayName parameter in the CreateService() function:
http://msdn.microsoft.com/en-us/library/ms682450.aspx
0
 

Author Comment

by:John500
ID: 22924376
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
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In real business world data are crucial and sometimes data are shared among different information systems. Hence, an agreeable file transfer protocol need to be established.
By default Outlook 2016 displays only one time zone in the Calendar. The following article explains how to display two time zones in one calendar view.
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses

575 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question