Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Extract MSI from EXE

I want to extract the MSI of an EXE setup to publish over a network.

For example, using Universal Extractor, but it doesn't work for Java Runtime Environment.

like image 200
emdadgar2 Avatar asked Oct 10 '09 12:10

emdadgar2


People also ask

How do I extract an MSI from an exe?

Run Windows Command Prompt (cmd) (in Windows 10: open the Start menu, type cmd and press Enter) and go to the folder where your EXE file is located. replace <file.exe> with the name of your .exe file and <target-folder> with the path to the folder where you want the . msi file to be extracted (for example C:\Folder).

Can you convert an exe to MSI?

Convert EXE to MSI using a free utility Alternatively, you may use one of the free MSI converters, such as MSI Wrapper. MSI Wrapper allows to easily convert any .exe file into an MSI package, and also delivers premium features for software developers as part of its Pro offering.

Can you extract files from exe?

When you open the EXE file in 7-Zip, you'll be shown a list of files and folders that the EXE file contains. You can double-click folders to see the files stored inside. You can select multiple files by holding Ctrl and clicking each one. Click the "Extract" button after selecting the files.

Do all exe have MSI?

While an MSI is used only with installers, this is not the case with EXE. Any application requires having at least one EXE file as it is needed to start the processes of the application. Even programs installed with either an EXE or an MSI will have one or more EXE files.


1 Answers

For InstallShield MSI based projects I have found the following to work:

setup.exe /s /x /b"C:\FolderInWhichMSIWillBeExtracted" /v"/qn" 

This command will lead to an extracted MSI in a directory you can freely specify and a silently failed uninstall of the product.

The command line basically tells the setup.exe to attempt to uninstall the product (/x) and do so silently (/s). While doing that it should extract the MSI to a specific location (/b).

The /v command passes arguments to Windows Installer, in this case the /qn argument. The /qn argument disables any GUI output of the installer.

like image 83
Daniel Dreibrodt Avatar answered Sep 21 '22 17:09

Daniel Dreibrodt