@@ -105,11 +105,11 @@ var
105105 GlobalErlangCSVFilePath: String;
106106
107107 CacheSelectedRelease: TElixirRelease;
108-
108+
109109function GetScriptString (Param: String): String;
110110begin
111111 Result := ' ' ;
112-
112+
113113 case (Param) of
114114 ' ErlangExe32' : Result := GlobalErlangData.Exe32;
115115 ' ErlangExe64' : Result := GlobalErlangData.Exe64;
127127begin
128128 if CurPageID = wpPreparing then begin
129129 // We're on the page after the "Ready To Install" page but before [Files] and [Run] are processed
130-
130+
131131 if IsTaskSelected(' unins_previous' ) then
132132 ExecAsOriginalUser(GetPreviousUninsExe, ' /SILENT' , ' ' , SW_SHOW, ewWaitUntilTerminated, _int);
133133
@@ -139,10 +139,10 @@ begin
139139 // 64-bit OTP needs to be downloaded before it's installed
140140 idpAddFile(URL64, Tmp(Exe64));
141141 end ;
142-
142+
143143 // Download the Precompiled.zip archive for the selected release
144144 idpAddFile(CacheSelectedRelease.URL, Tmp(' Precompiled.zip' ));
145-
145+
146146 // Put the downloader page directly after this page
147147 idpDownloadAfter(wpPreparing);
148148 end ;
154154 RefMatch: TObject;
155155begin
156156 Result := True;
157-
157+
158158 // Search for the selected release
159159 if CurPageID = GlobalPageSelRelease.ID then begin
160160 for i := 0 to GlobalPageSelRelease.CheckListBox.Items.Count - 1 do begin
@@ -179,9 +179,9 @@ begin
179179 ' All releases available to install are listed below, from newest to oldest.' ,
180180 True, True // (Use Radio Buttons), (Put them in a scrollable list box)
181181 );
182-
182+
183183 latest := True;
184-
184+
185185 // Use the global Elixir release array to populate the custom Elixir release list box
186186 for i := 0 to GetArrayLength(GlobalElixirReleases) - 1 do begin
187187 with GlobalElixirReleases[i] do begin
@@ -193,7 +193,7 @@ begin
193193 (ReleaseType <> ' incompatible' ), // Incompatible releases can't be selected
194194 Nil
195195 );
196-
196+
197197 if ReleaseType = ' release' then
198198 latest := False;
199199 end
203203function InitializeSetup (): Boolean;
204204begin
205205 Result := True;
206-
206+
207207 // Store the paths to elixir.csv, erlang.csv in global variables
208208 GlobalElixirCSVFilePath := Tmp(GetURLFilePart(' {#ELIXIR_CSV_URL}' ));
209209 GlobalErlangCSVFilePath := Tmp(GetURLFilePart(' {#ERLANG_CSV_URL}' ));
@@ -220,20 +220,20 @@ begin
220220 Result := False;
221221 exit;
222222 end ;
223-
223+
224224 // Create an array of TElixirRelease records from elixir.csv and store them in a global variable
225225 GlobalElixirReleases := CSVToElixirReleases(GlobalElixirCSVFilePath);
226-
226+
227227 // Check if above didn't work
228228 if GetArrayLength(GlobalElixirReleases) = 0 then begin
229229 MsgBox(' Error: Parsing {#ELIXIR_CSV_URL} failed. Setup cannot continue.' , mbInformation, MB_OK);
230230 Result := False;
231231 exit;
232232 end ;
233-
233+
234234 // Create an TErlangData from erlang.csv record and store it in a global variable
235235 GlobalErlangData := CSVToErlangData(GlobalErlangCSVFilePath);
236-
236+
237237 // Check if above didn't work
238238 if GlobalErlangData.OTPVersion = ' ' then begin
239239 MsgBox(' Error: Parsing {#ERLANG_CSV_URL} failed. Setup cannot continue.' , mbInformation, MB_OK);
0 commit comments