@@ -26,13 +26,14 @@ DefaultGroupName={#AppName}
2626OutputBaseFilename = developer_platform
2727Compression = lzma
2828SolidCompression = yes
29- WizardSmallImageFile = blank.bmp
29+ ; WizardSmallImageFile=blank.bmp
3030BackColor = clWhite
3131BackSolid = yes
3232DisableWelcomePage = yes
33+ DisableDirPage = no
34+ DisableReadyPage = no
3335
3436[Files]
35- Source : " bg.bmp" ; Flags : dontcopy
3637
3738[Languages]
3839Name : " english" ; MessagesFile : " compiler:Default.isl"
5354
5455var
5556 // Page IDs
56- AuthPageID, ComponentPageID, DownloadPageID : Integer;
57+ AuthPageID, ComponentPageID, DownloadPageID, GetStartedPageID : Integer;
5758
5859 AuthLabel: TNewStaticText;
5960
6667 // Breadcrumb labels, we store references to these in an array for convenience
6768 BreadcrumbLabel: BcLabelArray;
6869
70+ // Flag indicating whether the user has authenticated successfully
71+ IsAuthenticated: Boolean;
72+
6973// Converts a color String in the format '$rrggbb' to a TColor value
7074function StringToColor (Color: String): TColor;
7175var
9296begin
9397 Page := PageFromID(AuthPageID);
9498
99+ // Set the flag to true for now
100+ IsAuthenticated := True;
101+
95102 // Display the 'authentication successful' message
96- AuthLabel.Visible := True ;
103+ AuthLabel.Visible := IsAuthenticated ;
97104
98105 // Enable the 'Next' button
99- Wizardform.NextButton.Enabled := True ;
106+ Wizardform.NextButton.Enabled := IsAuthenticated ;
100107end ;
101108
102109procedure ForgotLabelOnClick (Sender: TObject);
@@ -277,12 +284,22 @@ begin
277284 ' DevOps tooling that helps you easily build and deploy your projects in a PaaS environment.' , 40 );
278285end ;
279286
287+ // Create the Get Started page
288+ function createGetStartedPage : TWizardPage;
289+ var
290+ Page: TWizardPage;
291+ begin
292+ Page := CreateCustomPage(ComponentPageID, ' ' , ' ' );
293+
294+ // The page has a unique id, we store it in the AuthPageID variable here so that we can refer to it elsewhere
295+ GetStartedPageID := Page.ID;
296+ end ;
297+
280298procedure CreateWizardPages ;
281299begin
282300 createWelcomePage;
283301 createComponentPage;
284-
285-
302+ createGetStartedPage;
286303end ;
287304
288305procedure activateDownloadForm (Page: TWizardPage);
@@ -578,15 +595,20 @@ procedure CurPageChanged(CurPageID: Integer);
578595begin
579596 if (CurPageID = AuthPageID) then
580597 begin
581- Wizardform.NextButton.Enabled := False;
582598 SelectBreadcrumb(1 );
599+ WizardForm.NextButton.Enabled := IsAuthenticated;
583600 end else if (CurPageID = ComponentPageID) then
584601 begin
585602 SelectBreadcrumb(2 );
586603 end else if (CurPageID = DownloadPageID) then
587604 begin
588605 SelectBreadcrumb(3 );
589606 WizardForm.NextButton.Visible := False;
607+ end else if (CurPageID = GetStartedPageID) then
608+ begin
609+ SelectBreadcrumb(4 );
610+ WizardForm.NextButton.Visible := False;
611+ WizardForm.BackButton.Visible := False;
590612 end ;
591613end ;
592614
@@ -635,10 +657,8 @@ begin
635657 Breadcrumbs.Height := 50 ;
636658 Breadcrumbs.AutoSize := True;
637659
638- BitmapFileName := ExpandConstant(' {tmp}\bg.bmp' );
639- ExtractTemporaryFile(ExtractFileName(BitmapFileName));
640-
641- Breadcrumbs.Bitmap.LoadFromFile(BitmapFileName);
660+ Breadcrumbs.Bitmap.Height := 50 ;
661+ Breadcrumbs.Bitmap.Width := 600 ;
642662
643663 with Breadcrumbs.Bitmap.Canvas do
644664 begin
@@ -661,14 +681,16 @@ begin
661681 WizardForm.Height := 565 ;
662682 WizardForm.Position := poScreenCenter;
663683
664- WizardForm.CancelButton.Top := 500 ;
665- WizardForm.CancelButton.Left := 840 ;
684+ // Let's just hide the cancel button, if the user wishes to cancel they can just close the installer window
685+ WizardForm.CancelButton.Visible := False;
686+ // WizardForm.CancelButton.Top := 500;
687+ // WizardForm.CancelButton.Left := 32;
666688
667689 WizardForm.NextButton.Top := 500 ;
668- WizardForm.NextButton.Left := 760 ;
690+ WizardForm.NextButton.Left := 840 ;
669691
670692 WizardForm.BackButton.Top := 500 ;
671- WizardForm.BackButton.Left := 680 ;
693+ WizardForm.BackButton.Left := 32 ;
672694
673695 WizardForm.Bevel.Visible := False;
674696 WizardForm.Bevel1.Visible := False;
0 commit comments