From 1f9aa4125cf6b6e1b667c3f61213aae1e7eb8628 Mon Sep 17 00:00:00 2001 From: Jordan Russell Date: Sat, 14 Dec 2024 00:02:37 -0600 Subject: [PATCH] Begin dismantling TMainForm and WindowVisible=yes. Enough is enough. Making WizardForm the main form so that Application.MainFormOnTaskBar=True can be set is long overdue. --- Projects/Src/Compiler.SetupCompiler.pas | 41 +++++-------------------- 1 file changed, 8 insertions(+), 33 deletions(-) diff --git a/Projects/Src/Compiler.SetupCompiler.pas b/Projects/Src/Compiler.SetupCompiler.pas index d8f0b586f..1f67e1e43 100644 --- a/Projects/Src/Compiler.SetupCompiler.pas +++ b/Projects/Src/Compiler.SetupCompiler.pas @@ -2579,30 +2579,11 @@ procedure TSetupCompiler.EnumSetupProc(const Line: PChar; const Ext: Integer); ssASLRCompatible: begin ASLRCompatible := StrToBool(Value); end; - ssBackColor: begin - try - SetupHeader.BackColor := StringToColor(Value); - except - Invalid; - end; - end; - ssBackColor2: begin - try - SetupHeader.BackColor2 := StringToColor(Value); - except - Invalid; - end; - end; - ssBackColorDirection: begin - if CompareText(Value, 'toptobottom') = 0 then - Exclude(SetupHeader.Options, shBackColorHorizontal) - else if CompareText(Value, 'lefttoright') = 0 then - Include(SetupHeader.Options, shBackColorHorizontal) - else - Invalid; - end; + ssBackColor, + ssBackColor2, + ssBackColorDirection, ssBackSolid: begin - BackSolid := StrToBool(Value); + WarningsList.Add(Format(SCompilerEntryObsolete, ['Setup', KeyName])); end; ssChangesAssociations: begin SetupHeader.ChangesAssociations := Value; @@ -3153,17 +3134,11 @@ procedure TSetupCompiler.EnumSetupProc(const Line: PChar; const Ext: Integer); if not StrToVersionNumbers(Value, VersionInfoVersion) then Invalid; end; - ssWindowResizable: begin - SetSetupHeaderOption(shWindowResizable); - end; - ssWindowShowCaption: begin - SetSetupHeaderOption(shWindowShowCaption); - end; - ssWindowStartMaximized: begin - SetSetupHeaderOption(shWindowStartMaximized); - end; + ssWindowResizable, + ssWindowShowCaption, + ssWindowStartMaximized, ssWindowVisible: begin - SetSetupHeaderOption(shWindowVisible); + WarningsList.Add(Format(SCompilerEntryObsolete, ['Setup', KeyName])); end; ssWizardImageAlphaFormat: begin if CompareText(Value, 'none') = 0 then