Skip to content

Commit 9aef6e4

Browse files
committed
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 <simon@rozman.si>
1 parent 01fbfb9 commit 9aef6e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

installer/tap-windows6.nsi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ ${EndIf}
202202
!insertmacro MULTIUSER_INIT
203203
SetShellVarContext all
204204

205-
${If} ${RunningX64}
205+
${If} ${IsWow64}
206206
SetRegView 64
207207
StrCpy $INSTDIR "$PROGRAMFILES64\${PRODUCT_NAME}"
208208
${Else}
@@ -315,7 +315,7 @@ Function un.onInit
315315
ClearErrors
316316
!insertmacro MULTIUSER_UNINIT
317317
SetShellVarContext all
318-
${If} ${RunningX64}
318+
${If} ${IsWow64}
319319
SetRegView 64
320320
${EndIf}
321321
FunctionEnd

0 commit comments

Comments
 (0)