How to get the files out of a Windows .exe or .msi on a Mac
A Mac can’t run a Windows .exe or .msi. But often you don’t need to run it:
you need what’s inside, like a driver file, a font, a manual or a game’s data.
Many Windows installers are just a container around those files, and a Mac can
unpack them without running anything.
Which tool works depends on what kind of installer it is. Here’s what I tested on macOS 27, and what each one needs.
First: do you want to run it, or unpack it?
If you want to use the Windows program, unpacking won’t help. You need something that runs Windows software: CrossOver or Wine for many programs, or a full copy of Windows in Parallels Desktop or UTM. The rest of this page is about getting files out.
Self-extracting archives: a ZIP, 7z or RAR in disguise
Some .exe files are an ordinary archive with a small Windows program stuck to
the front, which unpacks the rest when you run it on Windows. The archive is
still there, and a few tools look past the program to find it.
I tested this with files built the same way: a real Windows program followed by a ZIP or a 7z, plus 7-Zip’s own self-extractor format.
| Tool | ZIP inside | 7z inside |
|---|---|---|
unzip (built in) | Yes | No |
tar (built in) | Yes | Usually |
7zz (7-Zip, from Homebrew) | Yes | Yes |
The built-in tar only looks for a 7z near the start of the file. It read one
behind 7-Zip’s standard self-extractor but not one behind a larger program.
Finder won’t open an .exe with Archive Utility at all.
So for a ZIP inside, the built-in Terminal tools are enough:
mkdir -p ~/Desktop/unpacked
tar -xf ~/Downloads/setup.exe -C ~/Desktop/unpackedFor a 7z inside, install 7-Zip’s command-line tool with Homebrew and use it the same way. 7-Zip reads RAR too, though I only tested a 7z:
brew install sevenzip
7zz x ~/Downloads/setup.exe -o"$HOME/Desktop/unpacked"If 7zz lists sections called .text, .data and .rsrc instead of files,
there’s no archive in there for it to find. It’s showing you the parts of the
Windows program itself. Try the installer-specific tools below.
.msi files
An .msi is a Windows Installer database, with the files packed inside it.
Two tools read them on a Mac. I tested both on 7-Zip’s own .msi:
msiextract(frombrew install msitools) unpacked it with the real folder structure and file names, under aFilesfolder.7zz xgot the files out too, but flat, using the installer’s internal names. Fine for grabbing one file you recognize, confusing for anything bigger.
brew install msitools
mkdir -p ~/Desktop/unpacked
msiextract -C ~/Desktop/unpacked ~/Downloads/installer.msiThe built-in tar doesn’t read .msi files.
Inno Setup installers
Inno Setup is one of the most common ways Windows software is packaged. Its
installers have their own format, and innoextract is the tool for it:
brew install innoextract
mkdir -p ~/Desktop/unpacked
innoextract -d ~/Desktop/unpacked ~/Downloads/setup.exeThe catch is age. The current innoextract (1.9) handles installers made with
Inno Setup up to 6.0.5. I tested it on two current Inno Setup installers, made
with versions 6.7 and 7.1, and it couldn’t read either. 7zz can’t unpack them
either. For a recent Inno Setup installer, there may be no way to get the files
out on a Mac without running it under Windows.
.cab files
A .cab is a Microsoft Cabinet archive, often used for drivers and Windows
updates. cabextract (from Homebrew) unpacks them, and Purrchiver opens them
too.
With Purrchiver
New in Purrchiver 1.1. If you don't see it, update Purrchiver from the App Store.
Purrchiver opens most self-extracting .exe files as the ZIP, RAR or 7z
inside. Use File ▸ Open, drag the file onto Purrchiver, or right-click it in
Finder and choose Services ▸ Open using Purrchiver; double-clicking an
.exe won’t open it in Purrchiver. The program is never run. The window says what it is,
and editing is turned off, because saving would drop the program in front of
the archive. Extracting is free. A ZIP is found behind a program of any size; a
7z or RAR has to start within about the first half-megabyte, which covers
7-Zip’s standard self-extractors.
For any other .exe or .msi, Purrchiver says it’s a Windows program rather
than an archive, and doesn’t try to run it. Use one of the tools above.