How to Make a exe files with Delphi? - delphi

I want to make a "Setup Maker" App with Delphi.
How can I create a exe files?
for example : Delphi Itself Compiler.
Tanks to All.
....NiliDelphi....

if you mean installer program why don't you use Inno Setup
May be you know; it is a free installer program.

I think that you're asking the wrong thing, since installer applications ("setup makers") don't produce/compile new executables. They have 1 already compiled exe file. They just add additional resources/archives/files to it - that's all.

When I read "How to Make a exe files with Delphi?"... I was tempted to answer "press F9"

Related

Install x-superobject (.pas file) on delphi xe6

I want to use x-superobject, but I can't figure out how to add it and use it on delphi xe6. I found one answer on how to install .pas files on delphi, but it is for delphi2010 and thing are a little bit different I think (I've tried that one but it didn't worked.)
So, to install xsuperobject I downloaded this two files and saved them. I don't know how to proceed, and I feel a bit stupid but I don't understand what is here on the wiki.
Thank you!
X-SuperObject is a runtime library, not a visual component library. The installation is quite easy.
Way 1: Simply put the two files to your project source folder and then you are able to use them without any problems.
Way 2: If you hate to include the files to any of your projects, you can open the Option dialog and goto Environment Options > Delphi Options > Library. You add the path of X-SuperObject to the Browsing Path.
Now you are able to include XSuperObject as any other Delphi native units (i.e. Winapi.Windows, System.SysUtils).

Is it possible to add your own help file to the Delphi XE2 IDE?

For a library I am working on, I have created a help file (Help 2 format). It would be very convenient if the other developpers of my team that use the library, could search the help from inside the Delphi IDE.
Is it possible to make Delphi XE2 search in a custom help file when I press F1 in the Delphi IDE? And if so, how should I do that?
Yes, it is, the same way third-party component vendors do. As you say, use the free Microsoft Help 2 compiler, Help 2 Workshop, available through MS.
Once you've written and compiled your help, you incorporate it into the IDE's help system via H2Reg.exe, which you can find in your $(BDSDIR)\Help\Doc folder. Read the comments in h2reg.ini (in that same folder) for details regarding how to do so.

How to compile a Win32 program from the command line with Delphi

as the title says, I'm trying to compile a Win32 program without the aid of an IDE, just so I can learn. I'm using Borland Studio 2006, and my first thought was to take some files generated from a Forms application from the IDE and compile the project file... that gave me errors about expecting unit and finding object instead. I know that's from the dfm file which holds all the settings for a form, but I don't get how the IDE deals with that file, can anyone help me understand the system better? :)
If I have understood correctly, you need to grasp the structure of a Delphi project and how Forms and units work together. You cannot just cherry-pick some files and expect to be able to feed them to the compiler.
You also have to set the path to the library/components/used files so that the compiler can find everything it needs, starting with the project dpr.
I would recommend that you try first to run your project from the IDE, then once it runs, you can try it from the command line.
I found out all I needed to do is compile the top level unit into a dcu, and then the project will compile :) If anyone else is trying to do the same thing, there's some great info at the bottom of this page
http://www.codexterity.com/raw-delphi/index.htm
WANT automates the process of building, testing, and packaging applications and libraries much like Jakarta Ant does
You wrote in question that you are using BDS 2006. If you want to learn more recent build process in Delphi I suggest you to upgrade at least to Delphi 2007 which introduced MS Build usage.
Of course MS Build acts like "wrapper" so this is not must have but nice have :-)

TurboPower LockBox: how to install

I have download this component and trying to install but,
It is asking too many questions for the installation to continue :(
How do you answer to these,
BPL/DLL output directory?
Include (.inc) directories?
Delphi XE DCU output directory?
Delphi XE DCP output directory?
Delphi XE EXE output directory?
Is there any quides available for installing the component?
thanks in advance
Apparently the LockBox installation cannot read this information from Delphi. You can find the settings in Tools->Options.
The path settings are under Environment Options->Delphi Options->Library.
There you find
- Package output directory (= BPL/DLL output path)
BPLs are special DLLs (packages) that are installed in the IDE. They contain the components.
- DCP output directory (DCPs are used with BPLs when they are installed in the IDE).
You can also choose your own directories, as long as the directory is specified in the system PATH environment variable.
The .inc-directory can be left empty in the installation.
The DCU output directory is for saving the DCUs (compiled units) of the package. You can choose this directory yourself. DCP path, I explained above.
I'm not sure about EXE output directory, but maybe it is used to compile the demo applications too.
It is indeed a little vague to say the least. At the end of the installation, you'll find a link to a feedback forum. Maybe you can share your findings there, so they may improve it in the next version.
It's really simple.
You can just leave all these fields empty, and the defaults will be picked up.
Alternatively you can just deselect the automatic compile option. The installer will then just install the source code, and then you can compile and install by hand. There is a read-me file providing guidance for just that.
I advice you to kindly ask someone proficient in InnoSetup to pack it for you. Unfortunately, I do not have a good command of if but I know it works.
Last edit :
As of version 3.4.1 released on 12-Nov-2011, TurboPower Lockbox was distributed as a good binary but still requires some fair knowledge of package installing.
Please see TOndej's answer to How are Delphi 'environment variables' such as $(BDS) evaluated? for indepth details.
Packing into an alternative binary distribution adressing the expansion of Delphi IDE environnement variables ($(BDS) and the like) may save users from troubles by hiding some complexities.

Write to an EXE in Delphi

I am planning to store the license information of my app to the app itself. Is it possible to write to an EXE in Delphi without affecting its logical function? If yes, How? My colleague says that there are only specific parts of the exe that is writable. Is this true?
Why don't you store the license as a resource in your Delphi app rather than hack the EXE?
Example here: http://delphi.about.com/od/objectpascalide/a/embed_resources.htm
Take a look at http://sourceforge.net/projects/tponguard/
You'll find what you want here.
This An In-Depth Look into the Win32 Portable Executable File that will help you. thehackerslibrary.com. File Resource Management Library (.NET) that may work for you.
Create your license variable with start and stop tags. I don't know anything about Delphi programming but in psuedocode it would look like
var license = "$$$$"+"LICENSE DATA"+"$$$$";
You can open the executable in a hex editor and search for the $$$$ part and edit it directly or you can write a program that will overwrite the bit between the tags.

Resources