Is it possible to execute a file after extraction from a 7-Zip self-extracting archive (SFX) archive?
Problem
I'm try to make a compressed deploy-able application. Currently I'm taking a set of files that I've published from my IDE (Visual Studio 2008 - WPF published application) and compressing them in a 7-Zip SFX archive. My users have asked if they can "one click install" from the 7-Zip exe. There is a parameter list when I'm creating the archive. Is there a way to set some sort of combination of parameters to invoke the installer executable that is extracted? Unfortunately the 7-Zip documentation doesn't seem to cover this scenario. I've seen several paid applications that do something similar to this, but I'm trying to keep the tool that I'm writing free of licensed code so that we can use it internally.
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Fix for: Is it possible to execute a file after extraction from a 7-Zip self-extracting archive (SFX) archive?
You will need to download the LMZA SDK from 7-Zip. The "installer.txt" file contains documentation: 7zSD.sfx is SFX module for installers. 7zSD.sfx uses msvcrt.dll. SFX modules for installers allow to create installation program. Such module extracts archive to temp folder and then runs specified program and removes temp files after program finishing. Self-extract archive for installers must be created as joining 3 files: SFX_Module, Installer_Config, 7z_Archive. Installer_Config is optional fi…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix