How can a VSTO program get requireAdministrator
黑 老
1
Reputation point
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?