Search code examples
windowsuac

Is there a way to install software that prompts for privilege escalation(UAC) programmatically?


Basically I either need to Click the UAC button with my program(which i don't believe is possible) or somehow make it so I don't need to click the button to install the software. I will also need to click buttons during the install with my program but I know how to do that. I am only concerned with the UAC things.


Solution

  • You can't click button on UAC consent dialog.

    Your other options depend on what you really try to achieve. So give us more details on the your task: there could be better design choices than clicking installer buttons from an application.
    To avoid UAC, you can install a service which will start the installation. But user has to consent when you install the service.