Extract MSI Files From EXE: 4 Ways to Do It With Ease

You can make use of a dedicated MSI to EXE extractor tool

by Sagar Naresh
Sagar Naresh
Sagar Naresh
Content Analyst
Sagar is a web developer and technology journalist. Currently associated with WindowsReport and SamMobile. When not writing, he is either at the gym sweating it out or playing... read more
Reviewed by Alex Serban
Alex Serban
Alex Serban
Windows Server & Networking Expert
After moving away from the corporate work-style, Alex has found rewards in a lifestyle of constant analysis, team coordination and pestering his colleagues. Holding an MCSA Windows Server... read more
Affiliate Disclosure
  • Several users asked us how to easily extract MSI from EXE files.
  • You can easily extract MSI files from the temporary folder, as described below. 

The MSI file extension stands for Microsoft Software Installer, which is mainly used by Windows applications and update packages that are installed on the OS. The main difference between MSI and EXE files is that EXE may often simply launch the program when double-clicked, whereas an MSI file will always contain installers.

There are a bunch of ways via which you can extract MSI from EXE and use the installer on your PC. In this guide, we will show you all the different ways to extract MSI from EXE. Do note that none of the solutions are universal. Let us check out the different methods.

What is an MSI file format and how can I open it?

MSI file format is not only used by Windows when installing updates, even third-party developers also make use of MSI files. You will often see both EXE and MSI files together when you download a program.

An MSI file is known to contain all information and files associated with the installation. This includes the files where they are required to be installed such as registry entries.

Notably, in order to open an MSI file, all you need to do is double-click on it, just like you would do on any other EXE file. However, MSI files are packed in an archive-like format, which can be extracted by using an UNZIP tool. You can even edit the MSI files just like you would edit a DOC or XLSX file.

How can I extract MSI from an EXE file on my PC?

1. Extract MSI files from the temporary folder

  1. Launch the EXE file.
  2. When you see the first prompt or page, which would usually be where you would like to install the program or license agreement, do not click anything and do not close it.
  3. Press the Win + R keys to open the Run dialogue.
  4. Type %temp% and press Enter to open the Temporary folder.
  5. Sort the files by the modification date.
  6. The newest file would be your MSI file.
  7. Copy the MSI file to a new location.
  8. Close the installer prompt.

Note that as soon as you will close the installer prompt, the MSI file from the temporary folder will disappear. So, make sure to copy and paste the MSI file to a different location before closing the temporary folder.

Expert tip:

SPONSORED

Some PC issues are hard to tackle, especially when it comes to corrupted repositories or missing Windows files. If you are having troubles fixing an error, your system may be partially broken.
We recommend installing Restoro, a tool that will scan your machine and identify what the fault is.
Click here to download and start repairing.

This is one way of extracting the MSI file from an EXE file. However, do note that, as already mentioned, this solution isn’t universal. Meaning, it may or may not work with every EXE file that you have. So, in case this doesn’t work, jump to the next method.

2. Use an extraction tool

  1. Download an extraction tool such as 7-zip on your PC.
  2. Install it.
  3. Right-click on the EXE file, select 7-Zip, and Open Archive.
  4. Do not extract any files.
  5. Locate the MSI file within the contents of the EXE file. (Note that most often the MSI files may have misleading names with no extensions)
  6. Extract the MSI file to a different folder.
  7. Change the names of the extracted files and add .MSI extension.
  8. If there are two files, then the larger one is the 64-bit installer, and the smaller one is the 32-bit installer.

This method again works with some EXE files, but with others, you won’t be able to extract the MSI files.

3. Use an elevated Command Prompt (for InstallShield based projects)

  1. Open the Start menu.
  2. Open Command Prompt as an admin.
  3. Type the below command and press Enter. <file.exe> /s /x /b"<folder>" /v"/qn"
    • Replace file.exe with the name of the EXE file.
    • In place of <target folder> enter the location where you would like the MSI file to be extracted.
  4. Close the command prompt.
  5. Open the folder where you have extracted the MSI file.

Here /s silently uninstall the program /x from the system. Moreover, /b defines the target path of the MSI file. while /v passes the arguments to the installer.

4. Use a dedicated tool

  1. Download MSI Wrapper from the official website.
  2. Install the program on your PC.
  3. Launch the MSI Wrapper.
  4. Click Next.
  5. Enter the file name of the EXE or browse its location.
  6. Type the MSI file output name.
  7. Click Next.
  8. Keep the default values intact and hit Next.
  9. Click Next in the Properties, Parameters, and Actions pages.
  10. Hit the Build button on the Summary page.
  11. After the MSI package is built, click Install MSI.

This is a much more easy way to extract MSI from an EXE file. Every process is handled by the software and all you need to do is input a few settings.

If you are having issues opening an EXE file, then we have a guide that lists 6 ways how you can fix the problem and open the EXE file.

There are some users that have reported that EXE files are self-deleting from Windows. This can be fixed by following the mentioned guide.

Let us know in the comments below, which one of the above solutions you used to extract MSI from an EXE file.

Still having issues? Fix them with this tool:

SPONSORED

If the advices above haven't solved your issue, your PC may experience deeper Windows problems. We recommend downloading this PC Repair tool (rated Great on TrustPilot.com) to easily address them. After installation, simply click the Start Scan button and then press on Repair All.