Thursday, January 27, 2005

Delphi Installation Organization Part 2

Part2: Level 1 Folders and the _Win32 folder.

Today I will explain in a flash the main purpose of each first level folder, and some of the subfolders of them.
Lets begin with it !

_DotNET
This folder holds all related to DotNET.
_Win32
As you suposed this folder holds all related to Win32.
Component Library
This folder holds all original Component or Component packs sources. It does not matter if Win32 or DotNET.
Documents
All documentation,FAQ, etc.
Experts
Any Expert you may install for Delphi should be located here.
Programs
Any program related to Delphi or needed during developing should live here. As for example resource editors, database managers, etc.
Settings
All settings stored for the Delphi IDE stays in here. This folder is very important because it will hold al registry settings and files stored so you will be able to setup your delphi in a minute.

Ok.. I just explained the first level of the G:_BDS folder. Ok.. some names maybe sound weird to you.. but that is my way for setting folder names, you can of course use your own style of naming but I advice you to mantain the philosophy of each folder. Why the use of underscores "_" in some folders. Well.. underscores are just for sorting. I wanted to appear my both most daily used folders of all this first level at the very beggining of the tree.
I would like to jump out from the DotNET part as I am a rookie on this, the folders created at this level are just a little copy from the used at the _Win32 folder that I will coment stright away.

_bpl
All bpl of all third party component packages are located here.That means that no bpl other than of course installed by Delphi itself should be located outside this folder.This folder should be on the environment path, and should be setup on delphi to be the package output directory, but this will be explained in another post.
_Consts
Well. Depending on the targeting country of your software you may want to have the delphi consts translated in here. Many Delphi related web pages offer the basic consts to be able to be downloaded. This files should be placed here. Of course, this path should be set at the most top level of the library path at the compiler configuration, but this also will be explained in another post.
_dcp
All dcp as with in the case of bpl will be located and placed here. As with bpl this folder should be on the environment path and should be setup om delphi to be the DCP output directory.
_library
Here is where I place all third party components sources. I create inside this folder, subfolders for the diferent component packs as for example and Albert Research folder for my own components, an GraphicEx for the components of Mike Lischke, etc. This folder and each subfolder should be added at the Delphi Options, library path and browsing path.
_library dcu
This folder will hold all dcu files that will be created by compiling any of the packages of the compoment sources of the _library folder. Having in mind this, you have then of course set the Unit output directory of each package you are compiling, to this folder. Doing so we will have allways all our _Library folder clean of the dcu files.
_library test
There is not much to explain about this folder. This folder should be added at the Delphi options Library Path, and browsing path, and I use it to just do fast installs of freeware components I donwload from the internet, to just test them. If I like them then I just move them to a folder Inside the _library folder if not i delete them from here and of course I delete the the bpl's and dcp's generated at the _bpl and _dcp. Whe have to stay always tidy :-).

Well. There are some more folders and Delphi configurations considerations that I will explain in the next post of this blog. Mmm.. today is wednesday so maybe on friday night or saturday I will throw some lines. Have a nice time.

No comments: