This repository was archived by the owner on May 1, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,6 @@ Source: "compiler:SetupLdr.e32"; DestDir: "{tmp}"; Flags: deleteafterinstall
60
60
[Run]
61
61
Filename : " {tmp} \{code:ConstGetErlangExe32}" ; Flags : hidewizard ; StatusMsg : " Installing {code:ConstGetErlangName32}..." ; Tasks: erlang\32
62
62
Filename : " {tmp} \{code:ConstGetErlangExe64}" ; Flags : hidewizard ; StatusMsg : " Installing {code:ConstGetErlangName64}..." ; Tasks: erlang\64
63
- Filename : " cmd" ; Parameters : " /C true" ; Flags : runhidden ; StatusMsg : " Appending {code:ConstGetLatestErlangPath}\bin to Path environment variable..." ; Tasks: erlang\newpath existingpath; BeforeInstall : AppendLatestErlangPath
64
63
Filename : " {tmp} \7za.exe" ; Parameters : " x -oelixir Precompiled.zip" ; WorkingDir : " {tmp} " ; StatusMsg : " Extracting Precompiled.zip archive..."
65
64
Filename : " {tmp} \ISCC.exe" ; Parameters : " /dElixirVersion={code:ConstGetSelectedReleaseVersion} /dSkipWelcome /dNoCompression Elixir.iss" ; WorkingDir : " {tmp} " ; StatusMsg : " Compiling Elixir installer..."
66
65
Filename : " {tmp} \Output\elixir-v{code:ConstGetSelectedReleaseVersion}-setup.exe" ; Flags : nowait ; StatusMsg : " Starting Elixir installer..."
92
91
93
92
CacheSelectedRelease: TElixirRelease;
94
93
95
- procedure AppendLatestErlangPath ;
94
+ procedure CurStepChanged (CurStep: TSetupStep) ;
96
95
begin
97
- AppendPath(GetLatestErlangPath + ' \bin' );
96
+ if CurStep = ssPostInstall then begin
97
+ if IsTaskSelected(' erlang\newpath' ) or IsTaskSelected(' existingpath' ) then
98
+ AppendPath(GetLatestErlangPath + ' \bin' );
99
+ end ;
98
100
end ;
99
101
100
102
procedure CurPageChanged (CurPageID: Integer);
You can’t perform that action at this time.
0 commit comments