Search code examples
delphidelphi-7

Delphi 7 Exe is not working in Non-delphi machine


Recently i got a chance to work on delphi 7. I just created a sample application which display a welcome message and that exe is working fine on Delphi machine. if i moved that exe to non-delphi machine(where delphi is not installed), it is throwing error as "The program can't start beause rtl70.bpl is missing from your computer. Try reinstalling the program to fix the problem".

if i follow the same process with Delphi 5, it is working fine.


Solution

  • You have built the program to rely on runtime packages. That means that each machine that needs to run the program needs to have the runtime packages available.

    There are two solutions:

    1. Distribute the runtime packages that you use alongside the executable.
    2. Disable runtime packages and so build an executable that contains the runtime.

    The runtime packages options are determined by settings specified in the project options.

    Unless you have some compelling reason to use runtime packages, the second option is much simpler because it allows the executable file to stand alone, with no external dependencies.