By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,140 Members | 1,295 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,140 IT Pros & Developers. It's quick & easy.

Question about Windows Service and Setup projects

P: n/a
I am reviewing Windows service programming. I'm running VS2005 and
programming in VB. I've just found an example in Support: 'How to create a
Setup project for a Windows Service in Visual Basic .NET or in Visual Basic
2005'
http://support.microsoft.com/kb/317421

I've been able to program and run this example without problems.

However, I wonder if I'm missing the point here. How do you deploy a
service like this to a machine without Visual Studio installed?

(Admittedly I have little experience writing setup projects either.)
Jul 14 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
When you create a Windows Service project in VS, it should include the
installer classes in the service project itself (ServiceInstaller,
ServiceProcessInstaller). As you've probably determined already, these
allow for a command line install/uninstall of the service --- fine if you're
a developer, not so much fun if you're a regular user.

That's where the Setup project comes into play. You create the Setup
project in VS and add it to your current solution (side by side your Service
project), telling it that you want to install the output of your service
project. The installer, when run, will detect the fact that your service
..exe contains special installer classes (ServiceInstaller,
ServiceProcessInstaller) and will call the install methods of those classes
during the install. This means that a nice Wizard-esque GUI can be used to
install/uninstall your service.

The Setup project compiles down to an MSI file and a "Setup.exe" file, which
can be run on the target user's computer without VS installed. It can even
be configured to download and install prerequisites like .NET 2.0 for
example.

-Alex

"B. Chernick" <BC*******@discussions.microsoft.comwrote in message
news:CE**********************************@microsof t.com...
>I am reviewing Windows service programming. I'm running VS2005 and
programming in VB. I've just found an example in Support: 'How to create
a
Setup project for a Windows Service in Visual Basic .NET or in Visual
Basic
2005'
http://support.microsoft.com/kb/317421

I've been able to program and run this example without problems.

However, I wonder if I'm missing the point here. How do you deploy a
service like this to a machine without Visual Studio installed?

(Admittedly I have little experience writing setup projects either.)

Jul 14 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.