C# - Installing a Service using the Setup Projectts

N

nwmotogeek

I am attempting to install a service application that I written using
the Setup Project. I have added an Installer to my service project by
right clicking on the design view of my service...much like all the web
sites have been telling me to do.

The Setup project works ok in the sense that it installs my files to
the target system. The problem is when I attemp to create a custom
action associated with my service project. Once I do this the Setup
Project will no longer build and reports a "General failure", not any
help at all.

I may be mistaken but my current understanding is that this should
work. The Setup Project should detect the Installer class I have added
to my service project and it should just work. I have been banging my
head against this for hours now. I need a solution to install my
service on the target system......please help.

Thank you.
 
V

Vadym Stetsyak

Hello, (e-mail address removed)!

n> I may be mistaken but my current understanding is that this should
n> work. The Setup Project should detect the Installer class I have added
n> to my service project and it should just work. I have been banging my
n> head against this for hours now. I need a solution to install my
n> service on the target system......

If you can use other tools for MSI setup creation ( not VS setup project ) then
to install windows service, it is only necessary to add appropriate records to msi table - ServiceInstall.

WiX is a free tool to create msi packages ( http://wix.sourceforge.net )

How yo install service in WiX ( http://www.tramontana.co.hu/wix/lesson6.php#6.4 )

For VS way:

( http://www.mcse.ms/archive102-2006-1-2080015.html )
--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top