473,405 Members | 2,344 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,405 software developers and data experts.

Deploying a Windows service

Hi,

I've written a Windows service and added a Setup project to the solution.

Is the only way to get the installation to run the InstallUtil part to
actually install the executable as a service to add a Custom Action? And, if
so, do I need to include InstallUtil.exe within the Setup.msi?

Any assistance gratefully received.

Mark Rae
Nov 16 '05 #1
4 17516
> Is the only way to get the installation to run the InstallUtil part to
actually install the executable as a service to add a Custom Action?
yes, but perhaps not in the way you think.
And, if so, do I need to include InstallUtil.exe within the Setup.msi?


no

check the latter half of this on how to create a simple service setup
project.
http://www.codeproject.com/dotnet/si...owsservice.asp
Nov 16 '05 #2
"Dan Bass" <danielbass [at] postmaster [dot] co [dot] uk> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
check the latter half of this on how to create a simple service setup
project.
http://www.codeproject.com/dotnet/si...owsservice.asp


Excellent! Thanks very much.
Nov 16 '05 #3
"Dan Bass" <danielbass [at] postmaster [dot] co [dot] uk> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...

Hi Dan,
check the latter half of this on how to create a simple service setup
project.
http://www.codeproject.com/dotnet/si...owsservice.asp


The final thing I need now is to be able to provide a description for my
service which displays in the Services MMC snap-in.

According to this article
http://www.codeproject.com/dotnet/do...escription.asp, this property
was omitted from the ServiceProcessInstaller object in the .NET Framework.
The article goes on to say that the only way of adding a description is to
write it directly into the Registry.

This article http://www.codeproject.com/csharp/CS...erviceInst.asp
suggests a way of achieving this via the AfterInstall event of the
ProjectInstaller object.

I'd be interested to know if this is the only way to do this, or if there is
a better way.

Any assistance gratefully received.

Mark
Nov 16 '05 #4
Dan,

Thanks for the link this helped me alot. I am writing a windows service
that is to be deployed into a production environment on multiple servers. My
tech lead gave me some help setting up the install project and in his defense
he did what he thought was right.

However when we setup the install project the only custom action we setup
was "Install". This caused problems when uninstalling and attempting to
re-install as the user would have to go into the registry and remove the
keys, and then reboot the box because the services manager would not update.
The follow post is intended to help anyone else that has this problem because
it is not readily apparent in the article but that is what finally lead me
down the correct path.

When you define your windows setup project you must define custom Actions
for all for of the groups ( Install, Commit, Rollback, and Uninstall ). The
simpliest way is to assign them all to your windows service project( e.g.
MyNewService ).

Not that I have all four Custom Action groups assigned to my windows service
project, the service can be installed and uninstalled without any registry
hacking and best of all the servers do not have to be rebooted.

Thanks again and I hope this helps someone :)
Nov 16 '05 #5

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

Similar topics

1
by: Terry H | last post by:
Hi I am deploying a winforms app via the windows installer and a VS.Net 2003 setup and deploymnet project. At the moment, I am adding launch conditions for the .Net Framework 1.1 and MDAC 2.7...
2
by: Kalem | last post by:
Hi all. I've created a web service that runs fine on my development PC running W2K. The service is consumed by an ASPX page. (written using vb.net). I can deploy the webservice without any issues...
3
by: Rachel | last post by:
Hi, I am using the data access application block successfully in our development environment, however when I deploy to our testing server as Private Assemblies I keep getting the following ...
1
by: Simon Verona | last post by:
Hope somebody can help. I have a web service written in vb.net which works fine localling on my Windows XP Pro development machine without a problem. I have deployed in onto a Windows Server...
3
by: Joe | last post by:
Anyone with tips, suggestions, or web links about deploying a Windows Service? How to get it installed, configured correctly, etc... -- Using Opera's revolutionary e-mail client:...
8
by: Afshar | last post by:
Hi Group, Please help ending my Nightmare! There's a Windows Service written in VC++ and I have an ASP.NET project that uses this sevice as a COM library. It just works fine in VS Internal Web...
3
by: Christian Nunciato | last post by:
Hi there: I'm a veteran to ASP.NET 1.1, but new to 2.0, and I'm using VS 2005. When I run the app on my local machine, using the built-in Web server, I have no problems, but deploying the site...
1
by: dfererer | last post by:
Dear all, I want to install and run ClickOnce Deploying application under a Windows Service,I have make the service starting the application successfully(user API...
0
by: JM | last post by:
I have created simple windows service which just write message to event log when it starts and stops. I am able to install it succesfully using: installutil <service_file.exe>, where...
3
by: =?Utf-8?B?eWtmZmM=?= | last post by:
I try deploying a very simple (very simple indeed) Vb.net application by following the basic steps according to some tutorials. My pc runs Visual Studio 2005 and it reports "Build successful"...
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...
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
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...
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
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...
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.