To run an MSI installer with administrator rights in Windows 10, open an elevated Command Prompt and start it with msiexec /i, or use the installer’s normal Install option and approve the User Account Control prompt if Windows displays one. An MSI file is a Windows Installer package, so it does not always have the same right-click “Run as administrator” option as an EXE file.
What administrator rights mean for an MSI
MSI stands for Microsoft Installer, the package format handled by the Windows Installer service. When you open an MSI, Windows generally asks that service to perform the installation; the MSI is not simply a program that runs by itself. The package can install files for one user or for the whole computer, make changes to protected folders, add services, or update system settings. Those machine-wide changes usually require elevation.
Administrator rights are permission to make changes that affect Windows or other users. On a PC where your account is an administrator, User Account Control (UAC) may ask you to confirm the change. If you use a standard account, Windows may instead ask for the username and password of an administrator. Starting the installer from an elevated window can make the permissions available, but it does not override organizational restrictions or make an incompatible package work.
Elevation and installation scope are related but not identical. A package authored to install only for the current user may remain a per-user installation even when started with administrator rights. The MSI’s design, its options, and any vendor instructions determine what it installs and where.
Use the normal install option first
For a trusted installer, the simplest approach is often to double-click the MSI or right-click it and choose Install. If the installation needs elevated access, Windows Installer may trigger a UAC prompt. Confirm only if the publisher and requested change make sense. Some packages do not need elevation, and some installation policies prevent users from installing MSI packages themselves.
Windows 10 does not consistently show Run as administrator in an MSI file’s right-click menu. That command is commonly associated with executable files, while an MSI is opened through Windows Installer. Missing that menu item does not by itself indicate a damaged file or a Windows problem. If the normal Install action fails for lack of permissions, launch the package through an elevated Command Prompt instead.
Run the MSI from an elevated Command Prompt
- Find the full path to the MSI file. For example, it might be in
C:\Users\Sam\Downloads\Example.msi. - Open Start, type Command Prompt, right-click the result, and select Run as administrator. Approve the UAC prompt or provide administrator credentials.
- At the prompt, enter
msiexec /i "C:\Users\Sam\Downloads\Example.msi", replacing the example path with the real one, and press Enter. - Follow the installer’s instructions. If another UAC prompt appears, check what it is asking before approving it.
The /i option tells Windows Installer to install or configure the specified package. Put the full path in quotation marks when it contains spaces, as in "C:\Users\Sam\Downloads\My App.msi". If the file is in the current folder, you can change to that folder with cd and then run msiexec /i "My App.msi". The command does not need to be run from the folder where Windows itself is installed.
Check the prompt title and the path before proceeding. An elevated Command Prompt gives commands entered into it administrator-level access, not just the one MSI command. Close it when you are finished, and do not paste commands from an untrusted website into an elevated window.
Add a log when an installation fails
If an installation stops with an error, a verbose log can help identify where it failed. From the elevated Command Prompt, use:
msiexec /i "C:\Users\Sam\Downloads\Example.msi" /L*V "%TEMP%\Example-install.log"
This asks Windows Installer to create a detailed log in the current account’s temporary folder. The exact file location can be found by entering echo %TEMP% in Command Prompt. Keep the log private if it contains usernames, paths, configuration details, or other information you would not want to share. If you ask the software vendor for help, send the log only through a support channel they provide and follow their instructions.
Logs record what the installer reports; they do not automatically fix the problem. Look near the end for the first failure or an error code, but avoid assuming that the final line explains the cause. A missing prerequisite, a failed custom action, a policy restriction, or an older version that needs to be removed may all produce different symptoms. The vendor’s documentation is usually the best guide to interpreting a package-specific error.
Why an MSI may still fail after elevation
Administrator access solves only permission-related problems. It cannot make an installer compatible with the computer, supply missing software, or bypass every security control. If the same error appears from an elevated prompt, check these common causes before repeatedly trying the command:
- Wrong or incomplete file: Confirm that the download finished and came from the software publisher or another source you trust. If the publisher provides a checksum, compare it as instructed.
- Unsupported Windows version or architecture: Check the package’s system requirements and whether it supports your Windows 10 release and processor architecture.
- Existing version or pending restart: The installer may require an older release to be removed or Windows to restart before installation can continue. Follow the product’s upgrade directions rather than deleting program files manually.
- Windows Installer or policy issue: A work or school device may restrict MSI installations through administrator-managed policy. Contact the device administrator instead of trying to change those settings.
- Package-specific prerequisite: Some installers need a particular runtime, service, or companion application. Use the vendor’s stated prerequisites and obtain them from a trusted source.
Restarting can help when Windows reports that another installation is in progress or asks for a restart, but it is not a general cure for every MSI error. Likewise, compatibility mode is not a substitute for checking whether the vendor supports the software on Windows 10.
MSI versus EXE: choosing the right method
An EXE is an executable program; an MSI is a package interpreted by Windows Installer. Both can install software, and either may request elevation, but their launch behavior and available options differ. An EXE installer may provide a direct Run as administrator command in File Explorer. With an MSI, invoking msiexec /i from an elevated prompt is a clear way to start the package with an elevated Windows Installer process.
Some software downloads contain an EXE that in turn launches one or more MSI packages. In that case, follow the publisher’s instructions and start the outer installer as directed; launching an internal MSI directly can skip checks or setup steps the EXE normally performs. If a vendor provides both formats, choose the one intended for your device and deployment situation. MSI packages are also commonly used by IT teams for managed installations, but that does not mean every MSI is intended for every user to deploy.
Safety checks before approving an elevated install
Running an installer as administrator gives it more ability to change the computer. Treat elevation as a security decision, not as a routine way to dismiss an error. Download the package from the publisher’s official site or an authorized distribution channel, verify that its name and purpose match what you intended to install, and review any publisher information Windows presents. A familiar filename alone is not proof that a package is safe.
Be cautious if a site tells you to disable antivirus software, weaken Windows Installer policy, or enable the policy called “Always install with elevated privileges.” That policy can allow MSI packages to install with elevated rights in circumstances where they otherwise would not, creating a security risk. It is not a recommended workaround for a single failed installation. On a managed PC, do not alter Group Policy or registry settings to get around the organization’s controls.
Elevation also does not guarantee that a package is trustworthy. If you did not request the installation, cannot verify its source, or do not understand why it needs broad access, cancel and check with the software publisher or your administrator.
Frequently Asked Questions
How do I run an MSI as administrator in Windows 10?
Open Command Prompt with Run as administrator, then enter msiexec /i "full\path\to\file.msi". Use the real file path and quotation marks if it contains spaces. Approve UAC only if you trust the package.
Why is there no “Run as administrator” option when I right-click an MSI?
Windows handles MSI packages through Windows Installer, and File Explorer does not always offer the same Run as administrator command for them that it offers for EXE files. Use the MSI’s Install option or run msiexec /i from an elevated Command Prompt.
Can I install an MSI without an administrator account?
Sometimes. A package designed for a per-user installation may not require administrator rights. A package that changes protected system areas generally does, and a standard account may need administrator credentials. Work or school policies can also block installations.
Does msiexec /a run an MSI as administrator?
No. In Windows Installer, /a requests an administrative installation, typically an installation image for deployment or network use. For an ordinary installation, use /i; running the command in an elevated window is what supplies elevated permissions.
Will running an MSI as administrator install it for every user?
Not necessarily. Administrator rights allow protected changes, but the package’s author determines whether it installs per user or for the whole computer. Check the installer’s options or the vendor’s documentation for its supported installation scope.
How can I tell why an MSI installation failed?
Retry with verbose logging using /L*V and a log-file path, then review the reported failure and consult the vendor’s support guidance. Also check the package’s system requirements, prerequisites, and any policy restrictions on the device.