delphiruntime-packages

Link with runtime packages


When i build a project with "Link with runtime packages" set to true the output exe is very small, on my pc the exe is working fine but some people get the error that rtl190.bpl is missing. How can i fix this? I still want a small output file.


Solution

  • As the error states, you're missing the file rtl190.bpl from the users PC.

    While compiling with runtime packages will result in a smaller .exe file, you still need to distribute all associated .bpl files with your .exe. .BPL files are effectively DLL files so your program still needs them to operate correctly.

    What you'll find is, for example, rtl190.bpl is a very big file unto itself, so if your ultimate goal is to produce the smallest distribution file(s), I wouldn't compile with runtime packages. Just compile into a "fat" binary, and a single .exe. If you use 3rd party components too, you'll need to distribute those files (.bpl) too and you'll end up finding that the final total size of files is far greater than a single compile .exe