|
@@ -1,18 +1,18 @@
|
|
|
-unit Shared.CompTypes;
|
|
|
+unit Shared.ConfigIniFile;
|
|
|
|
|
|
{
|
|
|
Inno Setup
|
|
|
- Copyright (C) 1997-2014 Jordan Russell
|
|
|
+ Copyright (C) 1997-2024 Jordan Russell
|
|
|
Portions by Martijn Laan
|
|
|
For conditions of distribution and use, see LICENSE.TXT.
|
|
|
|
|
|
- Types and functions used by both IDE and ISCC units
|
|
|
+ ConfigIniFile class used by both IDE and ISCC units
|
|
|
}
|
|
|
|
|
|
interface
|
|
|
|
|
|
uses
|
|
|
- Windows, SysUtils, Registry, Classes;
|
|
|
+ Windows, Registry;
|
|
|
|
|
|
type
|
|
|
TConfigIniFile = class(TRegIniFile)
|
|
@@ -24,38 +24,8 @@ type
|
|
|
destructor Destroy; override;
|
|
|
end;
|
|
|
|
|
|
-procedure ReadSignTools(SignTools: TStringList);
|
|
|
-function AddSignToolParam(Sign: string): string;
|
|
|
-
|
|
|
implementation
|
|
|
|
|
|
-procedure ReadSignTools(SignTools: TStringList);
|
|
|
-var
|
|
|
- Ini: TConfigIniFile;
|
|
|
- I: Integer;
|
|
|
- S: String;
|
|
|
-begin
|
|
|
- Ini := TConfigIniFile.Create;
|
|
|
- try
|
|
|
- { Sign tools }
|
|
|
- SignTools.Clear();
|
|
|
- I := 0;
|
|
|
- repeat
|
|
|
- S := Ini.ReadString('SignTools', 'SignTool' + IntToStr(I), '');
|
|
|
- if S <> '' then
|
|
|
- SignTools.Add(S);
|
|
|
- Inc(I);
|
|
|
- until S = '';
|
|
|
- finally
|
|
|
- Ini.Free;
|
|
|
- end;
|
|
|
-end;
|
|
|
-
|
|
|
-function AddSignToolParam(Sign: string): string;
|
|
|
-begin
|
|
|
- Result := 'SignTool-' + Sign + #0;
|
|
|
-end;
|
|
|
-
|
|
|
{ TConfigIniFile }
|
|
|
|
|
|
constructor TConfigIniFile.Create;
|