Fix installer x64 not detected the previous installation location

Ref:
https://nsis.sourceforge.io/Reference/SetRegView

Fix #7946, close #11013
pull/11017/head
xomx 2022-01-08 16:43:26 +01:00 committed by Don HO
parent 9929160a00
commit 9f08013d08
1 changed files with 3 additions and 0 deletions

View File

@ -149,6 +149,9 @@ updaterDone:
; disable registry redirection (enable access to 64-bit portion of registry)
SetRegView 64
; 64-bit patch for the NSIS attribute InstallDirRegKey (used in globalDef.nsh)
ReadRegStr $INSTDIR HKLM "Software\${APPNAME}" ""
; change to x64 install dir if needed
${If} "$InstDir" != ""
${If} "$InstDir" == "$PROGRAMFILES\${APPNAME}"