@@ -184,15 +184,6 @@ begin
184
184
True, True // (Use Radio Buttons), (Put them in a scrollable list box)
185
185
);
186
186
187
- // Create an array of TElixirRelease records from elixir.csv and store them in a global variable
188
- GlobalElixirReleases := CSVToElixirReleases(GlobalElixirCSVFilePath);
189
-
190
- // Check if above didn't work
191
- if GetArrayLength(GlobalElixirReleases) = 0 then begin
192
- MsgBox(' Error: Parsing {#ELIXIR_CSV_URL} failed. Setup cannot continue.' , mbInformation, MB_OK);
193
- Abort();
194
- end ;
195
-
196
187
// Use the global Elixir release array to populate the custom Elixir release list box
197
188
ElixirReleasesToListBox(GlobalElixirReleases, GlobalPageSelRelease.CheckListBox);
198
189
@@ -203,20 +194,12 @@ begin
203
194
' ' , 0 , True, True, Ref
204
195
);
205
196
end ;
197
+
206
198
// Create a selection which will allow the custom Elixir release page to show up next
207
199
GlobalPageSelInstallType.CheckListBox.AddRadioButton(
208
200
' Select another release to install' ,
209
201
' ' , 0 , False, True, nil
210
202
);
211
-
212
- // Create an TErlangData from erlang.csv record and store it in a global variable
213
- GlobalErlangData := CSVToErlangData(GlobalErlangCSVFilePath);
214
-
215
- // Check if above didn't work
216
- if GlobalErlangData.OTPVersion = ' ' then begin
217
- MsgBox(' Error: Parsing {#ERLANG_CSV_URL} failed. Setup cannot continue.' , mbInformation, MB_OK);
218
- Abort();
219
- end ;
220
203
end ;
221
204
222
205
function InitializeSetup (): Boolean;
@@ -239,6 +222,26 @@ begin
239
222
Result := False;
240
223
exit;
241
224
end ;
225
+
226
+ // Create an array of TElixirRelease records from elixir.csv and store them in a global variable
227
+ GlobalElixirReleases := CSVToElixirReleases(GlobalElixirCSVFilePath);
228
+
229
+ // Check if above didn't work
230
+ if GetArrayLength(GlobalElixirReleases) = 0 then begin
231
+ MsgBox(' Error: Parsing {#ELIXIR_CSV_URL} failed. Setup cannot continue.' , mbInformation, MB_OK);
232
+ Result := False;
233
+ exit;
234
+ end ;
235
+
236
+ // Create an TErlangData from erlang.csv record and store it in a global variable
237
+ GlobalErlangData := CSVToErlangData(GlobalErlangCSVFilePath);
238
+
239
+ // Check if above didn't work
240
+ if GlobalErlangData.OTPVersion = ' ' then begin
241
+ MsgBox(' Error: Parsing {#ERLANG_CSV_URL} failed. Setup cannot continue.' , mbInformation, MB_OK);
242
+ Result := False;
243
+ exit;
244
+ end ;
242
245
end ;
243
246
244
247
function CheckToInstallErlang : Boolean; begin
0 commit comments