You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. If we couldn't verify installed OTP, don't quit but let user proceed with installing just Elixir
2. When checking installed OTPs, pick the recent most installed. Previously we were picking the first one which was basically guaranteed to be too old.
3. If we find an existing Elixir installation but it doesn't match the OTP version, offer to download the OTP version this Elixir installer was compiled against (which usually would be the newer version)
4. Add "Verify Erlang/OTP" button which re-checks for installed OTP.
Closes#12678.
${NSD_CreateLabel}00100% 30u "Found existing Erlang/OTP $InstalledOTPRelease installation at $OTPPath but this Elixir installer was precompiled for Erlang/OTP ${OTP_RELEASE}. \
51
-
We recommend checking if there is an Elixir version precompiled for Erlang/OTP $InstalledOTPRelease. Otherwise, proceed."
MessageBoxMB_ICONSTOP"Found existing Erlang/OTP $InstalledOTPRelease installation at $OTPPath but this Elixir version was precompiled for Erlang/OTP ${OTP_RELEASE}. \
55
-
Please upgrade your Erlang/OTP version or choose an Elixir installer matching your Erlang/OTP version"
56
-
Quit
105
+
${If}$OTPMismatchLabelCreated!="true"
106
+
StrCpy$OTPMismatchLabelCreated"true"
107
+
${NSD_CreateLabel}00100% 60u "Found existing Erlang/OTP $InstalledOTPRelease installation at $OTPPath but this Elixir installer was precompiled for Erlang/OTP ${OTP_RELEASE}. \
108
+
$\r$\n$\r$\nYou can either search for another Elixir installer precompiled for Erlang/OTP $InstalledOTPRelease or download Erlang/OTP ${OTP_RELEASE} and install before proceeding."
109
+
Pop$OTPMismatchLabel
110
+
${EndIf}
111
+
112
+
ShowWindow$OTPMismatchLabel${SW_SHOW}
113
+
ShowWindow$DownloadOTPLink${SW_SHOW}
114
+
ShowWindow$VerifyOTPButton${SW_SHOW}
57
115
${EndIf}
58
116
${Else}
59
117
SetErrorlevel 5
60
118
MessageBoxMB_ICONSTOP"Found existing Erlang/OTP installation at $OTPPath but checking it exited with $0: $1"
61
-
Quit
62
119
${EndIf}
63
120
${EndIf}
64
-
65
-
nsDialogs::Show
66
121
FunctionEnd
67
122
68
123
Function OpenOTPDownloads
@@ -93,15 +148,18 @@ Function FinishPageShow
93
148
Abort
94
149
${EndIf}
95
150
96
-
${NSD_CreateCheckbox}00 195u 10u "&Add $INSTDIR\bin to %PATH%"
0 commit comments