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?

C#
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.
10,234 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,479 questions
{count} votes