A tool to merge exe, dll, and other program files or folders into a single executable.
This project is licensed under the AGPL-3.0 License.
ExeMerger is a tool designed to merge executable files (exe), dynamic link libraries (dll), and other program files or folders into a single executable file. This can be particularly useful for deploying applications in a single, self-contained executable.
- .NET Core SDK
- PowerShell
-
Clone the Repository:
git clone https://github.com/Gnayoah/ExeMerger.git cd ExeMerger
-
Replace
installer.zip
andinstaller.exe
:- Place your zipped files (containing the necessary exe, dll, and other files) in the root directory of the project and rename it to
installer.zip
. - Replace
installer.exe
with your executable file name inside the zip archive.
- Place your zipped files (containing the necessary exe, dll, and other files) in the root directory of the project and rename it to
-
Build and Publish the Project:
Use the following command to publish the project as a single executable:
dotnet publish -r win-x64 --self-contained true -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true -p:PublishTrimmed=true -o ./publish
This command will create a single executable in the
./publish
directory. -
Run the Executable:
After publishing, run the generated executable file. The program will:
- Extract
installer.zip
to the Temp directory. - Execute
installer.exe
.
- Extract
For any issues or questions, please open an issue on the GitHub repository.
- Gnayoah - Gnayoah.com