Skip to content

Commit

Permalink
Fix #7766 - Test if ServerComponent was chosen, not ServerInstall
Browse files Browse the repository at this point in the history
  • Loading branch information
reevespaul committed Sep 27, 2023
1 parent 7ad5b19 commit 3f12caa
Showing 1 changed file with 1 addition and 11 deletions.
Expand Up @@ -891,18 +891,8 @@ end;


function IsServerInstall: Boolean;
var
SetupType: String;
begin

// DOC NOTE - WizardSetupType is not well documented. If parameter is set to
// True the Description of the setup type is returned. (This is useless for us
// as our descriptions are I18n'ised. ) If set False the string declared in
// the TYPES section is returned. BUT LOWERCASED! Aargh!!
// To protect against future changes each side is the comparison is lowercased.

SetupType := WizardSetupType ( false );
if LowerCase( SetupType ) = LowerCase( 'ServerInstall' ) then
if WizardIsComponentSelected('ServerComponent') then
Result := true
else
Result := False;
Expand Down

0 comments on commit 3f12caa

Please sign in to comment.