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.
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).
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With