Old 27th December 2011, 23:19   #1
Brummelchen
Major Dude
 
Join Date: May 2003
Posts: 681
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 is offline   Reply With Quote
Old 28th December 2011, 17:44   #2
Brummelchen
Major Dude
 
Join Date: May 2003
Posts: 681
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
Brummelchen is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump