Jump to content

pd5rm

Newbies
  • Posts

    1
  • Joined

  • Last visited

Everything posted by pd5rm

  1. If you're seeing this on install: System.UnauthorizedAccessException: Access to the registry key 'HKEY_LOCAL_MACHINE\SOFTWARE\Paint.NET' is denied. at Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str) at Microsoft.Win32.RegistryKey.CreateSubKey(String subkey, RegistryKeyPermissionCheck permissionCheck, RegistrySecurity registrySecurity) at Microsoft.Win32.RegistryKey.CreateSubKey(String subkey) at PaintDotNet.SetupNgen.MainImpl(String[] args) at PaintDotNet.SetupNgen.Main(String[] args) The quick fix is to create the HKLM\Software\Paint.Net key *before you run the installer* and add full permission on either the Everyone user or your username . Some info for the devs: The installer bootstrapper is running the Ngen process in the user's context, but the key only has write permission with the System context. Some ways to fix this: 1) Move ngen into the MSI as a deferred custom action. 2) Add LockPermission entry to MSI table for everyone or username with full access. 3) Fixup registry in SetupFrontEnd code. The last one is probably the simplest, and since you're running ngen there, it would probably make the most sense. If you need further help, let me know.
×
×
  • Create New...