How to deploy Window service project?

C

Cylix

I have create and finished a windows service project.
I test and debug the project in my computer by just rebuild the file,
and so the service is installed in my computer before.

Now, I need to deploy it to the admin computer, but I don't know the
way.
I have tried to copy file in \bin and using command:
installutil <the service file path>
Exception return: System.IO.FileNotFoundException: File or assembly
name XXXXXXXXXXX.exe, or one of its dependencies, was not found ...

Thanks!
 
M

Michel Posseth [MCP]

Ad a service installer and optionally a service controler to your service
project ( controls can be found in the tools window )

If you now create a new setup project and add the service project to this
setup it wil automaticly take care of correct installation on the target
computer by just clicking the setup.exe


regards

Michel Posseth [MCP]
 
C

Cylix

I can deploy the service now,
but I cannot using the installer to upgrade the service by just double
click the new installer.
It show me that the service is already exists...
 

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