Update Installer.nsi to correct path for checks (#2958)

This commit is contained in:
Benjamin Milde 2025-03-11 19:32:03 +01:00 committed by GitHub
parent f953b6d695
commit af4e8d4c66
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -70,7 +70,7 @@ Section "Check"
; we use otp\erts-:vsn\bin\erl.exe instead of otp\bin\erl.exe because the latter for some reason
; hardcoded the path: c:\otp\erts-:vsn\bin\erlexec.dll. The Elixir releases uses the former
; anyway.
nsExec::ExecToLog '"$INSTDIR\rel\vendor\otp\erts-${ERTS_VERSION}\bin\erl.exe" -noinput -eval "erlang:display(ok), halt()."'
nsExec::ExecToLog '"$INSTDIR\rel\vendor\livebook-${APP_VERSION}\otp\erts-${ERTS_VERSION}\bin\erl.exe" -noinput -eval "erlang:display(ok), halt()."'
Pop $0
${If} $0 != 0
MessageBox mb_iconStop "Checking Erlang failed: $0. Please click 'Show details' and report an issue."
@ -78,7 +78,7 @@ Section "Check"
${EndIf}
DetailPrint "Checking Distributed Erlang..."
nsExec::ExecToLog '"$INSTDIR\rel\vendor\otp\erts-${ERTS_VERSION}\bin\erl.exe" -sname "livebook-install-test" -noinput -eval "erlang:display(ok), halt()."'
nsExec::ExecToLog '"$INSTDIR\rel\vendor\livebook-${APP_VERSION}\otp\erts-${ERTS_VERSION}\bin\erl.exe" -sname "livebook-install-test" -noinput -eval "erlang:display(ok), halt()."'
Pop $0
${If} $0 != 0
MessageBox mb_iconStop "Checking Distributed Erlang failed: $0. Please click 'Show details' and report an issue."