I use ShellExecute (with Open) from within my program to launch other applications. A user has asked about being able to launch things that require admin privileges without the UAC dialog popping up.
Running my application as administrator works, but I was wondering if there was a way to do it without that. I’ve tried using “runas” instead of “open” but UAC still kicks in.
The only way I can think of to launch an app that requires Admin privileges without the UAC dialog popping up while the UAC is turned on, would be to have a service already running that has Admin privileges and have your application signal the service to ShellExecute the app you want to launch.
The service would have to be one you write yourself so that no-one else would know how to use it.