Shared.Struct.pas 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459
  1. unit Shared.Struct;
  2. {
  3. Inno Setup
  4. Copyright (C) 1997-2025 Jordan Russell
  5. Portions by Martijn Laan
  6. For conditions of distribution and use, see LICENSE.TXT.
  7. Various records and other types that are shared by the ISCmplr, Setup,
  8. SetupLdr, and Uninst projects
  9. }
  10. interface
  11. uses
  12. Windows, SHA256;
  13. const
  14. SetupTitle = 'Inno Setup';
  15. SetupVersion = '6.7.0-dev';
  16. SetupBinVersion = (6 shl 24) + (7 shl 16) + (0 shl 8) + 0;
  17. type
  18. TSetupID = array[0..63] of AnsiChar;
  19. TUninstallLogID = array[0..63] of AnsiChar;
  20. TMessagesHdrID = array[0..63] of AnsiChar;
  21. TMessagesLangOptionsID = array[1..8] of AnsiChar;
  22. TCompID = array[1..4] of AnsiChar;
  23. TDiskSliceID = array[1..8] of AnsiChar;
  24. const
  25. { SetupID is used by the Setup program to check if the Setup.0 file is
  26. compatible with it. If you make any modifications to the records in
  27. this file it's recommended you change SetupID. Any change will do (like
  28. changing the letters or numbers), as long as your format is
  29. unrecognizable by the standard Inno Setup. }
  30. SetupID: TSetupID = 'Inno Setup Setup Data (6.7.0)';
  31. UninstallLogID: array[Boolean] of TUninstallLogID =
  32. ('Inno Setup Uninstall Log (b)', 'Inno Setup Uninstall Log (b) 64-bit');
  33. MessagesHdrID: TMessagesHdrID = 'Inno Setup Messages (6.5.0) (u)';
  34. MessagesLangOptionsID: TMessagesLangOptionsID = '!mlo!003';
  35. ZLIBID: TCompID = 'zlb'#26;
  36. DiskSliceID: TDiskSliceID = 'idskb32'#26;
  37. type
  38. TSetupVersionDataVersion = packed record
  39. Build: Word;
  40. Minor, Major: Byte;
  41. end;
  42. TSetupVersionData = packed record
  43. WinVersion, NTVersion: Cardinal;
  44. NTServicePack: Word;
  45. end;
  46. TSetupHeaderOption = (shDisableStartupPrompt, shCreateAppDir,
  47. shAllowNoIcons, shAlwaysRestart, shAlwaysUsePersonalGroup,
  48. shEnableDirDoesntExistWarning,
  49. shPassword, shAllowRootDirectory, shDisableFinishedPage, shUsePreviousAppDir,
  50. shUsePreviousGroup, shUpdateUninstallLogAppName,
  51. shUsePreviousSetupType, shDisableReadyMemo, shAlwaysShowComponentsList,
  52. shFlatComponentsList, shShowComponentSizes, shUsePreviousTasks,
  53. shDisableReadyPage, shAlwaysShowDirOnReadyPage, shAlwaysShowGroupOnReadyPage,
  54. shAllowUNCPath, shUserInfoPage, shUsePreviousUserInfo,
  55. shUninstallRestartComputer, shRestartIfNeededByRun, shShowTasksTreeLines,
  56. shAllowCancelDuringInstall, shWizardImageStretch, shAppendDefaultDirName,
  57. shAppendDefaultGroupName, shSetupLogging,
  58. shSignedUninstaller, shUsePreviousLanguage, shDisableWelcomePage,
  59. shCloseApplications, shRestartApplications, shAllowNetworkDrive,
  60. shForceCloseApplications, shAppNameHasConsts, shUsePreviousPrivileges,
  61. shUninstallLogging, shWizardModern, shWizardBorderStyled,
  62. shWizardKeepAspectRatio, shWizardLightButtonsUnstyled,
  63. shRedirectionGuard, shUnusedPadding = 56);
  64. { ^ Contains padding to raise the amount of flags to 57, ensuring the size of
  65. the set is 8 bytes (instead of less) in 32-bit builds. This prevents
  66. incompatibility with 64-bit builds, where the minimum size for a set with
  67. more than 32 flags is 8 bytes. Once the amount of actual flags reaches
  68. 57, the padding can be removed, as the set will then be naturally
  69. compatible again between 32-bit and 64-bit builds. Note that this is not
  70. necessary for sets with fewer than 32 flags, which is why
  71. TSetupHeaderOption is the only set with padding. Also see
  72. https://stackoverflow.com/questions/30336620/enumeration-set-size-in-x64 }
  73. TSetupHeaderOptions = packed set of TSetupHeaderOption;
  74. { ^ Adding more flags adds 1 byte for every 8 flags, in both 32-bit and
  75. 64-bit builds, even without specifying packed. But to be sure we specify
  76. it anyway. }
  77. TSetupLanguageDetectionMethod = (ldUILanguage, ldLocale, ldNone);
  78. TSetupCompressMethod = (cmStored, cmZip, cmBzip, cmLZMA, cmLZMA2);
  79. TSetupKDFSalt = array[0..15] of Byte;
  80. TSetupEncryptionKey = array[0..31] of Byte;
  81. TSetupEncryptionNonce = record
  82. RandomXorStartOffset: Int64;
  83. RandomXorFirstSlice: Int32;
  84. RemainingRandom: array[0..2] of Int32;
  85. end;
  86. TSetupProcessorArchitecture = (paUnknown, paX86, paX64, paArm32, paArm64);
  87. TSetupProcessorArchitectures = set of TSetupProcessorArchitecture;
  88. TSetupDisablePage = (dpAuto, dpNo, dpYes);
  89. TSetupPrivilegesRequired = (prNone, prPowerUser, prAdmin, prLowest);
  90. TSetupPrivilegesRequiredOverride = (proCommandLine, proDialog);
  91. TSetupPrivilegesRequiredOverrides = set of TSetupPrivilegesRequiredOverride;
  92. TSetupWizardDarkStyle = (wdsLight, wdsDark, wdsDynamic);
  93. const
  94. SetupProcessorArchitectureNames: array[TSetupProcessorArchitecture] of String =
  95. ('Unknown', 'x86', 'x64', 'Arm32', 'Arm64');
  96. type
  97. { Should not contain strings }
  98. TSetupEncryptionHeader = packed record
  99. EncryptionUse: (euNone, euFiles, euFull);
  100. KDFSalt: TSetupKDFSalt;
  101. KDFIterations: Integer;
  102. BaseNonce: TSetupEncryptionNonce;
  103. PasswordTest: Integer;
  104. end;
  105. const
  106. SetupHeaderStrings = 34;
  107. SetupHeaderAnsiStrings = 4;
  108. type
  109. TSetupHeader = packed record
  110. AppName, AppVerName, AppId, AppCopyright, AppPublisher, AppPublisherURL,
  111. AppSupportPhone, AppSupportURL, AppUpdatesURL, AppVersion, DefaultDirName,
  112. DefaultGroupName, BaseFilename, UninstallFilesDir, UninstallDisplayName,
  113. UninstallDisplayIcon, AppMutex, DefaultUserInfoName, DefaultUserInfoOrg,
  114. DefaultUserInfoSerial, AppReadmeFile, AppContact, AppComments,
  115. AppModifyPath, CreateUninstallRegKey, Uninstallable, CloseApplicationsFilter,
  116. SetupMutex, ChangesEnvironment, ChangesAssociations,
  117. ArchitecturesAllowed, ArchitecturesInstallIn64BitMode, CloseApplicationsFilterExcludes,
  118. SevenZipLibraryName: String;
  119. LicenseText, InfoBeforeText, InfoAfterText, CompiledCodeText: AnsiString;
  120. NumLanguageEntries, NumCustomMessageEntries, NumPermissionEntries,
  121. NumTypeEntries, NumComponentEntries, NumTaskEntries, NumDirEntries,
  122. NumISSigKeyEntries, NumFileEntries, NumFileLocationEntries, NumIconEntries, NumIniEntries,
  123. NumRegistryEntries, NumInstallDeleteEntries, NumUninstallDeleteEntries,
  124. NumRunEntries, NumUninstallRunEntries: Integer;
  125. MinVersion, OnlyBelowVersion: TSetupVersionData;
  126. WizardSizePercentX, WizardSizePercentY: Integer;
  127. WizardDarkStyle: TSetupWizardDarkStyle;
  128. WizardImageAlphaFormat: (afIgnored, afDefined, afPremultiplied); // Must be same as Graphics.TAlphaFormat
  129. WizardImageBackColor, WizardSmallImageBackColor: Integer;
  130. WizardImageBackColorDynamicDark, WizardSmallImageBackColorDynamicDark: Integer;
  131. WizardImageOpacity: Byte;
  132. ExtraDiskSpaceRequired: Int64;
  133. SlicesPerDisk: Integer;
  134. UninstallLogMode: (lmAppend, lmNew, lmOverwrite);
  135. DirExistsWarning: (ddAuto, ddNo, ddYes);
  136. PrivilegesRequired: TSetupPrivilegesRequired;
  137. PrivilegesRequiredOverridesAllowed: TSetupPrivilegesRequiredOverrides;
  138. ShowLanguageDialog: (slYes, slNo, slAuto);
  139. LanguageDetectionMethod: TSetupLanguageDetectionMethod;
  140. CompressMethod: TSetupCompressMethod;
  141. DisableDirPage, DisableProgramGroupPage: TSetupDisablePage;
  142. UninstallDisplaySize: Int64;
  143. Options: TSetupHeaderOptions;
  144. end;
  145. const
  146. SetupPermissionEntryStrings = 0;
  147. SetupPermissionEntryAnsiStrings = 1;
  148. type
  149. PSetupPermissionEntry = ^TSetupPermissionEntry;
  150. TSetupPermissionEntry = packed record
  151. Permissions: AnsiString; { an array of TGrantPermissionEntry's }
  152. end;
  153. const
  154. SetupLanguageEntryStrings = 4;
  155. SetupLanguageEntryAnsiStrings = 4;
  156. type
  157. PSetupLanguageEntry = ^TSetupLanguageEntry;
  158. TSetupLanguageEntry = packed record
  159. Name, LanguageName, DialogFontName, WelcomeFontName: String;
  160. Data, LicenseText, InfoBeforeText, InfoAfterText: AnsiString;
  161. LanguageID: Word;
  162. DialogFontSize, DialogFontBaseScaleHeight, DialogFontBaseScaleWidth: Integer;
  163. WelcomeFontSize: Integer;
  164. RightToLeft: Boolean;
  165. end;
  166. const
  167. SetupCustomMessageEntryStrings = 2;
  168. SetupCustomMessageEntryAnsiStrings = 0;
  169. type
  170. PSetupCustomMessageEntry = ^TSetupCustomMessageEntry;
  171. TSetupCustomMessageEntry = packed record
  172. Name, Value: String;
  173. LangIndex: Integer;
  174. end;
  175. const
  176. SetupTypeEntryStrings = 4;
  177. SetupTypeEntryAnsiStrings = 0;
  178. type
  179. TSetupTypeOption = (toIsCustom);
  180. TSetupTypeOptions = set of TSetupTypeOption;
  181. TSetupTypeType = (ttUser, ttDefaultFull, ttDefaultCompact, ttDefaultCustom);
  182. PSetupTypeEntry = ^TSetupTypeEntry;
  183. TSetupTypeEntry = packed record
  184. Name, Description, Languages, CheckOnce: String;
  185. MinVersion, OnlyBelowVersion: TSetupVersionData;
  186. Options: TSetupTypeOptions;
  187. Typ: TSetupTypeType;
  188. { internally used: }
  189. Size: Int64;
  190. end;
  191. const
  192. SetupComponentEntryStrings = 5;
  193. SetupComponentEntryAnsiStrings = 0;
  194. type
  195. PSetupComponentEntry = ^TSetupComponentEntry;
  196. TSetupComponentEntry = packed record
  197. Name, Description, Types, Languages, CheckOnce: String;
  198. ExtraDiskSpaceRequired: Int64;
  199. Level: Integer;
  200. Used: Boolean;
  201. MinVersion, OnlyBelowVersion: TSetupVersionData;
  202. Options: set of (coFixed, coRestart, coDisableNoUninstallWarning,
  203. coExclusive, coDontInheritCheck);
  204. { internally used: }
  205. Size: Int64;
  206. end;
  207. const
  208. SetupTaskEntryStrings = 6;
  209. SetupTaskEntryAnsiStrings = 0;
  210. type
  211. PSetupTaskEntry = ^TSetupTaskEntry;
  212. TSetupTaskEntry = packed record
  213. Name, Description, GroupDescription, Components, Languages, Check: String;
  214. Level: Integer;
  215. Used: Boolean;
  216. MinVersion, OnlyBelowVersion: TSetupVersionData;
  217. Options: set of (toExclusive, toUnchecked, toRestart, toCheckedOnce,
  218. toDontInheritCheck);
  219. end;
  220. const
  221. SetupDirEntryStrings = 7;
  222. SetupDirEntryAnsiStrings = 0;
  223. type
  224. PSetupDirEntry = ^TSetupDirEntry;
  225. TSetupDirEntry = packed record
  226. DirName: String;
  227. Components, Tasks, Languages, Check, AfterInstall, BeforeInstall: String;
  228. Attribs: Integer;
  229. MinVersion, OnlyBelowVersion: TSetupVersionData;
  230. PermissionsEntry: Smallint;
  231. Options: set of (doUninsNeverUninstall, doDeleteAfterInstall,
  232. doUninsAlwaysUninstall, doSetNTFSCompression, doUnsetNTFSCompression);
  233. end;
  234. const
  235. SetupISSigKeyEntryStrings = 3;
  236. SetupISSigKeyEntryAnsiStrings = 0;
  237. type
  238. PSetupISSigKeyEntry = ^TSetupISSigKeyEntry;
  239. TSetupISSigKeyEntry = packed record
  240. PublicX, PublicY, RuntimeID: String;
  241. end;
  242. const
  243. SetupFileEntryStrings = 15;
  244. SetupFileEntryAnsiStrings = 1;
  245. type
  246. PSetupFileEntry = ^TSetupFileEntry;
  247. TSetupFileVerificationType = (fvNone, fvHash, fvISSig);
  248. TSetupFileVerification = packed record
  249. ISSigAllowedKeys: AnsiString; { Must be first }
  250. Hash: TSHA256Digest;
  251. Typ: TSetupFileVerificationType;
  252. end;
  253. TSetupFileEntry = packed record
  254. SourceFilename, DestName, InstallFontName, StrongAssemblyName, Components,
  255. Tasks, Languages, Check, AfterInstall, BeforeInstall, Excludes,
  256. DownloadISSigSource, DownloadUserName, DownloadPassword, ExtractArchivePassword: String;
  257. Verification: TSetupFileVerification; { Must be first after strings }
  258. MinVersion, OnlyBelowVersion: TSetupVersionData;
  259. LocationEntry: Integer;
  260. Attribs: Integer;
  261. ExternalSize: Int64;
  262. PermissionsEntry: Smallint;
  263. Options: set of (foConfirmOverwrite, foUninsNeverUninstall, foRestartReplace,
  264. foDeleteAfterInstall, foRegisterServer, foRegisterTypeLib, foSharedFile,
  265. foCompareTimeStamp, foFontIsntTrueType,
  266. foSkipIfSourceDoesntExist, foOverwriteReadOnly, foOverwriteSameVersion,
  267. foCustomDestName, foOnlyIfDestFileExists, foNoRegError,
  268. foUninsRestartDelete, foOnlyIfDoesntExist, foIgnoreVersion,
  269. foPromptIfOlder, foDontCopy, foUninsRemoveReadOnly,
  270. foRecurseSubDirsExternal, foReplaceSameVersionIfContentsDiffer,
  271. foDontVerifyChecksum, foUninsNoSharedFilePrompt, foCreateAllSubDirs,
  272. fo32Bit, fo64Bit, foExternalSizePreset, foSetNTFSCompression,
  273. foUnsetNTFSCompression, foGacInstall, foDownload,
  274. foExtractArchive);
  275. FileType: (ftUserFile, ftUninstExe);
  276. end;
  277. const
  278. SetupFileLocationEntryStrings = 0;
  279. SetupFileLocationEntryAnsiStrings = 0;
  280. type
  281. PSetupFileLocationEntry = ^TSetupFileLocationEntry;
  282. TSetupFileLocationEntry = packed record
  283. FirstSlice, LastSlice: Integer;
  284. StartOffset: Int64;
  285. ChunkSuboffset: Int64;
  286. OriginalSize: Int64;
  287. ChunkCompressedSize: Int64;
  288. SHA256Sum: TSHA256Digest;
  289. TimeStamp: TFileTime;
  290. FileVersionMS, FileVersionLS: DWORD;
  291. Flags: set of (floVersionInfoValid, floTimeStampInUTC, floCallInstructionOptimized,
  292. floChunkEncrypted, floChunkCompressed);
  293. end;
  294. const
  295. SetupIconEntryStrings = 13;
  296. SetupIconEntryAnsiStrings = 0;
  297. type
  298. TSetupIconCloseOnExit = (icNoSetting, icYes, icNo);
  299. PSetupIconEntry = ^TSetupIconEntry;
  300. TSetupIconEntry = packed record
  301. IconName, Filename, Parameters, WorkingDir, IconFilename, Comment: String;
  302. Components, Tasks, Languages, Check, AfterInstall, BeforeInstall: String;
  303. AppUserModelID: String;
  304. AppUserModelToastActivatorCLSID: TGUID;
  305. MinVersion, OnlyBelowVersion: TSetupVersionData;
  306. IconIndex, ShowCmd: Integer;
  307. CloseOnExit: TSetupIconCloseOnExit;
  308. HotKey: Word;
  309. Options: set of (ioUninsNeverUninstall, ioCreateOnlyIfFileExists,
  310. ioUseAppPaths, ioExcludeFromShowInNewInstall,
  311. ioPreventPinning, ioHasAppUserModelToastActivatorCLSID);
  312. end;
  313. const
  314. SetupIniEntryStrings = 10;
  315. SetupIniEntryAnsiStrings = 0;
  316. type
  317. PSetupIniEntry = ^TSetupIniEntry;
  318. TSetupIniEntry = packed record
  319. Filename, Section, Entry, Value: String;
  320. Components, Tasks, Languages, Check, AfterInstall, BeforeInstall: String;
  321. MinVersion, OnlyBelowVersion: TSetupVersionData;
  322. Options: set of (ioCreateKeyIfDoesntExist, ioUninsDeleteEntry,
  323. ioUninsDeleteEntireSection, ioUninsDeleteSectionIfEmpty,
  324. { internally used: }
  325. ioHasValue);
  326. end;
  327. const
  328. SetupRegistryEntryStrings = 9;
  329. SetupRegistryEntryAnsiStrings = 0;
  330. type
  331. PSetupRegistryEntry = ^TSetupRegistryEntry;
  332. TSetupRegistryEntry = packed record
  333. Subkey, ValueName, ValueData: String;
  334. Components, Tasks, Languages, Check, AfterInstall, BeforeInstall: String;
  335. MinVersion, OnlyBelowVersion: TSetupVersionData;
  336. RootKey: UInt32; { Not using HKEY because it equals NativeUInt. UInt32 fits all predefined keys and utReg* use Integer to store it. }
  337. PermissionsEntry: Smallint;
  338. Typ: (rtNone, rtString, rtExpandString, rtDWord, rtBinary, rtMultiString, rtQWord);
  339. Options: set of (roCreateValueIfDoesntExist, roUninsDeleteValue,
  340. roUninsClearValue, roUninsDeleteEntireKey, roUninsDeleteEntireKeyIfEmpty,
  341. roPreserveStringType, roDeleteKey, roDeleteValue, roNoError,
  342. roDontCreateKey, ro32Bit, ro64Bit);
  343. end;
  344. const
  345. SetupDeleteEntryStrings = 7;
  346. SetupDeleteEntryAnsiStrings = 0;
  347. type
  348. TSetupDeleteType = (dfFiles, dfFilesAndOrSubdirs, dfDirIfEmpty);
  349. PSetupDeleteEntry = ^TSetupDeleteEntry;
  350. TSetupDeleteEntry = packed record
  351. Name: String;
  352. Components, Tasks, Languages, Check, AfterInstall, BeforeInstall: String;
  353. MinVersion, OnlyBelowVersion: TSetupVersionData;
  354. DeleteType: TSetupDeleteType;
  355. end;
  356. const
  357. SetupRunEntryStrings = 13;
  358. SetupRunEntryAnsiStrings = 0;
  359. type
  360. PSetupRunEntry = ^TSetupRunEntry;
  361. TSetupRunEntry = packed record
  362. Name, Parameters, WorkingDir, RunOnceId, StatusMsg, Verb: String;
  363. Description, Components, Tasks, Languages, Check, AfterInstall, BeforeInstall: String;
  364. MinVersion, OnlyBelowVersion: TSetupVersionData;
  365. ShowCmd: Integer;
  366. Wait: (rwWaitUntilTerminated, rwNoWait, rwWaitUntilIdle);
  367. Options: set of (roShellExec, roSkipIfDoesntExist,
  368. roPostInstall, roUnchecked, roSkipIfSilent, roSkipIfNotSilent,
  369. roHideWizard, roRun32Bit, roRun64Bit, roRunAsOriginalUser,
  370. roDontLogParameters, roLogOutput);
  371. end;
  372. const
  373. MaxGrantPermissionEntries = 32; { must keep in synch with Helper.c }
  374. type
  375. { TGrantPermissionEntry is stored inside string fields named 'Permissions' }
  376. TGrantPermissionSid = record { must keep in synch with Helper.c }
  377. Authority: TSIDIdentifierAuthority;
  378. SubAuthCount: Byte;
  379. SubAuth: array[0..1] of DWORD;
  380. end;
  381. TGrantPermissionEntry = record { must keep in synch with Helper.c }
  382. Sid: TGrantPermissionSid;
  383. AccessMask: DWORD;
  384. end;
  385. { A TDiskSliceHeader record follows DiskSliceID in a Setup-*.bin file }
  386. TDiskSliceHeader = packed record
  387. TotalSize: Int64;
  388. end;
  389. { A TMessageHeader record follows MessagesHdrID in a Setup.msg file }
  390. TMessagesHeader = packed record
  391. NumMessages: Cardinal;
  392. TotalSize: Cardinal;
  393. NotTotalSize: Cardinal;
  394. CRCMessages: Longint;
  395. end;
  396. { TSetupLdrOffsetTable is stored inside SetupLdr's SetupLdrOffsetTableResID
  397. RCDATA resource }
  398. PSetupLdrOffsetTable = ^TSetupLdrOffsetTable;
  399. TSetupLdrOffsetTable = record
  400. ID: array[1..12] of AnsiChar; { = SetupLdrOffsetTableID }
  401. Version: UInt32; { = SetupLdrOffsetTableVersion }
  402. TotalSize: Int64; { Minimum expected size of setup.exe }
  403. OffsetEXE: Int64; { Offset of compressed setup.e32 }
  404. UncompressedSizeEXE: UInt32; { Size of setup.e32 before compression }
  405. CRCEXE: Int32; { CRC of setup.e32 before compression }
  406. Offset0: Int64; { Offset of embedded setup-0.bin data }
  407. Offset1: Int64; { Offset of embedded setup-1.bin data,
  408. or 0 when DiskSpanning=yes }
  409. ReservedPadding: UInt32; { Not set (just provides padding) }
  410. TableCRC: Int32; { CRC of all prior fields in this record }
  411. end;
  412. { TMessagesLangOptions contains appearance settings used by the uninstaller
  413. and RegSvr, set when the .exe was last replaced, without being affected
  414. by any previously installed version. As a result, it is neither backward
  415. nor forward compatible, unlike TUninstallLogHeader. Be sure to update
  416. MessagesLangOptionsID whenever you make changes to this record. It is
  417. named TMessagesLangOptions because it is stored in the Setup.msg file,
  418. not because all options must be language-specific. }
  419. TMessagesLangOptionsFlag = (lfRightToLeft, lfWizardModern, lfWizardDarkStyleDark,
  420. lfWizardDarkStyleDynamic, lfWizardBorderStyled, lfWizardLightButtonsUnstyled,
  421. lfWizardKeepAspectRatio);
  422. TMessagesLangOptionsFlags = set of TMessagesLangOptionsFlag;
  423. TMessagesLangOptions = packed record
  424. ID: TMessagesLangOptionsID;
  425. DialogFontName: array[0..31] of Char;
  426. DialogFontSize, DialogFontBaseScaleWidth, DialogFontBaseScaleHeight: Integer;
  427. WizardSizePercentX, WizardSizePercentY: Integer;
  428. Flags: TMessagesLangOptionsFlags;
  429. end;
  430. TUninstallerMsgTail = packed record
  431. ID: Longint;
  432. Offset: Longint;
  433. end;
  434. const
  435. SetupLdrOffsetTableResID = 11111;
  436. SetupLdrOffsetTableID = 'rDlPtS'#$CD#$E6#$D7#$7B#$0B#$2A;
  437. SetupLdrOffsetTableVersion = 2;
  438. SetupExeModeOffset = $30;
  439. SetupExeModeUninstaller = $6E556E49;
  440. SetupExeModeRegSvr = $53526E49;
  441. UninstallerMsgTailID = $67734D49;
  442. implementation
  443. end.