MSI vs EXE: which installer to ship for a Windows app
An MSI is a database that Windows reads and installs for you. An EXE installer is a program that does the installing itself. Here's how they differ on silent installs, company deployment, repair, signing and updates, and which one to ship.
Both an .msi and a setup .exe put your app on a Windows computer. They get there in different ways.
An MSI is a data file. It holds a database describing what to install, and a Windows service called Windows Installer reads it and does the work. An EXE installer is a program. It was built with a tool such as Inno Setup or NSIS, and it copies files and changes settings however its author scripted it.
The short answer:
- Selling to individuals from your website? Ship an EXE installer. It's quicker to build and it can look and behave however you like
- Selling to companies whose IT team deploys software? Ship an MSI, or offer one next to the EXE. It's the format their tools expect
- Not sure? Start with an EXE and add an MSI the first time a customer's IT department asks for one
Everything below was checked against Microsoft's documentation and each tool's own documentation on November 26, 2026.
MSI vs EXE at a glance
| MSI | EXE installer | |
|---|---|---|
| What it is | A database that Windows Installer reads | A program that runs its own install steps |
| Who does the installing | Windows, through msiexec.exe |
The setup program |
| Silent install | The same switches for every MSI: /quiet or /qn |
Depends on the tool: /SILENT for Inno Setup, /S for NSIS |
| Custom steps | Custom actions, which take extra authoring | Anything you can script |
| If the install fails halfway | Rolls back automatically by default | Whatever the setup program does |
| Repair | Built in: msiexec /f |
Only if you build it |
| Uninstall | Built in: msiexec /x |
An uninstaller the tool generates |
| Group Policy deployment | Yes | Not the documented route |
| Intune | Added directly as a line-of-business app | Wrapped first with Microsoft's Content Prep Tool |
| Customising for one company | Transform files (.mst) |
Command-line parameters, if you add them |
| Code signing | Supported | Supported |
| Auto updates | Not included | Not included |
What an MSI file is
An .msi is a Windows Installer package. Microsoft's documentation says it contains "an installation database, a summary information stream, and data streams for various parts of the installation". The database is relational: tables listing the files, registry entries, shortcuts and features that make up your app.
You don't run an MSI. Windows runs it for you, through msiexec.exe, which Microsoft describes as "the app you use to interpret packages and install products".
Because the package only describes the result you want, Windows knows exactly what was installed. That's where the format's strengths come from:
- Rollback. While installing, Windows Installer "simultaneously generates a rollback script". If the install fails, it "automatically performs a rollback installation that returns the system to its original state". This is the default
- Repair.
msiexec /frepairs an installed product. It can put back missing files, shortcuts and registry entries without running setup again - Uninstall.
msiexec /xremoves the product, using the same tables it was installed from - Transforms. An administrator can apply a
.mstfile, "a collection of changes applied to an installation", to adjust your package for their company without touching the original
The cost is flexibility. Most installs are covered by the standard actions. Anything else needs a custom action, and Microsoft notes that an installation with custom actions needs "additional authoring" for rollback to keep working.
What an EXE installer is
An EXE installer is an ordinary program whose job is to install another program. You write a script, a tool compiles it together with your files into one setup.exe, and that program runs on the customer's machine.
Nothing about it is standardised. The screens, the order of steps, the switches it accepts and how thoroughly it uninstalls are all decided by the tool and by you. That's the appeal and the risk. You can check for a prerequisite, download a component, migrate settings from an old version or show a custom page, with a few lines of script. And if you script something badly, nothing stops you.
The two tools most developers use both produce installers of this kind:
- Inno Setup "supports creation of a single EXE to install your program", with "complete uninstall capabilities" and "silent install and silent uninstall"
- NSIS describes itself as a tool to create installers "capable of installing, uninstalling, setting system settings, extracting files", with an overhead of 34 KB at default settings
A third kind of EXE is worth knowing about: a bootstrapper. It's a small setup program that installs prerequisites and then runs one or more MSI packages. WiX calls these bundles, which "let you have a single installation experience from many packages in your product and its prerequisites". So an .exe download can have an MSI inside it.
Which should you ship?
An EXE installer fits when:
- Your customers are individuals who download and double-click
- You want the app to install without an administrator password
- Setup needs custom logic or a custom look
- You want the fastest route from a build folder to an installer
An MSI fits when:
- Companies buy your app and their IT team installs it on many machines
- Customers ask for Group Policy or Intune deployment
- You want repair, rollback and a predictable uninstall without writing them
- A customer's software policy only allows MSI packages
You can ship both. Nothing stops you putting a setup.exe on the download page and an MSI on a page for IT administrators. If you'd like one build to cover both, a bootstrapper EXE around an MSI gives individuals a friendly front end and gives administrators the MSI inside.
If you're an administrator choosing which one to deploy, take the MSI when the vendor offers one. The switches are the same as for every other MSI, the uninstall command is predictable, and your deployment tool can detect it by its product code.
Silent installation
This is the difference administrators care about most.
Every MSI accepts the same command-line options, because msiexec is what's being run:
msiexec /i MyApp.msi /qn /norestart /L*V install.log
/qn means no interface at all. The standard option /quiet is the same thing, and /passive shows only a progress bar. Add /norestart, because Microsoft's documentation warns that otherwise "the installer restarts the computer whenever necessary without displaying any prompt or warning to the user".
An EXE installer has no such standard. Each tool has its own switches:
| Built with | Silent switch |
|---|---|
| Inno Setup | /SILENT (progress window only) or /VERYSILENT (nothing shown) |
| NSIS | /S |
| A WiX bundle or a custom installer | Whatever its author implemented |
Windows Package Manager shows how much this matters. A winget manifest names the installer type, because the switches depend on it. For Inno Setup and NSIS installers "the client will automatically set the silent and silent with progress install behaviors". For other installers, Microsoft's advice is that you "can often figure out what silent Switches are available" by running the installer with -?.
If you ship an EXE, document your silent switches on your website, so an administrator doesn't have to guess. The reference on silent install switches lists them by installer tool.
Deploying to a company: Group Policy and Intune
Group Policy. Windows Server can install software across a domain. Microsoft's instructions for it are written around "the Windows Installer package (.msi file)". A package can be assigned to computers, so it "is installed when the computer starts", or published to users, who then install it from the Add or Remove Programs list. The documentation doesn't describe a route for EXE installers.
Microsoft Intune. Intune takes both, with different amounts of work:
- An
.msican be added directly as a line-of-business app. Intune runsmsiexecitself, so you don't type the install command - An
.exehas to be added as a Win32 app. You first convert it to the.intunewinformat with the Microsoft Win32 Content Prep Tool, then supply an install command, an uninstall command and at least one detection rule so Intune can tell whether the app is present
Either way, the install has to be silent. Microsoft is blunt about it: applications deployed through Intune "must install silently and cannot require user interaction".
An MSI makes the detection rule easy, since Intune can check for its product code. For an EXE you point Intune at a file, a folder or a registry value your installer creates.
Per-user and per-machine installs
A per-machine install puts the app where every user of the computer can run it, and needs administrator rights. A per-user install goes into the current user's profile and doesn't.
Both formats can do either.
MSI. The ALLUSERS property decides. Set to 1, the install is per-machine. Left unset, it's per-user. Since Windows 7, the MSIINSTALLPERUSER property lets one package offer both, so the person installing can choose.
EXE. It depends on the tool. In Inno Setup the PrivilegesRequired directive defaults to admin. Setting it to lowest makes Setup run without asking for elevation, and a further directive lets the user pick between the two modes in a dialog. NSIS has RequestExecutionLevel, where user asks for no administrative privileges.
For software sold to individuals, a per-user install removes a common support problem: the customer on a work laptop who doesn't have the administrator password.
Upgrades, repair and uninstall
MSI upgrades follow rules. Each product has a ProductCode and a family-wide UpgradeCode. When you release a new version as a major upgrade, Windows Installer finds the related product already on the machine, removes it, and installs the new one. Microsoft recommends applying a major upgrade "by installing the full package for the updated product". The upgrade code has to stay the same for the life of the product, so set it up carefully on day one.
EXE upgrades follow your script. With Inno Setup, keeping the same AppId between versions is what tells a new installer it's updating an existing copy. Change it, and the Inno Setup FAQ says Setup "will create a new entry in Add/Remove Programs".
Repair is built into MSI. Inno Setup and NSIS don't list a repair feature, so the usual answer to a broken install is to run the installer again.
Uninstall is built into MSI. Inno Setup and NSIS both generate an uninstaller for you, and how completely it cleans up depends on how you wrote the install script.
Signing and SmartScreen
The format doesn't change the signing rules. Both an MSI and an EXE can carry a digital signature, and you should sign whichever you ship. Microsoft Defender SmartScreen checks the reputation of downloaded files before letting them run, and an unsigned installer is the one most likely to be stopped with a warning.
SmartScreen looks at two things: whether the file is signed by a known publisher, and whether that exact file has been downloaded before without problems. Microsoft's guidance for developers is direct about what that means for a new release: "Even when signed, a newly created binary could still show a SmartScreen warning until its hash or publisher certificate accumulates sufficient evidence of positive reputation." Unsigned, it's worse. Reputation "must build for each new version of your files, starting with zero".
A few practical points:
- Sign the installer and the executables inside it. The SignTool guide covers both
.exeand.msifiles - For the certificate itself, see EV code signing certificates and Azure Trusted Signing
- Publish a checksum next to the download so customers and scripts can verify it. The checksum calculator explains how
Auto updates
Neither format checks for updates. Windows Installer knows how to apply a patch or an upgrade, and it doesn't go looking for one. A setup EXE doesn't either.
So the update system is something you add, and it works the same way for both: your app asks a server whether a newer version exists, downloads the installer, and runs it silently.
- Inno Setup and NSIS auto updates covers that flow for EXE installers
- WinSparkle is an update library that hands off to your installer
- Velopack replaces the installer and the updater together
- ClickOnce is Microsoft's older answer for .NET apps
If built-in updates matter more to you than anything else on this page, look at MSIX, covered below.
Tools for building each format
| Tool | Builds | Cost, per the project |
|---|---|---|
| WiX Toolset | MSI packages and bootstrapper bundles | Source is open. Using it "to generate revenue" requires its Open Source Maintenance Fee |
| Advanced Installer | MSI, EXE and MSIX | Commercial editions, plus a freeware edition for basic installers |
| Inno Setup | A single setup EXE | Open source. Commercial users "are requested to purchase a commercial license" |
| NSIS | A single setup EXE | Open source and "completely free for any use" |
WiX calls itself "the most popular tool for creating Windows installers". You describe the package in XML and build it with wix.exe or MSBuild, which suits a build server. It gives you, in its own words, "complete control of the resulting Windows Installer packages". The price is a learning curve: you need to understand how Windows Installer thinks.
Advanced Installer is a commercial product that builds MSI, EXE and MSIX installers.
Inno Setup uses a plain-text script with an optional Pascal scripting engine for custom logic. Version 7.1.1 was released on October 28, 2026.
NSIS uses its own scripting language and adds very little to the size of your download.
If you're building your first installer, Inno Setup is the gentlest start. Reach for WiX when a customer needs an MSI.
Where MSIX fits
MSIX is Microsoft's newer package format, and it's a third option with different trade-offs. Windows does the installing, a signature is required, uninstall removes everything the package added, and updates are built in. It also can't install drivers, and the app can't write to its own install folder.
The page on MSIX compares all three formats side by side. In brief: MSIX suits a self-contained app that wants updates handled for it, and MSI or EXE suit an app that needs to do more to the system during setup.
After the installer: selling the app
The installer gets your app onto the customer's computer. If you sell it, the app also has to know who paid. That takes a license key for each purchase, a check when the app starts, and an update feed for the people whose license covers the new version. The guide on how to sell software online walks through the pieces.
LicenseSeat covers that part for apps sold from your own website. It issues a key on each sale, limits how many devices a license can be used on, and validates offline with a signed license file. From the Starter plan it also hosts your releases and serves the update feed. It charges a flat monthly fee and takes 0% of your revenue.
Common questions about MSI and EXE installers
What is the difference between MSI and EXE?
An MSI is a package that Windows Installer reads and installs by fixed rules. An EXE installer is a program that performs the installation itself, in whatever way it was scripted. MSI gives you standard silent switches, repair and rollback. EXE gives you freedom over what setup does and how it looks.
Is MSI better than EXE?
For deployment by an IT department, usually yes: every MSI installs silently the same way and works with Group Policy and Intune directly. For a download aimed at individuals, an EXE is simpler to build and can install without administrator rights. Many vendors ship both.
What is an .msi file?
A Windows Installer package: a single file containing a database of what to install, along with the files themselves. Windows opens it with msiexec.exe. Double-clicking an .msi starts the installation.
How do I install an MSI silently?
Run msiexec /i YourApp.msi /qn /norestart. /qn hides the interface, and /quiet does the same. Add /L*V install.log to write a log file you can read if something goes wrong.
How do I install an EXE silently?
It depends on the tool that built it. Inno Setup installers take /SILENT or /VERYSILENT, and NSIS installers take /S. For anything else, check the vendor's documentation, because there's no standard switch.
Can I convert an EXE to an MSI?
Not by renaming it. You can rebuild the installer as an MSI with a tool such as WiX or Advanced Installer, or wrap the app's files in a new MSI package. If the goal is deployment through Intune, you may not need to: Intune accepts an EXE once it's wrapped as a Win32 app.
Do I need administrator rights to install an MSI?
For a per-machine install, yes. An MSI authored for a per-user install doesn't need them. The same is true of EXE installers: it depends on whether the installer was set up to install for one user or for everyone.
Should I sign an MSI or an EXE installer?
Sign either one. SmartScreen checks whether a downloaded file is signed and whether its publisher is known, and an unsigned installer has to build its reputation again with every release.
Does an MSI update itself?
No. Windows Installer can apply an upgrade when you run a newer package, and nothing in the format checks for one. You add an updater to your app, or use a format with updates built in, such as MSIX.