Please post the exact details of the error you're getting.
Installing a service requires admin privileges. There is nothing you can do in your app to elevate this as your app isn't running for this request. You have to open the command prompt using an elevated token. Remove the manifest as it does nothing.
Once the service is installed you can then start it using Services or the command line (elevated). If you get a failure at that point then the account the service is running under doesn't have privileges to access something. Generally this is caused by using LocalService or SYSTEM to access a network resource.
Michael Taylor
http://ift.tt/1oFVmEx
No comments:
Post a Comment