Learn how to a build a cloud-first strategyRegister Now


.NET Windows service

Posted on 2010-01-04
Medium Priority
Last Modified: 2013-11-26
Hello All,

I currently have developed a windows service that works so far, however it is still in debug mode running from VS 2005 (VB.NET).

How can I compile this service and deploy it on a Windows 2003 Server with all the supporting .dll's it needs ?

Thanks in advance.
Question by:abennett10
LVL 11

Accepted Solution

PlatoConsultant earned 668 total points
ID: 26173138

Expert Comment

ID: 26173191
This site should help clear things up for you.
It did for me.
LVL 11

Assisted Solution

by:Kusala Wijayasena
Kusala Wijayasena earned 668 total points
ID: 26175387

I think your link should start from here:


LVL 15

Assisted Solution

angus_young_acdc earned 664 total points
ID: 26178938
Have you also been sure to add an Installer Class to your project?  As that is required for the installation, with code similar to the following in it (name the strings to whatever you require.
Then simply follow the following instructions:
Click Start -> Visual Studio [Version] -> Visual Studio Tools then select Visual Studio [Version] Command Prompt, from here just type:

installutil.exe then the full path to your exe.  Eg:

installutil.exe "C:\MyApp\MyApp.exe"

That will install it.  Alternatively, you can create an MSI with a custom action to install your service, this would use the install class that you add in your project.

ServiceInstaller si = new ServiceInstaller(); 
            ServiceProcessInstaller spi = new ServiceProcessInstaller(); 
            si.ServiceName = ""; 
            si.DisplayName = ""; 
            si.Description = ""; 
            si.StartType = ServiceStartMode.Automatic; 
            spi.Account = System.ServiceProcess.ServiceAccount.User; 
            spi.Password = null; 
            spi.Username = null; 

Open in new window


Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses
Course of the Month21 days, 5 hours left to enroll

810 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