anchor.diff:      for %%X in (makensis.exe) do (set nsis_path=%%~dp$PATH:X)
   )
   
  +rem Check registry for NSIS install path
  +if %PROCESSOR_ARCHITECTURE%==x86 (
  +    set RegQry=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\NSIS
  +) else (
  +    set RegQry=HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\NSIS
  +)
   
  -rem Check registry for NSIS install path
   if not defined nsis_path (
  -    if %PROCESSOR_ARCHITECTURE%==x86 (
  -        set RegQry=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\NSIS
  -    ) else (
  -        set RegQry=HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\NSIS
  -    )
  +    for /F "tokens=2*" %%a in ('reg query "%RegQry%" /v InstallLocation ^|findstr InstallLocation') do set nsis_path=%%b 
   )
   
   :found
  
positive.code: if defined nsis_path (
      "%nsis_path%\makensis.exe" %args%
  ) else (
      echo "'makensis.exe' is not recognized as an internal or external command, operable program or batch file."
  )
negative.code: @echo off
  
  rem Check %NSIS_HOME% for makensis.exe
  if defined NSIS_HOME (
  