wpf - How can i start my application as "Run as Administrator" forcefully? -
in application,i writing values in application settings file. working prism have module , 1 shell project. after installing setup
case: 1
when have not set compatibility mode "run administrator". running application able write application settings modules unable write main shell project.
case: 2
when have set compatibility mode "run administrator". able write settings all.
required solution:
i want set application compatibility mode administrator forcefully don't know how it?
add app.manifest project. in there, under trustinfo --> security --> requestedprivileges node, uncomment line:
<requestedexecutionlevel level="requireadministrator" uiaccess="false" />
then you're go.
Comments
Post a Comment