@@ -37,6 +37,37 @@ Filename: "{tmp}\_offlineinstaller\ISCC.exe"; Parameters: "/dElixirVersion=0.14.
3737Filename : " {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+
4071function ErlangIsInstalled : Boolean;
4172var
4273 ResultCode: Integer;
4677
4778procedure InitializeWizard ();
4879begin
80+ CreatePages;
4981 idpAddFile(' https://github.com/elixir-lang/elixir/releases/download/v0.14.1/Precompiled.zip' , ExpandConstant(' {tmp}\Precompiled.zip' ));
5082 idpDownloadAfter(wpPreparing);
5183end ;
0 commit comments