Installing Services Using VS.Net Base Setup Project

  • Thread starter Thread starter Alireza Haghshenass
  • Start date 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
 
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,
 
Back
Top