DELPHI AREA
MESSAGE BOARD
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Installing Components through an Installer Programs

 
   Reply to topic    DELPHI AREA Forum Index -> Delphi Programming
View previous topic :: View next topic  
Author Message
ZarrinPour
Member


Joined: 28 Sep 2003
Posts: 8

PostPosted: 05/11/03 10:26    Post subject: Installing Components through an Installer Programs Reply with quote

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.
Back to top
View user's profile
Johnny_Bit
Moderator


Joined: 15 Jun 2003
Posts: 131

PostPosted: 12/11/03 06:30    Post subject: Reply with quote

In sources of JCL is sample installer. search there. jvcl.sourceforge.net
Back to top
View user's profile
ZarrinPour
Member


Joined: 28 Sep 2003
Posts: 8

PostPosted: 12/12/03 06:41    Post subject: Installing Components through an Installer Programs Reply with quote

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 !!
Back to top
View user's profile
Display posts from previous:   
   Reply to topic    DELPHI AREA Forum Index -> Delphi Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB 2.0.6 © 2001, 2002 phpBB Group