How to skip UAC allow app to make changes check when publishing an app?

20 Views Asked by At

I am publishing an application that runs as a Windows service. There are two executables involved: the servicemgr.exe (the Task tray UI for managing the service) and service.exe (the actual Windows service).

servicemgr.exe requires sufficient administrator permissions to be able to start, edit and stop the service. When the machine is booted, aside from starting the service, it loads the service management Task tray GUI (i.e. servicemgr.exe). However, when doing so, the servicemgr.exe program always comes up with the UAC prompt “Do you want to allow this app to make changes to your device?”.

Other task tray applets on Windows still get around this UAC prompt somehow. How do I package the servicemgr.exe file to open without prompting the user with this UAC related permission check? It seems even if I respond by allowing to run the application, the next time the OS starts up, it will ask the same question once again.

I code signed the application using a trusted digital authority, and the UAC prompt still appears. I tried editing the application manifest and adding trustInfo.. with execution level as requireAdministrator to no avail. (under asInvoker, the task tray application has insufficient privileges to manage the service)

0

There are 0 best solutions below