Recent

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

Tomxe

  • New Member
  • *
  • Posts: 46
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: 548
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: 5268
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.0.4 and Lazarus 1.8.2) or (FPC v3.2.2 and Lazarus v4.0rc3) on Windows 7 SP1 64bit.

Thaddy

  • Hero Member
  • *****
  • Posts: 16937
  • Ceterum censeo Trump esse delendam
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.
Due to censorship, I changed this to "Nelly the Elephant". Keeps the message clear.

bobby100

  • Sr. Member
  • ****
  • Posts: 274
    • 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: 16937
  • Ceterum censeo Trump esse delendam
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.
Due to censorship, I changed this to "Nelly the Elephant". Keeps the message clear.

 

TinyPortal © 2005-2018