Commit 7d428e05 authored by Rafaël Carré's avatar Rafaël Carré Committed by Jean-Baptiste Kempf

Abort installer with a message if a win64 installer is run on win32

(cherry picked from commit 56b36ede)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 5fcefdc6
...@@ -776,6 +776,13 @@ SectionEnd ...@@ -776,6 +776,13 @@ SectionEnd
;;; Start function ;;; Start function
Function .onInit Function .onInit
@HAVE_WIN64_TRUE@ !include "x64.nsh"
@HAVE_WIN64_TRUE@ ${If} ${RunningX64}
@HAVE_WIN64_TRUE@ ${Else}
@HAVE_WIN64_TRUE@ MessageBox MB_OK|MB_ICONSTOP "This version of VLC only runs on 64bits operating systems.$\nYour operating system is 32bits.$\n$\nPlease get the 32 BITS version."
@HAVE_WIN64_TRUE@ Quit
@HAVE_WIN64_TRUE@ ${Endif}
@HAVE_WIN64_TRUE@ SetRegView 64 @HAVE_WIN64_TRUE@ SetRegView 64
ReadRegStr $INSTDIR HKLM "${PRODUCT_DIR_REGKEY}" "" ReadRegStr $INSTDIR HKLM "${PRODUCT_DIR_REGKEY}" ""
StrCmp $INSTDIR "" 0 +1 StrCmp $INSTDIR "" 0 +1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment