开发者

Which WPF parts need Local Admin rights to work proberly?

I develop an application on WPF. I have recognized that some parts of the 开发者_运维技巧program do not work without Local Admin rights. On another question it is said that writing to event log was causing the need of LA rights. What other possible causes there are? I want to know these that I can find the cause of this problem easily.


There won't be anything specific to WPF as that's just the graphics side.

What it will be is common things like writing to the event log (as you've mentioned) or writing log files to certain locations on the harddrive or writing to the HKEY_LOCAL_MACHINE area of the registry.

If you make sure that your writing to the user owned area of the disk and registry you should be OK.


It has nothing to do with WPF. It is more based on the operating system and your login creditials. If your login credentials don't have permission to write to a file then your application will not be able to write to a file.

To work around this, you could add an app.manifest file to your .exe project. Once that is added, then you should open it up and change the <requestedExecutionLevel /> node to have a level of highestAvailable. That should help you out.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜