Recent

Author Topic: Library: Embed DLL in EXE  (Read 1136 times)

Tomxe

  • New Member
  • *
  • Posts: 47
Library: Embed DLL in EXE
« on: April 23, 2025, 09:57:37 pm »
Here's a small wrapper which works in 64 bit Lazarus under Windows:
https://github.com/Xelitan/XelitanMem---embed-DLL-in-EXE

It allows you embed any number of DLLs into your EXE and use them without unpacking to disk. Supports gzip compression.

eldonfsr

  • Hero Member
  • *****
  • Posts: 572
Re: Library: Embed DLL in EXE
« Reply #1 on: May 10, 2025, 06:04:53 pm »
wow this great idea.... let me test....

440bx

  • Hero Member
  • *****
  • Posts: 6340
Re: Library: Embed DLL in EXE
« Reply #2 on: May 10, 2025, 08:31:28 pm »
That can potentially be very useful.  I'll definitely try it out.

Thank you for sharing that.
FPC v3.2.2 and Lazarus v4.0rc3 on Windows 7 SP1 64bit.

Thaddy

  • Hero Member
  • *****
  • Posts: 18945
  • Glad to be alive.
Re: Library: Embed DLL in EXE
« Reply #3 on: May 10, 2025, 09:37:10 pm »
Very old idea, but useful. A 32 bit version is available from https://www.delphibasics.info/home (About 25 years old to be exact.)
But it might be time to have a 64 bit version.
Recovered from removal of tumor in tongue following tongue reconstruction with a part from my leg.

bobby100

  • Sr. Member
  • ****
  • Posts: 301
    • Malzilla
Re: Library: Embed DLL in EXE
« Reply #4 on: May 11, 2025, 03:30:57 pm »
I guess the antivirus software will go nuts when it finds that something is unpacking an executable directly to RAM.

Thaddy

  • Hero Member
  • *****
  • Posts: 18945
  • Glad to be alive.
Re: Library: Embed DLL in EXE
« Reply #5 on: May 11, 2025, 03:43:31 pm »
Indeed, it was not a very smart idea 25 years ago and it still is not.
Recovered from removal of tumor in tongue following tongue reconstruction with a part from my leg.

 

TinyPortal © 2005-2018