Fix Windows Installer MSI Errors with msiexec Logs and Service Reset in Windows 10/11
Difficulty: Intermediate | Time Required: 20 minutesMSI installation errors can be frustrating because the message on screen is often too vague: “fatal error,” “another installation is already in progress,” or “Windows Installer service could not be accessed.” The good news is that Windows includes a built-in command-line tool, msiexec.exe, that can create detailed installation logs. Combined with a quick reset of the Windows Installer service, you can often identify the real cause and get the installer working again.
This guide applies to Windows 11 and Windows 10. The steps are the same on both versions, although Windows 11 commonly uses Windows Terminal (Admin) while Windows 10 may show Command Prompt (Admin) or Windows PowerShell (Admin).
Prerequisites
Before you begin:- Sign in with an administrator account.
- Make sure you have the original
.msiinstaller file. - Close open installers, setup windows, software update tools, and app stores.
- Save your work in case a restart is required.
- If you are on a work or school PC, check whether your organization manages software installation through Group Policy, Intune, Configuration Manager, or another deployment tool.
Note: Windows Installer packages usually end in.msi, while patch packages often end in.msp. This guide focuses mainly on.msiinstallers, but several logging concepts also apply to.msppackages.
Step 1: Confirm the MSI file location
- Open File Explorer.
- Locate the MSI file you are trying to install.
- Right-click the file and select Properties.
- On the General tab, confirm the file path and filename.
C:\Installers\ExampleApp.msiIf your MSI is in Downloads, Desktop, or another folder, replace the example path with your real one.
Tip: Avoid running installers directly from compressed ZIP files, network locations, or cloud-sync folders while troubleshooting. Copy the MSI to a simple local folder such asC:\Installersfirst.
Step 2: Create a folder for MSI logs
- Open File Explorer.
- Create a folder named:
C:\MSILogs- Make sure your account can write files to that folder.
Step 3: Open an elevated command window
- Right-click Start.
- Select Terminal (Admin), Windows PowerShell (Admin), or Command Prompt (Admin).
- Approve the User Account Control prompt.
Step 4: Run the MSI with verbose logging
In the elevated command window, run this command, adjusting the MSI path and log filename as needed:msiexec.exe /i "C:\Installers\ExampleApp.msi" /L*V "C:\MSILogs\ExampleApp-install.log"What this does:
/istarts a normal installation./L*Venables detailed logging, including verbose output.- The final path tells Windows where to save the log file.
Warning: MSI logs may contain usernames, folder paths, product keys, server names, license data, or other sensitive details. Review and redact the log before posting it publicly on a forum.
Step 5: Read the MSI log correctly
- Open the log file in Notepad.
- Press Ctrl + F.
- Search for:
Return value 3This is one of the most useful markers in MSI troubleshooting. It often appears near the action that failed.
- After finding
Return value 3, scroll upward 20–50 lines and look for:- A failed custom action
- Access denied messages
- Missing files or folders
- Failed service creation
- Registry permission errors
- A pending reboot message
- A prerequisite check failure
Code:
Error
Failed
Access is denied
Another installation is already in progress
1603
1618
1719
1722
- 1603 usually means a fatal installation error, but the log is needed to find the specific cause.
- 1618 means another Windows Installer transaction is already running.
- 1719 can indicate the Windows Installer service is unavailable or not working correctly.
- 1722 often points to a custom action failure inside the MSI.
Tip: The first error is usually more useful than the final error. Installers often report a generic failure at the end after the real problem happened earlier.
Step 6: Check whether another installer is running
If you see error 1618 or messages about another installation in progress:- Press Ctrl + Shift + Esc to open Task Manager.
- Select Processes.
- Look for:
msiexec.exe- Setup programs
- Software update tools
- App installers
After restarting, try the logged install command again.
Step 7: Reset the Windows Installer service
The Windows Installer service name is msiserver. Its normal startup type is Manual, and it should not be disabled because it is responsible for adding, modifying, and removing MSI/MSP-based applications.- Open Terminal (Admin), PowerShell (Admin), or Command Prompt (Admin).
- Check the service status:
sc query msiserver- Stop the service if it is running:
net stop msiserverIf Windows says the service is not started, that is okay.
- Reset the startup type to Manual:
sc config msiserver start= demandImportant: The space afterstart=is required. Without it, the command may fail.
- Start the service:
net start msiserver- If the service starts successfully, rerun your MSI command with logging:
msiexec.exe /i "C:\Installers\ExampleApp.msi" /L*V "C:\MSILogs\ExampleApp-install-after-reset.log"Step 8: Re-register Windows Installer if service reset is not enough
If the service still behaves oddly, you can re-register Windows Installer from an elevated command window:
Code:
msiexec.exe /unregister
msiexec.exe /regserver
Note: Re-registering Windows Installer is a troubleshooting step, not routine maintenance. Use it only when the service appears broken or MSI installs consistently fail.
Step 9: Try a repair or uninstall log if needed
If the application is already installed but broken, create a repair log:msiexec.exe /fomus "C:\Installers\ExampleApp.msi" /L*V "C:\MSILogs\ExampleApp-repair.log"If uninstall is failing, create an uninstall log:
msiexec.exe /x "C:\Installers\ExampleApp.msi" /L*V "C:\MSILogs\ExampleApp-uninstall.log"If you have a product code instead of the MSI file, you may be able to uninstall using the product GUID:
msiexec.exe /x {PRODUCT-CODE-GUID} /L*V "C:\MSILogs\ExampleApp-uninstall.log"Tips and troubleshooting notes
- Restart before deep troubleshooting. Pending reboots are a common cause of installer failures.
- Run locally. Copy the MSI to a local folder before installing.
- Check permissions. If the log mentions access denied, test with an administrator account and confirm the target folder is writable.
- Temporarily avoid silent mode. Do not use
/quietwhile troubleshooting unless required. A visible installer may show useful prompts. - Do not leave global MSI logging enabled. Registry-based Windows Installer logging is useful for advanced troubleshooting, but it can create many logs and consume disk space if left enabled.
- Look for prerequisites. Some MSI packages fail because a required runtime, framework, driver, or older version is missing.
- Be careful with cleanup tools. Avoid “registry cleaner” style fixes. They can remove installer registration data and make MSI problems worse.
Conclusion
Usingmsiexec verbose logs turns a vague MSI failure into useful troubleshooting data. Resetting the Windows Installer service can also fix cases where installations fail because the service is stopped, disabled, stuck, or incorrectly configured. With a clean local installer, a detailed log, and a properly configured msiserver service, you have a much better chance of identifying whether the problem is permissions, prerequisites, a pending reboot, another installer, or a broken package.Key Takeaways:
- Use
/L*Vwithmsiexec.exeto create detailed MSI logs. - Search logs for
Return value 3, error codes, and the first meaningful failure. - Reset the Windows Installer service to Manual startup with
sc config msiserver start= demand. - Restart Windows when another install is pending or error 1618 appears.
- Treat MSI logs as sensitive before sharing them on WindowsForum.com.
This tutorial was generated to help WindowsForum.com users get the most out of their Windows experience.