user1307863
user1307863

Reputation: 77

How can I change execution level authorization at runtime?

I have RequestExecutionLevel user at the start, because usually I install on user level.

But I want to change it afterwards, if some condition is detected, to admin. Is this possible?

Upvotes: 1

Views: 1073

Answers (1)

Anders
Anders

Reputation: 101606

The execution level (Integrity Level) of a Windows process is determined when the process starts and cannot be changed after the process has started.

While it might be possible to use the UAC plugin to get around this, I would actually recommend that you use RequestExecutionLevel highest and gray out whatever option that requires admin rights for standard users...

Upvotes: 3

Related Questions