Create a self extracting archive and launch an installer
If you have used Visual Studio to create an installer, then you will find that their are two output files required for the installation – setup.exe and setup,msi. You can zip these together into a package, but what if you want a single EXE file installer? Well you can use 7-Zip to create a packaged EXE installer which will then execute your Visual Studio installer all in one go.
First of all, you need a few pre-requisites which are listed below:
- 7-Zip should be installed on the machine you are creating the EXE package with
- You need the “7zS.sfx” file which can be downloaded from our Downloads microsite
BeginPrompt="Are you sure you want to install Installer v1.0?"
Then create a folder (lets call it C:package for this guide) and put in the following files:
copy /b 7zS.sfx + config.txt + package.7z package.exe
Note that the “package.exe” is the filename you want to give to your final installer output.
Once you have done this, you should now find that you have a EXE standalone installer – run it and test it to ensure that everything is how you want it to be.
If you have any comments or questions on this guide, please feel free to leave us a message below using our Disqus system.