I want to create installer for Windows service.
It should install this service, Start service and while uninstalling it should stop window service and uninstall it from system.
This is exactly the default behavior.It should install this service, Start service and while uninstalling it should stop window service and uninstall it from system.
Now I am able to install the service but it does not require Administrative privileges.
You can achieve this by going to "Install Parameters" page and checking the "Run as administrator" option. This will run your package as administrator and, if the user is not administrator, it will prompt him for the administrator credentials.How can I put restriction on installation that, it should require Administrative privileges?