sodcalculator

10 Tech How-To

Fix Error 1310 on Windows 11: Step-by-Step Guide

Guide 10-29223 · Updated · Step by step

Error 1310 is a Windows Installer error that typically appears during software installation or uninstallation, often when a file or registry key is locked or access is denied. This guide provides clear, actionable steps to resolve this issue on Windows 11, covering common causes like permission problems, corrupted installer cache, or leftover files from a previous installation. No advanced technical skills are required—just follow the steps in order.

What You’ll Need

  • Administrator access to your Windows 11 PC
  • A stable internet connection (for some steps)
  • Optional: a backup of important files (not usually required, but recommended before making system changes)

Step-by-Step

  1. Close all running programs. Error 1310 often occurs because a program is still using files that the installer needs. Save your work, close all applications, and then try the installation again. If the error persists, proceed to the next steps.
  2. Run the installer as administrator. Right-click the setup file (usually setup.exe or installer.msi) and select Run as administrator. This gives the installer the necessary permissions to modify system files and registry keys. If you’re installing from a disc or a downloaded folder, ensure the file is not blocked: right-click the file, select Properties, and if you see an Unblock checkbox, check it and click Apply.
  3. Check for and remove leftover files from a previous installation. If you’re reinstalling a program that was previously installed, old files or registry entries might conflict. Use the built-in Programs and Features (or Apps & Features in Settings) to uninstall the program completely. If it’s not listed, use a dedicated uninstaller tool or manually delete the installation folder (usually under C:\Program Files\[Program Name]). Also, search for and delete any leftover folders in %ProgramData% and %AppData% related to the program.
  4. Clear the Windows Installer cache. The installer cache stores temporary files that can become corrupted. Open File Explorer, navigate to C:\Windows\Installer, and delete all files and subfolders inside. You may need to show hidden files and folders first (View > Options > View > Show hidden files). Note: Deleting this cache can affect the ability to uninstall or repair existing programs, so only do this if you’re comfortable with potential side effects. A safer alternative is to use the Disk Cleanup tool: search for “Disk Cleanup” in the Start menu, select the drive where Windows is installed, and check “Temporary files” and “Windows Update Cleanup” to free up space and remove corrupted temp files.
  5. Repair the Windows Installer service. Press Win + R, type services.msc, and press Enter. Scroll down to Windows Installer, right-click it, and select Restart. If the service is not running, double-click it, set the startup type to Automatic, and click Start. Then try the installation again.
  6. Run the System File Checker (SFC) and DISM. Corrupted system files can cause installer errors. Open Command Prompt as administrator (right-click Start, select Terminal (Admin) or Command Prompt (Admin)). Run the following commands one at a time, pressing Enter after each:
    sfc /scannow
    DISM /Online /Cleanup-Image /RestoreHealth

    SFC scans and repairs protected system files. DISM repairs the Windows image. Both may take 10-20 minutes. After they complete, restart your PC and try the installation again.

  7. Check for disk errors. Run chkdsk to check for file system errors. In the same Command Prompt, type chkdsk /f /r and press Enter. You’ll be prompted to schedule a disk check on the next restart. Restart your PC and let the check complete. This can fix issues with the disk that might prevent installation.
  8. Disable antivirus temporarily. Sometimes third-party antivirus or Windows Defender can interfere with installer operations. Temporarily disable your antivirus (or Windows Defender real-time protection) and try the installation. If it succeeds, re-enable your antivirus immediately and add an exception for the installer or the program’s installation folder.
  9. Use the Windows Installer CleanUp Utility (MSICUU2). This Microsoft tool removes leftover installer registry entries. Download it from Microsoft’s official website (search for “Windows Installer CleanUp Utility”). After downloading, run it, find the problematic program in the list, and select Remove. Then try installing again. Note: This tool is no longer officially supported, but it still works on Windows 11 for many cases. Use it as a last resort.
  10. Create a new user account. If the error persists, your user profile might be corrupted. Create a new local administrator account (Settings > Accounts > Family & other users > Add account > I don’t have this person’s sign-in information > Add a user without a Microsoft account). Log into the new account and try the installation. If it works, you can migrate your files and settings.

Common Mistakes

  • Skipping the admin run. Many users try to install without right-clicking “Run as administrator,” which often causes error 1310 due to insufficient permissions.
  • Not closing all programs. Background apps, especially those that run at startup, can lock files needed by the installer.
  • Deleting the installer cache without backup. While it can fix the error, it may break uninstallation for other programs. Always try other steps first.
  • Ignoring leftover files. Simply uninstalling via Control Panel often leaves behind folders and registry keys. Manually clean them up.
  • Running SFC/DISM without admin rights. These commands must be run in an elevated command prompt, otherwise they fail.

Tips

  • Always download installers from official sources. Corrupted or tampered installers can cause various errors, including 1310.
  • Keep Windows updated. Install the latest Windows updates, as they often include fixes for Windows Installer issues.
  • Use the Program Install and Uninstall troubleshooter. Microsoft provides a dedicated tool that can automatically fix problems with installing or uninstalling programs. Search for “Program Install and Uninstall troubleshooter” in the Start menu and run it.
  • If you’re installing a 32-bit program on a 64-bit system, ensure the installer is compatible. Most modern installers are, but older ones might have issues.
  • Consider using the command line to install. Sometimes running the installer with the /qb or /qn flags (for MSI files) can bypass certain UI issues. For example: msiexec /i "path\installer.msi" /qb. This runs the installation with a basic UI.

Troubleshooting

If you’ve tried all the steps above and the error still appears, try the following:

  • Check the Windows Event Viewer. Press Win + R, type eventvwr.msc, and press Enter. Navigate to Windows Logs > Application. Look for errors from the source “MsiInstaller” around the time of the failed installation. The details may provide a more specific error code or file path that can guide further troubleshooting.
  • Perform a clean boot. This starts Windows with a minimal set of drivers and startup programs, which can eliminate software conflicts. Press Win + R, type msconfig, and press Enter. Under the General tab, select Selective startup and uncheck Load startup items. Then go to the Services tab, check Hide all Microsoft services, and click Disable all. Click Apply and restart. Try the installation. Afterward, revert the changes.
  • Check if the error is specific to a particular program. If error 1310 only happens with one installer, the installer itself might be faulty. Download the installer again or contact the software vendor for support.
  • As a last resort, reset Windows. If the issue is systemic and no other fix works, you can reset Windows 11 (Settings > System > Recovery > Reset PC). Choose “Keep my files” to preserve your personal data, but this will remove installed applications. Back up important data before doing this.

Frequently Asked Questions

Q: What exactly causes error 1310?
A: Error 1310 is typically caused by insufficient permissions, corrupted Windows Installer files, or leftover registry entries from a previous installation. It can also occur if a file is locked by another process.

Q: Do I need to be an administrator to fix this?
A: Yes, most fixes require administrative privileges. You’ll need to run commands and tools as admin to modify system files and services.

Q: Will clearing the Windows Installer cache affect my other programs?
A: Yes, it can. The cache is used to repair, update, or uninstall existing programs. Deleting it may break those functions for some software. Only do this if other steps fail, and be prepared to reinstall affected programs.

Q: How long does the SFC and DISM scan take?
A: Typically 10-20 minutes, but it can take longer on slower systems. Do not interrupt the scan once it starts.

Q: Can I ignore this error and just use the program?
A: No, the installation will not complete, so the program won’t be usable. You need to resolve the error to install the software.

Q: Is there a way to prevent error 1310 in the future?
A: Yes, always run installers as administrator, close other programs before installing, and keep your system updated. Also, avoid installing over an existing installation without uninstalling the old version first.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →