0

I have windows service as separate Ser.exe file. It will install using command prompt with Installutil -i "Ser.exe path".

Also, I have setup project like this for windows application.

Now , I want to install Ser.exe during setup install. How to do this?

Singaravelan
  • 809
  • 3
  • 19
  • 32

1 Answers1

0

-Firstly add your Ser.exe to the Installation Directory -In Solution exp right click set-up project >>View>>Custom Actions>>Install right-click >>Add Custom Action -now give the path of Installation Directory to reach Ser.exe then click OK(This wil execute the command prompt installation for you)

I have tried separate project for service set-up and it simply works for me

-First of all create a separate service project -Then create a set-up project and select primary output from your service project.

  • When using installer classes to install the service you need to add ALL the custom action nodes, including uninstall. or the service won't be removed when you uninstall the product. – PhilDW Jun 24 '14 at 17:40