Fix installer x64 not detected the previous installation location
Ref: https://nsis.sourceforge.io/Reference/SetRegView Fix #7946, close #11013pull/11017/head
parent
9929160a00
commit
9f08013d08
|
@ -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}"
|
||||
|
|
Loading…
Reference in New Issue