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

Commit 0afb8d5

Browse files
committed
Correct checks based on new/existing Erlang Path
1 parent 9aa2afb commit 0afb8d5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ElixirWeb.iss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Name: "erlang"; Description: "Install Erlang"; GroupDescription: "Erlang"; Check
6868
Name: "erlang\32"; Description: "{code:ConstGetErlangName32}"; GroupDescription: "Erlang"; Flags: exclusive
6969
Name: "erlang\64"; Description: "{code:ConstGetErlangName64}"; GroupDescription: "Erlang"; Flags: exclusive; Check: IsWin64
7070
Name: "erlang\newpath"; Description: "Append Erlang directory to Path environment variable"; GroupDescription: "Erlang"
71-
Name: "existingpath"; Description: "Append {code:ConstGetExistingErlangPath}\bin to Path environment variable"; GroupDescription: "Erlang"; Check: CheckToAddErlangPath
71+
Name: "existingpath"; Description: "Append {code:ConstGetExistingErlangPath}\bin to Path environment variable"; GroupDescription: "Erlang"; Check: CheckToAddExistingErlangPath
7272

7373
[Code]
7474
#include "src\util.iss"
@@ -189,9 +189,9 @@ begin
189189
end;
190190
191191
function CheckToInstallErlang: Boolean; begin
192-
Result := (not ErlangInPath) and (GetExistingErlangPath(GlobalErlangData.ERTSVersion) = ''); end;
193-
function CheckToAddErlangPath: Boolean; begin
194-
Result := not ErlangInPath; end;
192+
Result := (GetExistingErlangPath(GlobalErlangData.ERTSVersion) = ''); end;
193+
function CheckToAddExistingErlangPath: Boolean; begin
194+
Result := (not CheckToInstallErlang) and (not ErlangInPath); end;
195195
196196
function ConstGetErlangName32(Param: String): String; begin
197197
Result := GlobalErlangData.Name32; end;

0 commit comments

Comments
 (0)