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

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -