
Look in c:\Install and you will now see you have a MyInstaller.exeĭouble click on MyInstaller.exe and it will prompt with your message.In the command window type the followingĬopy /b 7zS.sfx + config.txt + Installer.7z MyInstaller.exe.
Open a cmd window, Window + R -> cmd -> press enter. These instructions I found on the web but nowhere did it explain any of the 4 steps above. You should now have a folder "c:\Install" with the following 3 files: Notes on the parameters and options for the setup file are here CheckPoint Click the "Encoding Menu" and choose "Encode in UTF-8"īeginPrompt="Do you want to install SOFTWARE this replacing with your product name. right-click and choose "Edit with NotePad++. right-click and choose "New Text File" and name it config.txt. Using windows explorer go to c:\Install. I would recommend using NotePad++ to edit this text file as you will need to encode in UTF-8, the following instructions are using notepad++. You need to download the 9.20 version (as May-2015) as the beta does not contain the correct files. Follow this link to go to download 7Zip. Step 3 - Get the 7z-Extra sfx extension module Name your archive "Installer.7z" (or a name of your choice). Right-Click and choose 7Zip -> "Add to Archive". This is where we will copy all the required files. To make this easy create a folder c:\Install. How to make a self extracting archive that runs your setup.exe with 7zip -sfx switch Step 1 - Setup your installation folder I have created step by step instructions on how to do this as I also was very confused about how to get this working. If I kept the name a.exe and setup.exe to the a and also added the archive.exe file into it using the previous script, and all it did was extracting the file into the local folder instead of executing it. Do I use archive.exe instead of a.exe? And if I do that, I get an error saying archive.exe is not a supported archive type.
I need to compress the setup.exe file so I use the following script. Now further down in the documentation it tells you how to add a file.
Here is how the config.txt file look like: 4.00"īeginPrompt="Do you want to install the 7-Zip will generate archive.exe. This will generate an archive.exe that will have the config.txt file to run the appropriate program. Here is where I'm stuck first to create an SFX file you need to call the following script: copy /b 7zS.sfx + config.txt + archive.7z archive.exe I'm using the 7-Zip 32 bit and the 7-Zip extra 32 bit. I followed the documentation, but I wasn't able to get any close. I'm playing around with 7-Zip to create a self-extracting archive (SFX) executable.