diff --git a/README.md b/README.md index 174ebdf..4220094 100644 --- a/README.md +++ b/README.md @@ -57,4 +57,23 @@ If any package has this option enabled, it will be display a checkbox allowing i >Note: The app compiles your component using **Release** target. This means all packages need to be configured at default output folder (Win32\Release and Win64\Release). -**Check my Delphi components here at GitHub and find CompInstall.ini file to see usage examples.** +### Example + +In this example, there is two Delphi packages (DamPackage and DamDesignPackage). The design-time package (DamDesignPackage) is configured to install into Delphi IDE. The runtime package (DamPackage) is configured to copy dfm form file and resource file to release folder. + +``` +[General] +Name=Dam Component +DelphiVersions=XE2;XE3;XE4;XE5;XE6;XE7;XE8;10;10.1;10.2;10.3 +Packages=DamPackage;DamDesignPackage +AddLibrary=1 + +[P_DamPackage] +Allow64bit=1 +PublishFiles=DamDialog.dfm;Dam_Resource.res + +[P_DamDesignPackage] +Install=1 +``` + +**Check my Delphi components here at GitHub and find CompInstall.ini file to see others usage examples.** diff --git a/UFrm.dfm b/UFrm.dfm index 7995d27..68f887a 100644 --- a/UFrm.dfm +++ b/UFrm.dfm @@ -18,21 +18,21 @@ object Frm: TFrm OnDestroy = FormDestroy PixelsPerInch = 96 TextHeight = 13 - object Label1: TLabel + object LbComponentName: TLabel Left = 16 Top = 16 Width = 64 Height = 13 Caption = 'Component:' end - object Label2: TLabel + object LbDelphiVersion: TLabel Left = 16 Top = 64 Width = 110 Height = 13 Caption = 'Select Delphi version:' end - object Label3: TLabel + object LbInstallLog: TLabel Left = 16 Top = 112 Width = 80 diff --git a/UFrm.pas b/UFrm.pas index 03e6acb..9e8be0c 100644 --- a/UFrm.pas +++ b/UFrm.pas @@ -19,12 +19,12 @@ interface type TFrm = class(TForm) - Label1: TLabel; + LbComponentName: TLabel; EdCompName: TEdit; - Label2: TLabel; + LbDelphiVersion: TLabel; EdDV: TComboBox; Ck64bit: TCheckBox; - Label3: TLabel; + LbInstallLog: TLabel; BtnInstall: TBitBtn; BtnExit: TBitBtn; M: TRichEdit;