Entwickler-Ecke

Grafische Benutzeroberflächen (VCL & FireMonkey) - component files


mohfa - So 13.11.05 22:30
Titel: component files
hi every body :
i have developped my component so it need some files are resources ok i have finished all these files . but what is my question :
how could i include all these files ( that are needed by this component ) in one install program , so that when the user installs my component he will not see or explore these files i mean only my component but not its files like *.bpl files and he can not see its pas files .

thank you


BenBE - So 13.11.05 23:28

In normal cases I don't have any problems with understanding what an english text wants to tell me; but yours is causing some trouble ... Could you please tell a bit clearer what you want to do?

Is it that you want to create a setup program that installs your component into the Delphi IDE, press 1.
Is it that you want to install a BPL (Borland Package Library) file without shipping its pas files, press 2.
Is it that you want to do something else, explain yourself a bit clearer.

Thanks in Advance.


mohfa - Mo 14.11.05 00:24

Ok , i am sorry i was very tired after 2 months of developping this component , so today is the last day at the end i have finished it.
here is the question :

my component needs some files ( as recource files ) to work , and i don't want the end-user to be able to explore these files when installing my component, nor the component pas file.
so :
should i include these files in the component package to be installed if so, will the end-user be able to explore theme ?

all what i need is that the end-user can only use my component but not explore or see its pas file or its resource files .

thank you


BenBE - Mo 14.11.05 11:15

Now it's much clearer ;-)

k, if you want to hide the component source from the user you'll have to distribute the following files:

*.BPL (Your Package)
*.DCU (The compiled Sources)
*.DCR (The IDE-Ressources)

IDK for sure if the *.RES files are required by Delphi, but IIRC they are. So they have to be distributed too. The *.PAS files are not required by the end-user as long as your VCL Sources remained untouched\unchanged. Otherwise Delphi would cry to get the sources for your components.

Even if you won't share the *.RES\*.DCR files they could be generated quite easily, if you had the right tools to do so. So there's no protection of this files possible in a direct way.