Questions tagged [sfx]

A self-extracting archive (SFX) is a computer executable program which contains data in an archive file combined with machine-executable program instructions to extract this information.

On executing the program under an operating system which supports it, the archive contents are extracted. Non-self-extracting archives contain the data files only, which need to be extracted with a compatible program. Self-extracting archives cannot self-extract under a different operating system, but can be opened with a suitable program.

Several programs can create self-extracting archives.

For Windows there are:

  1. WinZip
  2. 7-Zip
  3. WinRAR
  4. WinUHA
  5. KGB Archiver

For Macintosh there are:

  1. StuffIt
  2. The Unarchiver
  3. 7zX

Read more

89 questions
1
vote
0 answers

How to execute a 7zip sfx with extra command line parameters

I have an installer (installer.msi) and I made a self-extracting 7zip with a config file. Here's my config file : ;!@Install@!UTF-8! ExecuteFile="Installer.msi" ExecuteParameters="TARGETDIR=\"[DirectoryPath]\" ALLUSERS=1" ;!@InstallEnd@! These…
1
vote
1 answer

Problem extracting SFX during WiX-based install

I have the following code in my WiX project
codewario
  • 19,553
  • 20
  • 90
  • 159
1
vote
2 answers

FindResource fails

I have a piece of code like this IDB_PNG1 PNG "images\\list-back.png" HRSRC hrsrc = FindResource(module, MAKEINTRESOURCE(IDB_PNG1), TEXT("PNG")); this works fine, But I can not make it work any of the…
cprogrammer
  • 5,503
  • 3
  • 36
  • 56
1
vote
2 answers

Error Creating a 7-zip installer package

If this is not the correct place to ask this, I apologize. I use 7zip to create an installer package. Recently, my computer was updated, and I can no longer get it to work. I use a Windows Installer from Visual Studio 2010 to create the installation…
Tim
  • 2,731
  • 9
  • 35
  • 72
1
vote
1 answer

Why does a batch file executed from a WinRAR SFX not work on accessing hosts file?

This batch code works on running the batch file directly: set %windir%\system32\drivers\etc\hosts attrib -r %hosts% pause But it does not work as expected on packing this batch file into a WinRAR self-extracting archive and running it automatically…
SamWocal
  • 21
  • 2
1
vote
1 answer

Batch script does not run in temporary folder after decompressing SFX WinRAR file

I have a program with a separate setup for 32 and 64 bits. My goal is to create a single executable that can run the appropriate setup. So I created a folder and placed the two setups inside, then wrote the following script: @echo off if…
Alegom
  • 105
  • 1
  • 2
  • 10
1
vote
0 answers

Powershell code runs differently when run from a WinRAR SFX executable

I have a lot of powershell modules that I have been working on, and I have been tasked with distributing them as a single executable. I made a batch script to run my powershell stuff and I am using that batch script as the target of a WinRAR SFX…
Jake Sandler
  • 162
  • 1
  • 8
1
vote
0 answers

Applying code signing for 7zip SFX (self extracting exe)

I have code signing applied to the windows exe. And then we create an SFX (self extracting exe) with that windows exe and a json data file using the following commands. "C:\Program Files\7-Zip\7z.exe" a -t7z abc.7z…
AeJey
  • 1,447
  • 20
  • 40
1
vote
1 answer

Delphi - Make a Delphi program that Self-extract a MIDI file

I'm writing a program in Delphi 7, and I think in put a music to run in Background. So, I composed a song in .MIDI called Song.MID, now I want to put my Delphi program to self-extract(SFX) this song and execute, in the end of the program delete it.…
Adriano rox
  • 173
  • 1
  • 8
1
vote
2 answers

Create WinRAR SFX with admin rights by command line

I need to create WinRAR SFX archive that should work with admin permissions on Windows 7. I can make it with WinRAR GUI but I need to make it with WinRAR command line interface (to integrate it into build process). At the moment my script is like…
valker
  • 123
  • 1
  • 2
  • 15
1
vote
1 answer

SFX with 7-zip : Is it possible to run a included .bat file *before* extracting the files?

I'm creating a SFX executable with 7-zip (command line version) and the 7zsd.sfx module. My current config file looks like this : ;!@Install@!UTF-8! Title="Test" BeginPrompt="Test" CancelPrompt="Do you want to cancel the…
electrotype
  • 8,342
  • 11
  • 59
  • 96
1
vote
1 answer

Showing a progress bar while SFX archive is extracting

I'm writing a program with C++ and by native Win32 API. I'm creating a process from a SFX archive EXE in silent mode that no GUI is shown to user. But I want to show a progress bar in my application, while the SFX archive extracting. How can I do…
frbry
  • 499
  • 2
  • 12
  • 25
1
vote
2 answers

Protecting Content Files

I want a simple layer of protection for my content (resource) files in my application. For example, I have various sound and image files used in my application. I think, I can wrap them in a SFX archive (Probably packed with WinRAR), then in my…
frbry
  • 499
  • 2
  • 12
  • 25
1
vote
2 answers

7zip sfx is executing RunProgram before it extracts all the files

I have a 7 zip self extracting exe, it is archived as shown below: [mainfolder] start.exe (a C++ bootstrapper) [subfolder] (contains all my applications assemblies and executable Now my config.txt is running the start.exe (through…
1
vote
1 answer

WinRar -sp<> flag not working with self-extractors

I was using Winrar 3 to create self extractors and was using -sp flag to pass the arguments to the executable bundled inside. It was working fine. After I updated WinRar to 5.1, it stopped working. -sp<> flag is no longer working for me. Does anyone…
Vikram Singh
  • 1,726
  • 1
  • 13
  • 25