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

Commit 133738d

Browse files
committed
Move GetExistingErlangPath into erlang_env.iss
1 parent 94e5dd1 commit 133738d

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

ElixirWeb.iss

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,6 @@ var
8989
9090
CacheSelectedRelease: TElixirRelease;
9191
92-
function GetExistingErlangPath(PrefVersion: String): String;
93-
begin
94-
Result := '';
95-
if IsWin64 then
96-
Result := GetErlangPath(True, PrefVersion);
97-
if Result = '' then
98-
Result := GetErlangPath(False, PrefVersion);
99-
end;
100-
10192
procedure AppendErlangPathIfTaskSelected(Of64Bit: Boolean);
10293
begin
10394
if IsTaskSelected('erlang\newpath') or IsTaskSelected('existingpath') then

src/erlang_env.iss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,15 @@ begin
3838
end;
3939
end;
4040
41+
function GetExistingErlangPath(PrefVersion: String): String;
42+
begin
43+
Result := '';
44+
if IsWin64 then
45+
Result := GetErlangPath(True, PrefVersion);
46+
if Result = '' then
47+
Result := GetErlangPath(False, PrefVersion);
48+
end;
49+
4150
function ErlangInPath: Boolean;
4251
var
4352
_int: Integer;

0 commit comments

Comments
 (0)