From 9aef6e4c0b6d1fc8c16063ce1272ba0a928e3c2b Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Sat, 9 Nov 2019 19:13:30 +0100 Subject: [PATCH] installer: Refine the WoW64 decision logic The registry and file reflection is also present on ARM64 platform. Therefore, the reflection logic should resemble ${RunningX64} || ${RunningX86} or `${IsWow64}` for short. Signed-off-by: Simon Rozman --- installer/tap-windows6.nsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/installer/tap-windows6.nsi b/installer/tap-windows6.nsi index 470d554..5c0ebca 100755 --- a/installer/tap-windows6.nsi +++ b/installer/tap-windows6.nsi @@ -202,7 +202,7 @@ ${EndIf} !insertmacro MULTIUSER_INIT SetShellVarContext all - ${If} ${RunningX64} + ${If} ${IsWow64} SetRegView 64 StrCpy $INSTDIR "$PROGRAMFILES64\${PRODUCT_NAME}" ${Else} @@ -315,7 +315,7 @@ Function un.onInit ClearErrors !insertmacro MULTIUSER_UNINIT SetShellVarContext all - ${If} ${RunningX64} + ${If} ${IsWow64} SetRegView 64 ${EndIf} FunctionEnd