10

I can't figure out what the difference is between the 7z.sfx file available with 7zip and the downloadable 7zsd.sfx from the developer's site, which is not bundled with 7zip. The 7z.sfx appears not to honor my request to include the config.txt file I created for it, but the 7zsd.sfx inclusion method works perfectly.

7zip comes with 7z.sfx bundled. The application history.txt in the program files directory shows that 7zsd.sfx used to be bundled with 7zip back in 2005. 7z.sfx is referred to as "uncompressed SFX" in the history.txt file as well.

This is the config used:

;!@Install@!UTF-8!
InstallPath="C:\\ProgramData\\IT"
GUIMode="2"
;!@InstallEnd@!

This is the syntax I'm using and the responding behavior:

C:\Users\<me>\Desktop\Updater\Recorder>copy /b 7z.sfx + config.txt + "RecorderVer0.0.0.4".7z "RecorderVer0.0.0.4".exe
7z.sfx
config.txt
RecorderVer0.0.0.4.7z
        1 file(s) copied.

The same response occurs with the use of 7zsd.sfx indicating that indeed the config file included is being utilized. However, when executing the 7z.sfx created RecorderVer0.0.0.4".exe the prompt for where to install the contents of the 7z archive is prompted for. Using the 7zsd.sfx created RecorderVer0.0.0.4.exe version directs files to the config set location without any prompting as desired.

To my knowledge 7z.sfx is not downloadable via the developer's site, but I may be wrong. His official page is no longer available, but the information provided from the Internet Archive should be adequate.

Sn3akyP3t3
  • 656
  • 4
  • 10
  • 23
  • 1
    I found the answer to my question in 7-Zip documentation of all places! :) Looks like there are a total of 4 sfx modules and these are the differences: SFX_Module : Description; 7z.sfx : Windows version.; 7zCon.sfx : Console version. ; 7zS.sfx : Windows version for installers.; 7zSD.sfx : Windows version for installers (uses MSVCRT.dll). http://sevenzip.sourceforge.jp/chm/cmdline/switches/sfx.htm – Sn3akyP3t3 Apr 18 '12 at 17:49
  • If you are looking for the latest versions of 7zS.sfx and 7zSD.sfx see http://stackoverflow.com/questions/41402365/where-can-i-find-the-latest-7zip-7zs-sfx-and-7zsd-sfx-files – Sn3akyP3t3 Dec 30 '16 at 20:36

3 Answers3

12

I had this previously posted as a comment to my own question.

I found the answer to my question in 7-Zip documentation of all places! :) Looks like there are a total of 4 sfx modules and these are the differences:

SFX_Module : Description

Acquiring the 7zS.sfx and/or 7zSD.sfx stuffs is easy:

The installers are on the official download page. Just look for keyword 7-Zip Extra. Version 9.20 for example is https://www.7-zip.org/a/7z920_extra.7z

Community
  • 1
  • 1
Sn3akyP3t3
  • 656
  • 4
  • 10
  • 23
  • 3
    ... but what does "for installers" mean, and what does "uses MSVCRT.dll" imply? – Zero3 Oct 05 '14 at 00:07
  • 1
    @Zero3 "for installers" is aimed at those that wish to use the module to create a self extracting archive that does installation and cleans up after itself. MSVCRT.dll is a C++ runtime library: http://en.wikipedia.org/wiki/Microsoft_Windows_library_files#MSVCRT.DLL_and_MSVCPP.DLL When you see file offered with or without the dll its likely how it was commpiled. In this case it looks like a 35 KB diff. http://stackoverflow.com/questions/1073509/should-i-redistribute-msvcrt-dll-with-my-application – Sn3akyP3t3 Nov 25 '14 at 02:28
  • 2
    "uses MSVCRT.dll" means your self-extracting archive won't run on vanilla Windows 95 or Windows 95 OEM Service Release 1, unless some other application has installed MSVCRT.dll on that box. But it will run on Windows 95 OEM Service Release 2, and Windows 98 and all later versions. So nowadays you probably won't have to worry about the difference unless you work in a computer museum. – Silas S. Brown Jul 26 '18 at 20:39
8

Just in case anybody stumbles across this post looking for the 7zS.sfx and 7zSD.sfx, you can find the 7z_extra files for the (currently) latest version at http://sourceforge.net/projects/sevenzip/files/7-Zip/9.22/7z922_extra.7z/download.

Jake Weber
  • 301
  • 3
  • 7
3

I was also looking for the other sfx modules and managed to find them in the related LZMA SDK archive on the actual 7-zip website:

https://www.7-zip.org/sdk.html

Download the latest version of the LZMA SDK and look in the bin folder.

browly
  • 352
  • 6
  • 11
Dfaure
  • 564
  • 7
  • 26