Do you encounter a strange error message that reads "Installation ended prematurely because of an error" when installing applications on a Windows PC? If yes, worry not; it's a pretty common Windows error. The prompt mainly appears when some specific services are not running on the system.

Fortunately, it's pretty easy to troubleshoot this error message. Just try the below solutions to get rid of the problem for good.

What Cause the "Installation Stopped Prematurely" Error on Windows?

The error message isn't limited to a specific Windows version; all modern Windows systems can display this error. The problem mainly appears when the Windows Installer Service is disabled, but there are other culprits that can be responsible for this error, too:

  1. If you try to run the installer without administrative permissions, you'll most likely face the problem.
  2. The third-party antivirus program can interrupt the installation and cause the problem in the question.
  3. The issue can also pop up if .NET Framework 3.5 is disabled on the system.

Now let's check out different solutions you can try to get rid of this error prompt.

1. Run the Installer as an Administrator

The problem mainly appears due to a lack of administrative privileges. So, make sure you are running the executable with admin access. You can do it by following the below steps.

  1. Right-click on the file that you want to install.
  2. Choose Run as administrator from the context menu.
  3. Click Yes to the UAC that pops up.

Check if you still encounter the Installer stopped prematurely error. If yes, move on to the next solution.

2. Enable the Windows Installer Service

To install, modify, or remove any application, you must ensure that the Windows Installer is enabled under the Services panel. If it's disabled, you'll come across a variety of issues when installing applications, such as the "installation stopped prematurely" error.

You can enable this service by following the below steps.

  1. Open the Start menu using the Win key.
  2. Type Services and press Enter.
  3. Locate and right-click on Windows Installer.
  4. Choose Properties from the context menu.
  5. Click on Start under Service status.
    Windows Installer in Services Window

That's it. Now try installing the application with admin rights and check if the problem continues.

3. Clear the Temp Folder

The temp folder contains temporary files of all the installed applications. These files help the applications to offer faster service. But if the content of the temp folder gets corrupt, it will cause various issues.

So, make sure to regularly clear the temp folder to keep the system free from problems. Here's how to do it.

  1. Open the Run dialogue box using Win + R.
  2. Type %temp% and press Enter.
    Access Temp folder in Run dialogue box
  3. Select everything inside the temp folder, right-click and choose the Delete option.

4. Re-Register VBScript.dll and the Windows Installer Service

Register Windows Installer Service command in Windows PowerShell

The next solution on the list is to re-register the VBScript.dll and Windows Installer Service. Either or both of the services can get disabled during virus scans or system restoration.

You'll have to re-register both these services to solve the problem in the discussion. Here's how.

  1. Open the Start Menu, type Windows PowerShell and choose Run as administrator from the result.
  2. Click Yes to UAC that pops up.
  3. To re-register the Windows Installer Service, type the following command and press Enter.
            msiexec /unreg
    msiexec /regserver
  4. To re-register the VBScript.dll, type the following command and press Enter.
            regsvr32 vbscript.dll
        

That's it. Now reboot the system and check if the problem continues. If yes, try the next solution on the list.

5. Turn On .NET Framework 3.5 or 4.8

The NET Framework helps create and run software applications on Windows. If you have Windows 10, you can try installing .NET Framework 3.5 to fix this error. On Windows 11, you need .NET Framework 4.8.

Here's how to get either version of .NET Framework:

  1. Open Control Panel using one of the many ways to open the control panel.
  2. Go to Program > Program and Features.
  3. Choose Turn Windows features on or off from the left pane.
  4. If you have Windows 10, select .NET Framework 3.5.
  5. If you have Windows 11, choose .NET Framework 4.8 Advanced Services.
    Turn Windows Features on or off
  6. Click on OK.

Wait until the selected package is installed successfully on the system. Once done, reboot and check for the issue.

6. Disable or Uninstall Any Third-Party Antivirus Programs

The problem in the discussion can appear due to third-party antivirus programs installed in the system. These programs can interfere with the installation process and cause issues. As a solution, disable or permanently uninstall all such applications and check if it fixes the problem.

If this works, try another antivirus or use Microsoft Defender instead. If it doesn't work, don't forget to re-enable or reinstall your antivirus before continuing.

7. Run an SFC Scan

SFC scan in Windows 10

The System File Checker, aka SFC, is a Windows utility that detects and replaces corrupt system files. Running an SFC scan can help fix any issues with your system files, which can in turn fix your installation issues. Here's how to do it:

  1. Open Command Prompt with admin rights.
  2. Type sfc /scannow and press Enter.

Wait for the scan to finish, then try installing your app again.

7. Perform a Clean Boot

Different startup applications and drivers can be the reason why you're facing the issue. You will have to disable all such applications and check if it resolves the problem. You can do it by performing a clean boot.

Here's how.

  1. Open the Run dialogue box, type msconfig, and press Enter.
  2. Switch to the Services tab.
  3. Checkmark Hide all Microsoft services box.
    The Hide all Microsoft services checkbox
  4. Click on Disable all.
  5. Switch to the Startup tab.
  6. Click on Open the Task Manager.
  7. Right-click on all unnecessary startup applications and choose Disable from the context menu.
  8. Come to the Services tab again and click on OK.

The system will start in the clean boot state on the next reboot.

8. Switch to a New Account

The "installation stopped prematurely" error can result from an issue with your current Windows account. If this is the case, consider switching to a new Windows account to solve the problem. Here's how.

  1. Open Settings using Win + I hotkeys.
  2. Choose Account from the left pane.
  3. Click on Other users > Add account.
    Add Account option in the Settings menu

Now, follow the onscreen instructions to create a new account.

The "Installation Stopped Prematurely" Error, Fixed

Hopefully, the above solutions helped fix the issue. But if you still face the problem, most likely it is being caused due to an issue in the Windows installation. In this case, resetting Windows is the best thing to consider.