Steven Matthews
Steven Matthews

Reputation: 11325

UAC and Windows box selections in Windows

So I'm using Python (though another language suggestion like C# or VB is fine too). I want to have a program launch an EXE file installer, and then tell that installer that it is alright to run the program using the UAC.

I would also like to be able to select buttons (click here to install!).

What library or language can do this? Where do I start? Would it deal with COM objects, or...?

Upvotes: 1

Views: 106

Answers (1)

Martin
Martin

Reputation: 5462

I'm sure you're using your powers for good, but the approach you suggest is essentially removing the safeguard that UAC was intended to provide for your users. If they have configured UAC to run at a lower-than-maximum protection level, it might be possible to do what you want, but in general the UAC prompt is displayed in the secure desktop (that's why that background goes dark) and so no process of yours can automatically click its buttons.

Upvotes: 1

Related Questions