Browse Source

Fix installer x64 not detected the previous installation location

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

Fix #7946, close #11013
pull/11017/head
xomx 3 years ago committed by Don HO
parent
commit
9f08013d08
  1. 3
      PowerEditor/installer/nppSetup.nsi

3
PowerEditor/installer/nppSetup.nsi

@ -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…
Cancel
Save