Windows 10 / Create a Self-Extracting EXE with IExpress

In Windows 10, open IExpress and choose Extract files only to make an EXE that unpacks its files to a selected folder. This example packages two text files without performing an installation.

Prepare the files and output folders

Create two distinctly named files, such as readme.txt and notes.txt, in a working folder and give them different text in Notepad. Choose a location for the EXE and prepare an empty test folder. For ordinary document sharing where an executable is unnecessary, a ZIP file with Windows’ extraction feature is simpler.

Microsoft guide to ZIP files in Windows

Start a new IExpress package

  1. Press Windows+R, type iexpress.exe, and open it. In the wizard, select Create new Self Extraction Directive file.
  2. Under Package purpose, choose Extract files only. This extracts the files to a location the recipient chooses. Enter a descriptive name under Package title.
  3. Configure the confirmation and license pages according to what you distribute. For a personal test with your own files and no separate license document, keep the defaults.

Add the files and save the EXE

  1. Under Packaged files, select Add and choose readme.txt and notes.txt. Confirm that both files are listed. Change the window and finished message settings only if your test needs them.
  2. Under Package Name and Options, choose Browse and set the output file to sample-package.exe in a folder you can write to. Save an SED file if you want to reuse the wizard settings. An SED stores settings, so keep the original files to rebuild the package.
  3. On the package creation page, select Next to build it, then select Finish. Check that sample-package.exe exists in the output folder.

Microsoft documentation for the IExpress Wizard and SED files

Check extraction in a separate folder

  1. Run the sample-package.exe you just created and choose an empty test folder for the extracted files. Selecting the source folder can create file name conflicts.
  2. Check that both extracted files have the expected names and contents. If one is missing, confirm that the wizard listed both source files and rebuild. If creation fails, start by checking whether you can write to the output folder.