Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6826631
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:10:14+00:00 2026-05-26T22:10:14+00:00

I have a very simple program that consists of a .NET 2.0 exe (Program.exe)

  • 0

I have a very simple program that consists of a .NET 2.0 exe (Program.exe) that calls an x86 Win32 .dll (Lib.dll).

I would like to bundle these into a single self-extracting zip (SFX) called Tool.exe
Tool.exe will extract the files (Program.exe and Lib.dll) into the Windows Temp system directory, and then call Program.exe

This way I can offer a single-file .exe download called Tool.exe and as far as the user is concerned they are just running Tool.exe and not a multi-file program.

WinRAR has SFX capabilities, and ability to auto-launch an extracted .exe, but it doesn’t seem to give you the option to let it extract to the Windows Temp dir (you can specify absolute path, but the Temp dir varies depending on what version of Windows). Also, it pops up a window when extracting, and that’s overkill for my goals of making it appear like the user is just launching my program.

Alternatively, is there a way to bundle the native Lib.dll into my compiled .NET executable, almost like a “resource”?

I’d really like to avoid making a full on MSI or even a regular .exe installer as that is a pain to do, even with simpler installers like NSIS.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T22:10:14+00:00Added an answer on May 26, 2026 at 10:10 pm

    I tend to do this with just 7-zip and UPX, following these directions to make it run a batch file upon execution/extraction. Here’s an example CMD script I use to build the EXE including the files in the .\bin directory:

    pushd %~dp0
    upx --ultra-brute 7zsd.sfx 
    cd Bin
    ..\7za a -mx=9 "..\Program.7z" * 
    cd ..
    copy /b 7zsd.sfx + Config.txt + Program.7z Program_Name.exe
    del Program.7z
    

    The config.txt file reads like this:

    ;!@Install@!UTF-8!
    GUIMode="0"
    RunProgram="runme.cmd" 
    ;!@InstallEnd@!
    

    Your mileage may vary, of course…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to create very simple program that could help my relative to
I have a very simple Java RMI Server that looks like the following: import
So I have a very simple program that reads the 3 first bytes of
I have a very simple program that I am trying to improve performance. One
I have a very simple SDL program that uses only 1MB of memory with
I have created a very simple program that uses recursion. I'm using the g++
I have a very very simple program that parses a csv file that has
I have a very simple ASP.Net MVC Application that I have produced from an
I'm making a very simple WCF (C#, .NET 4.0) licensing program that automatically emails
I have a very simple test program, running on Solaris 5.8: #include <stdio.h> #include

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.