c# - Edit xml in program files throgh code -
i have xml file in c:\program files(86)\application
. can edit file through note pad open administrator. want edit file through code. possible edit xml file through code? using windows 8.1 , visual studio 12.
you can add application manifest file
project , replace
<requestedexecutionlevel level="asinvoker" uiaccess="false" />
with
<requestedexecutionlevel level="requireadministrator" uiaccess="false" />
this way application require administrator rights run.
Comments
Post a Comment