Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   64bit: nsis and registry HKLM/Software = access denied (http://forums.winamp.com/showthread.php?t=340044)

Brummelchen 27th December 2011 23:19

64bit: nsis and registry HKLM/Software = access denied
 
i like to export the settings of my firewall, this feature is only available in next version which ist buggy beta.

so i tried hklm\software\my_software but i cant.
HKCU\Software\my_software is possible and also HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID

neither reg.exe nor regedit.exe and ${registry::SaveKey} does not work
at least i tried SetRegView but also no way.

i need to export HKEY_USERS\S-1-5-21-2125712889...\Software but this is not convenient.

the script is working perfectly on win7/32bit but not on 64bit.
64bit in generell is complete new to me.

pls help.

Brummelchen 28th December 2011 17:44

i cant this one working - HKLM is not exported
Quote:

!include "x64.nsh"
PHP Code:

  ${If} ${RunningX64}
    ; 
disable registry redirection (enable access to 64-bit portion of registry)
    
SetRegView 64
    
export
    
${registry::SaveKey"HKEY_CURRENT_USER\Software\my_software"  "$INSTDIR\Backup\$HKCU" "" $0
    
${registry::SaveKey"HKEY_LOCAL_MACHINE\SOFTWARE\my_software" "$INSTDIR\Backup\$HKLM" "" $0
  
${EndIf} 

...

Ok RegReadStr works, so its a limitation of the registry plugin!?

solved - registry v4.1 works, needed an update here
http://nsis.sourceforge.net/Registry_plug-in


All times are GMT. The time now is 18:07.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.