C ++ builder how to configure compiler to output exe only?

the question is how to configure the C ++ builder 2010 options in the compiler and debug to output only one exe file, as well as all the others inside it, so that I can easily use the program on another computer without installing them, just by running the exe file.

+4
source share
3 answers

For all versions of C ++ Builder, you do not need to install an installer for this (although the intro setup is just brilliant if you need it).

Just select the following project options: -

  • Project / Packages: Build with Runtime = DISABLED packages
  • C ++ / Linker: Dynamic RTL = FALSE

What is it. You will get one exe without any dependencies (except for any third-party DLL that you use. All of your VCL components (including third-party ones) will be statically linked.

I use this mode for all production builds (although I use the Inno Setup installer to control the installation and uninstall process for clients).

+8
source

In addition to Roddy's answer:
Do not forget to disable CodeGuard (Project-> Options-> Codeguard), or your program will fail with any computer on which the CodeGuard DLL is not installed!

+2
source

It looks like you are looking for installer . I recommend Inno Setup , I found it very easy to use for a project that I recently did.

0
source

All Articles