Windows build: Switch to 64-bit Node.js executable

This commit is contained in:
Richard Hansen 2022-05-13 18:52:52 -04:00
parent 2d56838792
commit 7e4931cf25
3 changed files with 11 additions and 2 deletions

View file

@ -1,5 +1,6 @@
;Include Modern UI
!include "MUI2.nsh"
!include x64.nsh
;--------------------------------
;Styling
@ -15,11 +16,17 @@ Page directory
Page instfiles
; The default installation directory
InstallDir "$PROGRAMFILES\Etherpad Foundation\Etherpad Server"
InstallDir "$PROGRAMFILES64\Etherpad Foundation\Etherpad Server"
Section
SectionIn RO
${If} ${RunningX64}
DetailPrint "Installer running on x64 host"
${Else}
Abort "Unsupported CPU architecture (only x64 is supported)"
${Endif}
; Set output path to the installation directory.
SetOutPath $INSTDIR