Permalink
Browse files

windows-nsis: use 64bit registory hives if 64bit

Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
  • Loading branch information...
1 parent d542e01 commit 55a6337c6fcf6741563e8636489443ffa9d647bf @alonbl alonbl committed May 8, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 windows-nsis/openvpn.nsi
View
@@ -150,6 +150,7 @@ Function .onInit
!insertmacro IsAdmin
${If} "${ARCH}" == "x86_64"
+ SetRegView 64
StrCpy $INSTDIR "$PROGRAMFILES64\${PACKAGE_NAME}"
${Else}
StrCpy $INSTDIR "$PROGRAMFILES\${PACKAGE_NAME}"
@@ -424,7 +425,9 @@ SectionEnd
Function un.onInit
ClearErrors
SetShellVarContext all
-
+ ${If} "${ARCH}" == "x86_64"
+ SetRegView 64
+ ${EndIf}
!insertmacro IsAdmin
FunctionEnd

0 comments on commit 55a6337

Please sign in to comment.