• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 311
  • Last Modified:

Stand-Alone compiler switches?

Silly question, but it's been awhile since I've done this. I have Delphi 2.0 and have created a one-form small code program to deal with a text file. My question is what switches in the compiler directives and linker area should be set in order to generate a stand-alone application that's ready to use on another computer? I am not using any portion of the BDE, just reading a text file.

Thanks in advance for your assistance!
1 Solution
there is a file in the delphi directory called deploy.txt it should explain it all fairly well.
basically you shouldnt need to change any directives but dont quote me on that as i skipped from d1 to d3 so are unsure of d2 requirements.
regards :-)
Hi Pegassus,

   Sorry if I didn't get you right. But if you don't change anything it doesn't generate a stand alone application already?

yes it would but some of the runtime packages may need to be installed also on the client pc (unless they have any other delphi apps that have installed them already in windows\system).
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Hi Pegasus,

   Make the following line the first line of your unit(s) and you're probably done.
   if not. Let us know.


Pegasus100397Author Commented:
Hey all, the .EXE copy on my FDD was flaked. The HDD version worked fine, apparently all was intact.

The advice given here was great, all of it. Please advise on how I can split the credits.

Thanks Inthe & Rarigo.
The only thing you need to do to produce a standalone exe is make sure the "compile with packages" checkbox is cleared in the project options.  This will insure that *everything* you need is put into the exe, and no .dpl files will be needed.  
Good Grief...


Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now