Skip to content

Commit

Permalink
Finish updating compiler, Struct.
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanrussell authored Dec 15, 2024
1 parent c29c12e commit 5682846
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
12 changes: 3 additions & 9 deletions Projects/Src/Compiler.SetupCompiler.pas
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ TSetupCompiler = class
SetupHeader: TSetupHeader;

SetupDirectiveLines: array[TSetupSectionDirective] of Integer;
UseSetupLdr, DiskSpanning, BackSolid, TerminalServicesAware, DEPCompatible, ASLRCompatible: Boolean;
UseSetupLdr, DiskSpanning, TerminalServicesAware, DEPCompatible, ASLRCompatible: Boolean;
DiskSliceSize, DiskClusterSize, SlicesPerDisk, ReserveBytes: Longint;
LicenseFile, InfoBeforeFile, InfoAfterFile, WizardImageFile: String;
WizardSmallImageFile: String;
Expand Down Expand Up @@ -1653,8 +1653,8 @@ function TSetupCompiler.CheckConst(const S: String; const MinVersion: TSetupVers
const
UserConsts: array[0..0] of String = (
'username');
Consts: array[0..42] of String = (
'src', 'srcexe', 'tmp', 'app', 'win', 'sys', 'sd', 'groupname', 'commonfonts', 'hwnd',
Consts: array[0..41] of String = (
'src', 'srcexe', 'tmp', 'app', 'win', 'sys', 'sd', 'groupname', 'commonfonts',
'commonpf', 'commonpf32', 'commonpf64', 'commoncf', 'commoncf32', 'commoncf64',
'autopf', 'autopf32', 'autopf64', 'autocf', 'autocf32', 'autocf64',
'computername', 'dao', 'cmd', 'wizardhwnd', 'sysuserinfoname', 'sysuserinfoorg',
Expand Down Expand Up @@ -7360,7 +7360,6 @@ procedure TSetupCompiler.Compile;
SetupHeader.MinVersion.NTVersion := $06010000;
SetupHeader.MinVersion.NTServicePack := $100;
SetupHeader.Options := [shDisableStartupPrompt, shCreateAppDir,
shWindowStartMaximized, shWindowShowCaption, shWindowResizable,
shUsePreviousAppDir, shUsePreviousGroup,
shUsePreviousSetupType, shAlwaysShowComponentsList, shFlatComponentsList,
shShowComponentSizes, shUsePreviousTasks, shUpdateUninstallLogAppName,
Expand All @@ -7373,15 +7372,12 @@ procedure TSetupCompiler.Compile;
SetupHeader.UninstallFilesDir := '{app}';
SetupHeader.DefaultUserInfoName := '{sysuserinfoname}';
SetupHeader.DefaultUserInfoOrg := '{sysuserinfoorg}';
SetupHeader.BackColor := clBlue;
SetupHeader.BackColor2 := clBlack;
SetupHeader.DisableDirPage := dpAuto;
SetupHeader.DisableProgramGroupPage := dpAuto;
SetupHeader.CreateUninstallRegKey := 'yes';
SetupHeader.Uninstallable := 'yes';
SetupHeader.ChangesEnvironment := 'no';
SetupHeader.ChangesAssociations := 'no';
BackSolid := False;
DefaultDialogFontName := 'Tahoma';
SignToolRetryCount := 2;
SignToolRetryDelay := 500;
Expand Down Expand Up @@ -7480,8 +7476,6 @@ procedure TSetupCompiler.Compile;
CheckConst(SetupHeader.DefaultUserInfoOrg, SetupHeader.MinVersion, []);
LineNumber := SetupDirectiveLines[ssDefaultUserInfoSerial];
CheckConst(SetupHeader.DefaultUserInfoSerial, SetupHeader.MinVersion, []);
if BackSolid then
SetupHeader.BackColor2 := SetupHeader.BackColor;
if not DiskSpanning then begin
DiskSliceSize := MaxDiskSliceSize;
DiskClusterSize := 1;
Expand Down
6 changes: 2 additions & 4 deletions Projects/Src/Shared.Struct.pas
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ interface
this file it's recommended you change SetupID. Any change will do (like
changing the letters or numbers), as long as your format is
unrecognizable by the standard Inno Setup. }
SetupID: TSetupID = 'Inno Setup Setup Data (6.4.0)';
SetupID: TSetupID = 'Inno Setup Setup Data (6.4.0.1)';
UninstallLogID: array[Boolean] of TUninstallLogID =
('Inno Setup Uninstall Log (b)', 'Inno Setup Uninstall Log (b) 64-bit');
MessagesHdrID: TMessagesHdrID = 'Inno Setup Messages (6.4.0) (u)';
Expand All @@ -51,8 +51,7 @@ interface
end;
TSetupHeaderOption = (shDisableStartupPrompt, shCreateAppDir,
shAllowNoIcons, shAlwaysRestart, shAlwaysUsePersonalGroup,
shWindowVisible, shWindowShowCaption, shWindowResizable,
shWindowStartMaximized, shEnableDirDoesntExistWarning,
shEnableDirDoesntExistWarning,
shPassword, shAllowRootDirectory, shDisableFinishedPage, shUsePreviousAppDir,
shBackColorHorizontal, shUsePreviousGroup, shUpdateUninstallLogAppName,
shUsePreviousSetupType, shDisableReadyMemo, shAlwaysShowComponentsList,
Expand Down Expand Up @@ -106,7 +105,6 @@ TSetupEncryptionNonce = record
NumRegistryEntries, NumInstallDeleteEntries, NumUninstallDeleteEntries,
NumRunEntries, NumUninstallRunEntries: Integer;
MinVersion, OnlyBelowVersion: TSetupVersionData;
BackColor, BackColor2: Longint;
WizardStyle: TSetupWizardStyle;
WizardSizePercentX, WizardSizePercentY: Integer;
WizardImageAlphaFormat: (afIgnored, afDefined, afPremultiplied); // Must be same as Graphics.TAlphaFormat
Expand Down

0 comments on commit 5682846

Please sign in to comment.