473,789 Members | 2,683 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2747
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 WindowsServiceE xample (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******** ********@tk2msf tngp13.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 WindowsServiceE xample (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
2768
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 when trying to install it, I immediately got this error: This installation package cannot be installed by the Windows Installer service. You must install a Windows service pack that contains a newer version of the Windows Installer service.
0
1308
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 solutions, and each one is built with its own installer. Works fine. I'd like to be able to deploy both components together in a single installer, but I'm not sure about the best way
5
14467
by: krisk | last post by:
Could not find ansewr: in ProjectInstaller, RunInstallerAttribute: ..... this.serviceInstaller1.ServiceName = MyServiceName; in the code: public class MyService : System.ServiceProcess.ServiceBase { string MyServiceName = "configSendmailA";
8
503
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 not install my program as a service on the client machine. Is there something special I need to do? Shouldn't the 'Project Output' show the installer that I have made a service and then install the thing properly?
4
7437
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 custom action. This dll is apparently dependent on the MSVCP71.DLL and MSVCR71.DLL's as per the Detected Dependencies folder visible in the deployment project All this good except I am UNABLE to Retarget the output of the msm merge...
7
3688
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 to it, using installutil.exe OR is it must to have an installer to the service project to be able to
2
1976
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. I've added a new project to my solution of the type "Setup Wizard". I indicated it was a Windows Application, and that I wanted everything included with the exception of the debug files. I did not add any additional files. I've never used...
1
1979
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 -- should I use the Setup Project template in VS 2005? Can this handle Windows Service installs? thanks, Rob.
4
2006
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 Installer) 2. My Windows Service is upgraded to .NET 2.0 with deployment project using MSI (Windows Installer) Upgrade code is the same from the .NET 1.1 version to the .NET 2.0 version
0
9511
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10408
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10199
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10139
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9020
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6769
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5417
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5551
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2909
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.