Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.

Commit f5251cf

Browse files
committed
Consolidate functions used for checks and scripted constants
1 parent 09cd69a commit f5251cf

File tree

1 file changed

+11
-35
lines changed

1 file changed

+11
-35
lines changed

ElixirWeb.iss

Lines changed: 11 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -165,16 +165,6 @@ begin
165165
Result := 'OTP ' + ErlangCSVInfo[0] + ' (64-bit)'
166166
end;
167167
168-
function ConstGetOTP32Name(Param: String): String;
169-
begin
170-
Result := GetOTP32Name;
171-
end;
172-
173-
function ConstGetOTP64Name(Param: String): String;
174-
begin
175-
Result := GetOTP64Name;
176-
end;
177-
178168
function GetERTSVersion: String;
179169
begin
180170
Result := ErlangCSVInfo[1];
@@ -200,16 +190,6 @@ begin
200190
Result := ExpandConstant('{tmp}\' + GetURLFilePart(GetOTP64URL));
201191
end;
202192
203-
function ConstGetOTP32Exe(Param: String): String;
204-
begin
205-
Result := GetOTP32Exe;
206-
end;
207-
208-
function ConstGetOTP64Exe(Param: String): String;
209-
begin
210-
Result := GetOTP64Exe;
211-
end;
212-
213193
function CSVToStringTable(Filename: String): TStringTable;
214194
var
215195
Rows: TArrayOfString;
@@ -284,11 +264,6 @@ begin
284264
end;
285265
end;
286266
287-
function ConstGetSelectedReleaseVersion(Param: String): String;
288-
begin
289-
Result := GetVersion(GetSelectedRelease());
290-
end;
291-
292267
function GetErlangPath(Of64Bit: Boolean): String;
293268
var
294269
Versions: TArrayOfString;
@@ -317,16 +292,6 @@ begin
317292
Result := Exec('erl.exe', '+V', '', SW_HIDE, ewWaitUntilTerminated, _int);
318293
end;
319294
320-
function CheckToInstallErlang: Boolean;
321-
begin
322-
Result := (not ErlangInPath) and ((GetErlangPath(False) = '') or (GetErlangPath(True) = ''));
323-
end;
324-
325-
function CheckToAddErlangPath: Boolean;
326-
begin
327-
Result := not ErlangInPath;
328-
end;
329-
330295
procedure AppendErlangPathIfTaskSelected(Of64Bit: Boolean);
331296
var
332297
Path: String;
@@ -403,3 +368,14 @@ begin
403368
exit;
404369
end;
405370
end;
371+
372+
function CheckToInstallErlang: Boolean; begin
373+
Result := (not ErlangInPath) and ((GetErlangPath(False) = '') or (GetErlangPath(True) = '')); end;
374+
function CheckToAddErlangPath: Boolean; begin
375+
Result := not ErlangInPath; end;
376+
377+
function ConstGetOTP32Name(Param: String): String; begin Result := GetOTP32Name; end;
378+
function ConstGetOTP64Name(Param: String): String; begin Result := GetOTP64Name; end;
379+
function ConstGetOTP32Exe(Param: String): String; begin Result := GetOTP32Exe; end;
380+
function ConstGetOTP64Exe(Param: String): String; begin Result := GetOTP64Exe; end;
381+
function ConstGetSelectedReleaseVersion(Param: String): String; begin Result := GetVersion(GetSelectedRelease()); end;

0 commit comments

Comments
 (0)