Installing Services Using VS.Net Base Setup Project

  • Thread starter Alireza Haghshenass
  • Start date
A

Alireza Haghshenass

Dear All,
I just wanted to know, how can I register a service using Visual studio
setup project. I can create a Setup Project successfully, it installs all
the program, but I need a hint on how to run "InstallUtil.exe
<ApplicationDirectory>\ApplicationName.exe" in order to install and register
the service. And of course how can I unRegister the Service when
uninstalling the application.
I look forward to hearing from you.
Alireza Haghshenass
 
I

Ignacio Machin \( .NET/ C# MVP \)

Hi,

Include an installer in the service project.

IIRC right click on the project name and it will be one of the options.
Later in the setup project, select Custom Actions and include the output of
the service project.

Cheers,
 

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