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

Commit c6f77bb

Browse files
committed
Annotate erlang_env.iss
1 parent f1ae255 commit c6f77bb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/erlang_env.iss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
1616
[Code]
1717
18+
// Given a Boolean where true -> 64bit and false -> 32bit, returns
19+
// the path of the latest Erlang installation of that architecture
1820
function GetLatestErlangPathOfArch(Of64Bit: Boolean): String;
1921
var
2022
ERTSVersions: TArrayOfString;
@@ -33,6 +35,8 @@ begin
3335
Result := FuncRegQueryStringValue(HKEY_LOCAL_MACHINE, SubKeyName + '\' + GetLatestVersion(ERTSVersions), '');
3436
end;
3537
38+
// Returns the path of the latest Erlang installation, preferring
39+
// 64-bit over 32-bit
3640
function GetLatestErlangPath: String;
3741
begin
3842
Result := '';
@@ -42,6 +46,8 @@ begin
4246
Result := GetLatestErlangPathOfArch(False);
4347
end;
4448
49+
// Returns true or false depending on if some erl.exe is in the
50+
// system's Path variable
4551
function ErlangInPath: Boolean;
4652
var
4753
_int: Integer;

0 commit comments

Comments
 (0)