Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
262 views
in Technique[技术] by (71.8m points)

Installing a windows service from a Visual Studio Installer project

A colleague has written a Windows Application and left me to do the installers. I have created the installer project through Visual Studio and added the primary output of the service project to the new project.

When I run the installer it creates the correct folders and copies the dlls, exe and config file in, but it doesn't do the actual install of the service.

The service isn't listed in the Services window, and if I double click on the exe I'm told I need to run installutil to install the service.

How do I make the installer do this bit for me? I found this article:

http://www.codeproject.com/KB/install/InstallService.aspx

but that seems overly complex for what I would expect to be pretty basic.

question from:https://stackoverflow.com/questions/407109/installing-a-windows-service-from-a-visual-studio-installer-project

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

I used this article:

How to create a Setup project for a Windows Service in Visual Basic .NET or in Visual Basic 2005

Felt pretty dumb that I couldn't figure it all out until I went through all of the steps in this article. It's not a trivial exercise by any means.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...