Clickonce + HKEY_LOCAL_MACHINE
问题 I have a WPF app written in .NET 4.0, VS2010 that I am looking to deploy via clickonce internally on our intranet. The issue is that I am trying to create a registry key in HKEY_LOCAL_MACHINE, and I am getting access denied. I have the app set for full trust, and even tried asserting the RegistryPermission to no avail. Is it truly not even possible to distribute an app via clickonce and have it access HKEY_LOCAL_MACHINE? 回答1: Not with ClickOnce. See here for a discussion. Relevant part: Due