I have a very simple program consisting of .NET 2.0 exe ββ(Program.exe) that calls x86 Win32.dll (Lib.dll).
I would like to combine them into one 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
Thus, I can offer a single-file .exe download called Tool.exe, and as far as the user is concerned, they just run Tool.exe, and not a program with several files.
WinRAR has SFX capabilities and the ability to automatically run the extracted .exe file, but it does not seem to give you the ability to allow it to be extracted to the Windows Temp directory (you can specify the absolute path, but Temp dir depends on the version of Windows). In addition, it extracts the window upon extraction, and this superfluous for my purposes to make it look like a user just launches my program.
Alternatively, is there a way to associate the native Lib.dll with my compiled .NET executable, almost like a βresourceβ?
I would really like for me not to make a full-fledged MSI or even a regular .exe installer, since it hurts to do this even with simpler installers like NSIS.
source share