Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
swdev:zip:self-extracting_zip_files [2018/06/12 11:44] smayr created |
swdev:zip:self-extracting_zip_files [2018/06/13 15:55] (current) smayr [Create the archive] |
||
---|---|---|---|
Line 8: | Line 8: | ||
# Compress files using 7z format, including the '' | # Compress files using 7z format, including the '' | ||
# Copy this new .7z file to '' | # Copy this new .7z file to '' | ||
- | | + | |
== Get the 7z-Extra SFX extension module == | == Get the 7z-Extra SFX extension module == | ||
You need to download the 7z-Extra. | You need to download the 7z-Extra. | ||
- | # [[https://www.7-zip.org/a/7z1805-extra.7z|Download 7-Zip Extra package]] (18.05 version, as @ June 2018, or above) from [[http:// | + | # [[http://downloads.sourceforge.net/sevenzip/7z920_extra.7z|Download 7-Zip Extra package]] (9.20 version) from [[http:// |
# Extract the 7z-Extra files. | # Extract the 7z-Extra files. | ||
# Copy the file '' | # Copy the file '' | ||
- | == Setup your config.txt == | + | == Setup config.txt == |
Created file '' | Created file '' | ||
<code bash> | <code bash> | ||
Line 22: | Line 22: | ||
Title=" | Title=" | ||
BeginPrompt=" | BeginPrompt=" | ||
- | RunProgram=" | + | RunProgram=" |
; | ; | ||
</ | </ | ||
Line 28: | Line 28: | ||
Replace [MYAPP v1.0.0.0] with your product name. | Replace [MYAPP v1.0.0.0] with your product name. | ||
- | See SFX parameters and options for the setup file: [[http:// | + | See SFX parameters and options for the setup file: [[http:// |
- | == CheckPoint == | ||
- | You should now have a folder '' | ||
- | |||
- | # Installer.7z | ||
- | # 7zS.sfx | ||
- | # config.txt | ||
== Create the archive == | == Create the archive == | ||
+ | You should now have a folder '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
Run in command line to create the target file '' | Run in command line to create the target file '' | ||
<code bash> | <code bash> | ||
- | C:\> CD \ | + | C:\> CD C: |
- | C:\> CD Install | + | C:\Install\> COPY /B 7zS.sfx + config.txt + Installer.7z MyInstaller.exe |
- | C:\INSTALL\> COPY /B 7zS.sfx + config.txt + Installer.7z MyInstaller.exe | + | |
</ | </ | ||
In '' | In '' | ||
+ | |||
+ | == References == | ||
+ | * [[https:// | ||
+ | * [[http:// | ||
+ | * [[https:// |