Clickonce + HKEY_LOCAL_MACHINE [英] Clickonce + HKEY_LOCAL_MACHINE

查看:79
本文介绍了Clickonce + HKEY_LOCAL_MACHINE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个用.NET 4.0,VS2010编写的WPF应用程序,我希望通过内部内部clickonce进行部署。

I have a WPF app written in .NET 4.0, VS2010 that I am looking to deploy via clickonce internally on our intranet.

问题是我试图在HKEY_LOCAL_MACHINE中创建一个注册表项,但是我拒绝访问。

The issue is that I am trying to create a registry key in HKEY_LOCAL_MACHINE, and I am getting access denied.

我将应用程序设置为完全信任,甚至尝试断言RegistryPermission没有用。

I have the app set for full trust, and even tried asserting the RegistryPermission to no avail.

是否真的不可能通过clickonce分发应用程序并拥有是否可以访问HKEY_LOCAL_MACHINE?

Is it truly not even possible to distribute an app via clickonce and have it access HKEY_LOCAL_MACHINE?

推荐答案


此外,如果应用程序需要
特权访问本地计算机
在安装时,那么肯定不是
可以作为ClickOnce
部署的候选对象,因为在设计上,ClickOnce中没有
没有机制来添加
注册表项,在全局程序集
缓存(GAC)中安装共享的
程序集,安装服务,然后在
上安装。

Additionally, if an application needs privileged access to the local machine at install time, then it is definitely not a candidate for ClickOnce deployment because by design there are no mechanisms in ClickOnce to add registry entries, install shared assemblies in the Global Assembly Cache (GAC), install services, and so on.

http://msdn.microsoft.com/en-us/magazine /cc163973.aspx

这篇关于Clickonce + HKEY_LOCAL_MACHINE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆