Skip to content

Commit aea5bcc

Browse files
committed
Components now downloading and installing successfully
1 parent 192aac2 commit aea5bcc

1 file changed

Lines changed: 34 additions & 32 deletions

File tree

windows/developer_platform_installer.iss

Lines changed: 34 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@ SolidCompression=yes
3030
BackColor=clWhite
3131
BackSolid=yes
3232
DisableWelcomePage=yes
33-
DisableDirPage=no
33+
DisableDirPage=yes
3434
DisableReadyPage=no
35+
DisableFinishedPage=yes
3536
ExtraDiskSpaceRequired=1048576
3637

3738
[Files]
@@ -101,7 +102,7 @@ begin
101102
IsAuthenticated := True;
102103
103104
// Display the 'authentication successful' message
104-
AuthLabel.Visible := IsAuthenticated;
105+
//AuthLabel.Visible := IsAuthenticated;
105106
106107
// Simulate a click of the Next button
107108
WizardForm.NextButton.OnClick(nil);
@@ -176,13 +177,13 @@ begin
176177
177178
// Create the 'auth successful' label. We set its visibility to false at first, then display it later when
178179
// auth is successful
179-
AuthLabel := TNewStaticText.Create(Page);
180-
AuthLabel.Caption := 'Authentication Successful';
181-
AuthLabel.Parent := Page.Surface;
182-
AuthLabel.Color := clWhite;
183-
AuthLabel.Font.Color := clGreen;
184-
AuthLabel.Visible := False;
185-
AuthLabel.Top := Button.Top + Button.Height + ScaleY(8);
180+
//AuthLabel := TNewStaticText.Create(Page);
181+
//AuthLabel.Caption := 'Authentication Successful';
182+
//AuthLabel.Parent := Page.Surface;
183+
//AuthLabel.Color := clWhite;
184+
//AuthLabel.Font.Color := clGreen;
185+
//AuthLabel.Visible := False;
186+
//AuthLabel.Top := Button.Top + Button.Height + ScaleY(8);
186187
187188
result := Page;
188189
end;
@@ -261,10 +262,10 @@ var
261262
HeadingLabel: TNewStaticText;
262263
Entry: ComponentEntry;
263264
begin
264-
Page := CreateCustomPage(AuthPageID, '', '');
265+
Page := PageFromID(wpReady);
265266
266267
// The page has a unique id, we store it in the AuthPageID variable here so that we can refer to it elsewhere
267-
ComponentPageID := Page.ID;
268+
//ComponentPageID := Page.ID;
268269
269270
// Create the heading label for the component selection list
270271
HeadingLabel := TNewStaticText.Create(Page);
@@ -290,7 +291,7 @@ function createGetStartedPage: TWizardPage;
290291
var
291292
Page: TWizardPage;
292293
begin
293-
Page := CreateCustomPage(ComponentPageID, '', '');
294+
Page := CreateCustomPage(wpInstalling, '', '');
294295
295296
// The page has a unique id, we store it in the AuthPageID variable here so that we can refer to it elsewhere
296297
GetStartedPageID := Page.ID;
@@ -303,14 +304,6 @@ begin
303304
createGetStartedPage;
304305
end;
305306
306-
procedure activateDownloadForm(Page: TWizardPage);
307-
begin
308-
idpFormActivate(Page);
309-
MsgBox('Downloads complete', mbInformation, MB_OK);
310-
311-
// TODO perform installs next
312-
end;
313-
314307
function createDownloadForm(PreviousPageId: Integer): Integer;
315308
begin
316309
IDPForm.Page := CreateCustomPage(PreviousPageId, ExpandConstant('{cm:IDP_FormCaption}'), ExpandConstant('{cm:IDP_FormDescription}'));
@@ -561,14 +554,22 @@ begin
561554
end;
562555
563556
procedure CustomWpInstallingPage;
557+
var
558+
Page: TWizardPage;
559+
HeadingLabel: TNewStaticText;
564560
begin
565-
InstallPageID := CreateCustomPage(wpReady, '', '');
561+
Page := CreateCustomPage(wpReady, '', '');
566562
563+
// Create the heading label for the component selection list
564+
HeadingLabel := TNewStaticText.Create(Page);
565+
HeadingLabel.Caption := 'Installing components';
566+
HeadingLabel.Parent := Page.Surface;
567+
HeadingLabel.Font.Size := 8;
567568
568569
// Render the page
569570
570-
InstallPage.Surface.Show;
571-
InstallPage.Surface.Update;
571+
Page.Surface.Show;
572+
Page.Surface.Update;
572573
end;
573574
574575
procedure SelectBreadcrumb(Index: Integer);
@@ -609,17 +610,17 @@ begin
609610
begin
610611
SelectBreadcrumb(1);
611612
WizardForm.NextButton.Visible := False;
612-
end else if (CurPageID = ComponentPageID) then
613+
end else if (CurPageID = wpReady) then
613614
begin
614615
SelectBreadcrumb(2);
615616
end else if (CurPageID = DownloadPageID) then
616617
begin
617618
SelectBreadcrumb(3);
618619
WizardForm.NextButton.Visible := False;
619620
end else if (CurPageID = GetStartedPageID) then
620-
begin
621+
begin
621622
SelectBreadcrumb(4);
622-
WizardForm.NextButton.Visible := False;
623+
WizardForm.NextButton.Visible := True;
623624
WizardForm.BackButton.Visible := False;
624625
end;
625626
@@ -635,8 +636,11 @@ var
635636
begin
636637
if CurStep = ssInstall then
637638
begin
638-
ShellExec('', 'msiexec', ExpandConstant('/i {tmp}\zulu1.8.0_51-8.8.0.3-win64.msi /passive /norestart /log {app}\cache\zulu_install_log.txt'),
639-
'', SW_SHOW, ewNoWait, ErrorCode);
639+
ShellExec('', 'msiexec', ExpandConstant('/i {tmp}\zulu1.8.0_51-8.8.0.3-win64.msi /passive /norestart TARGETDIR="{app}\zulu-8"'),
640+
'', SW_SHOW, ewWaitUntilTerminated, ErrorCode);
641+
642+
//ShellExec('', 'msiexec', ExpandConstant('/i {tmp}\zulu1.8.0_51-8.8.0.3-win64.msi /passive /norestart /log "{app}\zulu_install_log.txt"'),
643+
// '', SW_SHOW, ewWaitUntilTerminated, ErrorCode);
640644
end;
641645
642646
end;
@@ -741,11 +745,9 @@ begin
741745
//idpAddFile('http://download.virtualbox.org/virtualbox/5.0.2/VirtualBox-5.0.2-102096-Win.exe', 'VirtualBox');
742746
//idpAddFile('https://dl.bintray.com/mitchellh/vagrant/vagrant_1.7.4.msi', 'Vagrant');
743747
744-
idpDownloadAfter(ComponentPageID);
745-
746-
748+
idpDownloadAfter(wpReady);
747749
748-
DownloadPageID := createDownloadForm(ComponentPageID);
750+
DownloadPageID := createDownloadForm(wpReady);
749751
750752
idpConnectControls;
751753
idpInitMessages;

0 commit comments

Comments
 (0)