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

Commit 9183fa3

Browse files
committed
Begin page for fetching, selecting latest Elixir version
1 parent 167d967 commit 9183fa3

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

ElixirWeb.iss

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,37 @@ Filename: "{tmp}\_offlineinstaller\ISCC.exe"; Parameters: "/dElixirVersion=0.14.
3737
Filename: "{tmp}\_offlineinstaller\Output\elixir-v0.14.1-setup.exe"; Flags: waituntilterminated; StatusMsg: "Running Elixir installer..."
3838

3939
[Code]
40+
var
41+
PSelectVerPage: TWizardPage;
42+
PSelectVerFetchText: TNewStaticText;
43+
PSelectVerFetchProgress: TNewProgressBar;
44+
45+
procedure DoPSelectVer();
46+
begin
47+
WizardForm.NextButton.Enabled := False;
48+
49+
PSelectVerFetchProgress.Visible := True;
50+
MsgBox('Fetching version PLACEHOLDER', mbInformation, MB_OK);
51+
PSelectVerFetchProgress.Visible := False;
52+
53+
WizardForm.NextButton.Enabled := True;
54+
end;
55+
56+
procedure CurPageChanged(CurPageID: Integer);
57+
begin
58+
if CurPageID = PSelectVerPage.ID then
59+
DoPSelectVer;
60+
end;
61+
62+
procedure CreatePages();
63+
begin
64+
PSelectVerPage := CreateCustomPage(wpWelcome, 'Select Elixir version', 'Setup will download and install the Elixir version you select.');
65+
PSelectVerFetchProgress := TNewProgressBar.Create(PSelectVerPage);
66+
PSelectVerFetchProgress.Width := PSelectVerPage.SurfaceWidth;
67+
PSelectVerFetchProgress.Parent := PSelectVerPage.Surface;
68+
PSelectVerFetchProgress.Style := npbstMarquee;
69+
end;
70+
4071
function ErlangIsInstalled: Boolean;
4172
var
4273
ResultCode: Integer;
@@ -46,6 +77,7 @@ end;
4677
4778
procedure InitializeWizard();
4879
begin
80+
CreatePages;
4981
idpAddFile('https://github.com/elixir-lang/elixir/releases/download/v0.14.1/Precompiled.zip', ExpandConstant('{tmp}\Precompiled.zip'));
5082
idpDownloadAfter(wpPreparing);
5183
end;

0 commit comments

Comments
 (0)