473,406 Members | 2,371 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

How to build Installer for Windows Service

DBT
When I add an Install project to my Windows Service project everything
compiles and it works okay.

The problem is the Installer only writes the files to disk, but doesn't
actually install the service. Thus I must manually use InstallUtil.exe to
install the service.

I thought the installer handled this. I'm using VS2003.
Nov 15 '05 #1
2 2730
DBT wrote:
When I add an Install project to my Windows Service project everything
compiles and it works okay.

The problem is the Installer only writes the files to disk, but doesn't
actually install the service. Thus I must manually use InstallUtil.exe to
install the service.

I thought the installer handled this. I'm using VS2003.

You should add a custom action for install, commit, rollback and
uninstall nodes, including the primary output of your WinServer project.
See in 70-310/320 preparation guide. You may do the following:
1) Navigate to the Solution Explorer, right-click the ServiceSetup
project, point to View, and click Custom Actions from the shortcut menu
2) In Custom Actions, right-click Custom Actions and click Add Custom
Action from the shortcut menu.
3) In the Select Item In Project dialog box, double-click Application
Folder, select Primary Output From WindowsServiceExample (Active), and
click OK. The primary output is added to all four nodes of the custom
actions: Install, Commit, Rollback, and Uninstall.

Dmitry

Nov 15 '05 #2
DBT
Thanks, that did it ...
"Dmitry Baibakov" <ro**@hotbox.ru> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
DBT wrote:
When I add an Install project to my Windows Service project everything
compiles and it works okay.

The problem is the Installer only writes the files to disk, but doesn't
actually install the service. Thus I must manually use InstallUtil.exe to install the service.

I thought the installer handled this. I'm using VS2003.

You should add a custom action for install, commit, rollback and
uninstall nodes, including the primary output of your WinServer project.
See in 70-310/320 preparation guide. You may do the following:
1) Navigate to the Solution Explorer, right-click the ServiceSetup
project, point to View, and click Custom Actions from the shortcut menu
2) In Custom Actions, right-click Custom Actions and click Add Custom
Action from the shortcut menu.
3) In the Select Item In Project dialog box, double-click Application
Folder, select Primary Output From WindowsServiceExample (Active), and
click OK. The primary output is added to all four nodes of the custom
actions: Install, Commit, Rollback, and Uninstall.

Dmitry

Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Richard Hanson | last post by:
Over the last few days, I reinstalled Win2kSP2 to a spare harddrive I had just swapped into my Fujitsu LifeBook P1120 (long story <wink>). Subsequently, I DL'ed the newest Python alpha (2.4a2), and...
0
by: vlusardi | last post by:
I'm finishing up development of a network file backup application consisting of a C# Windows form app and a windows service. Both the form app and the windows service exist in seperate...
5
by: krisk | last post by:
Could not find ansewr: in ProjectInstaller, RunInstallerAttribute: ..... this.serviceInstaller1.ServiceName = MyServiceName; in the code: public class MyService :...
8
by: D Busby | last post by:
List I've made a .NET windows service in C++, then I added an installer to the solution. I added the 'Project Output' from my .NET service as a package for the installer to install however it does...
4
by: Bill Murray | last post by:
I am using VS.NET 2003 and trying to deploy a service program(c++) to a Windows 2000 Server system. I have also written a small DLL (USSsetup.dll) that is used to start/stop the service using a...
7
by: sidd | last post by:
Hi All, i have some doubts on .net windows services.. please see if some one could help me understand this.. 1)is it possible to install a windows service which does not have a installer added...
2
by: Mark | last post by:
I've created a windows service that has a reference to another class library project. This all exists in VS.NET as a single solution. It is in release mode, and I'm ready to create an installer. ...
1
by: Rob R. Ainscough | last post by:
In the past for VS 2003 .NET 1.1 Windows Service projects, I've been using InstallUtil. I'm now converting it over to VS 2005 and .NET 2.0 and would like to create a stand alone installer --...
4
by: Rob R. Ainscough | last post by:
The task is brain dead simple - Uninstall prior Windows Service and Install newer version of Windows Service Background: 1. My Windows Service written in .NET 1.1 and deployed via MSI (Windows...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.