Check which Opera version is installed/Cannot read Opera HKLM key
Hi,
I have following problem. I have plugin for Opera and want to install it with NSIS. To check Opera "Plugin Path" I'm reading registry entries with ReadRegStr. But unfortunately Opera 9.x keeps its reg in HKCU and Opera 10.x keeps its reg in HKLM. I can read HKCU but cannot read HKLM (but only for Opera). Below sample code - commented entry is red properly. Changing spaces (in Opera reg) to no spaces results nothing. I'm running installer with admin rights:
ReadRegStr $0 HKCU "Software\Opera Software" "Plugin Path"
MessageBox MB_OK "$0"
# ReadRegStr $1 HKLM "Software\RegisteredApplications" "Firefox"
ReadRegStr $1 HKLM "Software\Opera Software" "Plugin Path"
MessageBox MB_OK "$1"
${If} $0 != ""
StrCpy $0 $INSTDIR
${ElseIf} $1 != ""
StrCpy $1 $INSTDIR
${Else}
MessageBox MB_ICONSTOP "Opera nie jest zainstalowana."
Abort
${EndIf}