Installing Components through an Installer Programs

Please discuss general Delphi programming topics here.

Installing Components through an Installer Programs

Postby ZarrinPour » November 5th, 2003, 10:26 am

Hi all,
How can i write a setup for my component.? I want to install my component in delphi's palette automatically through an installer program such as Install shield,inno setup or ....and also i want to add source location to the delphi 6 search path.

Any advise appreciated.
Thanks.
ZarrinPour
Active Member
Active Member
 
Posts: 12
Joined: September 28th, 2003, 5:50 pm

Postby Johnny_Bit » November 12th, 2003, 6:30 am

In sources of JCL is sample installer. search there. jvcl.sourceforge.net
Johnny_Bit
VIP Member
VIP Member
 
Posts: 455
Joined: June 15th, 2003, 9:56 am

Installing Components through an Installer Programs

Postby ZarrinPour » December 12th, 2003, 6:41 am

Hi all,
Finally i found the following trick for installing Component through an installer program:
At first please excuse me for bad english.I assume that your component's ClassName is for example TMDBFTable and
you have written it's source code in "MDBFTzable.Pas" :

1) Run Regedit.exe
2) Open this key -->HKEY_CURRENT_USER\Software\Borland\Delphi\6.0\Known Packages
in right window you must create a "StringValue" for example with folowing specification:

Name -->d:\program files\borland\delphi6\Bin\dcloffice2k60.bpl
Type --> REG_SZ
Data -->Your optional Description for this component

"Name" refer to path of your Component's .bpl file.

3) Open this Key-->HKEY_CURRENT_USER\Software\Borland\Delphi\6.0\Library
here you find a "StringValue" called "SearchPath", you must "add" the path of your component's Directory Name
to value of it

4) Open this Key-->HKEY_CURRENT_USER\Software\Borland\Delphi\6.0\Palette
Here yo can create a seperate group-name for your components that appears in Delphi's palette.
for eample :

Name --> My Custom Components
Type --> REG_SZ
Data --> MDBFTable.TMDBFTable;

Note that :
--> "My Custom Components" appears in the Delphi's Palette.
--> if you have multiple component in one unit ,for example you have another component with
TCustomCom ClassName , easily add "MDBFTable.TCustomCom" to above string value:
Result ---> "MDBFTable.TMDBFTable;MDBFTable.TCustomCom"
--> You must close Delphi IDE befor doing above steps.

That's all !! :D
ZarrinPour
Active Member
Active Member
 
Posts: 12
Joined: September 28th, 2003, 5:50 pm


Return to Delphi Programming

Who is online

Users browsing this forum: No registered users and 1 guest

cron