Install and Uninstall Window service in windows Setup file

Nov 24 2016 12:55 AM
Hi,
I developed a window Application and it has one window service.
Now, i want to create a setup file for window application. when user install the setup file the window service should install automatically by application and when user uninstall the application from control panel the window service also uninstall automatically.
How should i develop the code and where should i put the code in the project? and how i create setup file to install and uninstall the service.?

Answers (4)