简体   繁体   中英

c# Outlook add-in how to run as administrator

How can you make a Outlook add-in to run as a administrator?

I have already tried to edit the application manifest , to change the

<requestedExecutionLevel level="asInvoker" uiAccess="false" />

to

<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />

but that did not work.

Add-ins are not standalone applications. They are run inside of the host application process. So, you will not be able to start only your add-in with admin privileges. Instead, you need to run the host application with addmin privileges if you want to get the add-in run elevated.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM