Share via

How can a VSTO program get requireAdministrator

黑 老 1 Reputation point
2022-11-01T06:59:07.777+00:00

Recently, I was using VSTO to write ta COM plug-in of Office,
and I encountered some problems.
The program needs to save some files in disk C or read some files from disk C,
but it always reports an error.

It seems that VSTO does not have permission to access disk C.
Winform programs can obtain administrator permissions by modifying app.manifest,
but VSTO programs do not seem to work.
What is the solution?

Microsoft 365 and Office | Development | Other
Developer technologies | C#
Developer technologies | C#

An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.