Close the Delphi IDE before running the installer. Installing packages while the IDE is open may cause the registration to fail or require a manual restart.
Run the appropriate installer for your Delphi version and edition:
EgStrParserSetup-2.0.0-D12.exe — Standard edition,
Delphi 12EgStrParserSetup-2.0.0-D13.exe — Standard edition,
Delphi 13EgStrParserProSetup-2.0.0-D12.exe — Pro edition, Delphi
12EgStrParserProSetup-2.0.0-D13.exe — Pro edition, Delphi
13EgStrParserDemoSetup-2.0.0-D12.exe — Demo edition,
Delphi 12EgStrParserDemoSetup-2.0.0-D13.exe — Demo edition,
Delphi 13Follow the wizard. The installer requires administrator privileges to
write to Program Files and to update the Delphi registry
entries.
Windows security warning
The installers are digitally signed with a self-signed code-signing certificate. Windows SmartScreen may display a blue warning dialog with the message “Windows protected your PC” or “Unknown publisher” before the installer runs. This is expected and does not indicate a problem with the file.
To proceed, click More info in the warning dialog, then click Run anyway. If the dialog shows a publisher name of Easygate, Lda., the file is the original unmodified installer.
Two installation types are offered:
The core DCU component is always installed and cannot be deselected. The available optional components are:
In Full mode all optional components are installed. In Custom mode all components are shown pre-selected (matching the Full selection) and can be individually deselected.
The installer performs the following steps automatically:
.bpl, .dcp,
.dcu) to the installation directory under
Lib\.HKEY_CURRENT_USER\Software\Embarcadero\BDS\<version>\Known Packages.HKEY_CURRENT_USER\Software\Embarcadero\BDS\<version>\Library\Win32
and \Win64. Core DCU paths are not added automatically; add
them per-project as described in Using the
core DCU.Registration is performed per-user (HKEY_CURRENT_USER),
so it applies only to the current Windows user account.
Open the Delphi IDE. Open the Component Palette (View > Tool
Palette) and search for TEgStrParser. The component should
appear in the Easygate category. If the component does
not appear, go to Component > Install Packages,
locate the EgStrParser design-time package in the list, and ensure it is
checked.
Use Control Panel > Programs > Uninstall a program and select EgStrParser. The uninstaller removes all files copied by the installer and removes the library paths and Known Packages entries from the Delphi registry. Files created or modified after installation (for example, source files copied to a project directory) are not removed.
The Pro edition installer includes the parser library source files as
an optional component. Run
EgStrParserProSetup-2.0.0-D12.exe or
EgStrParserProSetup-2.0.0-D13.exe and select
Full to install all components including source, or
Custom to choose individually.
The files EgStrParser.pas and
EgStrParserComp.pas are copied to
<install dir>\Source\. To use them in a project, add
that directory to the project search path, or copy them directly to the
project directory.
The core DCU lets you compile the parser directly into your
application without requiring the runtime package (.bpl).
Each platform folder contains two DCUs: EgStrParser.dcu
(the parsing engine) and EgStrParserComp.dcu (the
TEgStrParser component).
The DCU is installed to:
<install dir>\Lib\Delphi370\Win32\Release\core\ (Win32, Delphi 13)
<install dir>\Lib\Delphi370\Win64\Release\core\ (Win64, Delphi 13)
<install dir>\Lib\Delphi290\Win32\Release\core\ (Win32, Delphi 12)
<install dir>\Lib\Delphi290\Win64\Release\core\ (Win64, Delphi 12)
To use it, add the appropriate path to your project
search path (not the global Delphi library path) and add
EgStrParser and, if needed, EgStrParserComp to
the uses clause. The TEgStrParser component is
available through the core DCU; ParseInput can also be
called directly without the component.
The installer does not add the core DCU paths to the global Delphi library path, to avoid conflicts with the package DCUs already registered there.
Example — adding the path in the project options:
C:\Program Files\Easygate\EgStrParser\Lib\Delphi370\Win64\Release\core).EgStrParser to the uses
clause and call ParseInput directly.uses EgStrParser;
var
R: TParseResult;
begin
R := ParseInput('10/2/26 ~ 11/2/26', itDate);
if R.ResultType = otRange then
ShowMessage(R.SQLExpression);
end;