Sql-server – SQL 2008 R2 Repair: Setup failed to install Windows PowerShell. Error code is -2145124329

sql-server-2008-r2

When I try to Repair my SQL 2008 R2, I get the following error. How can I solve this?

TITLE: Microsoft SQL Server 2008 R2 Setup

The following error has occurred:

Setup failed to install Windows PowerShell. Error code is -2145124329

For help, click: http://go.microsoft.com/fwlink?LinkID=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=10.50.1600.1&EvtType=0x82728477%25400x237CA5E1%25401215%25400


BUTTONS:

OK

Best Answer

Well, that error code is:

SUS_E_NOT_APPLICABLE -- install is not needed because no updates are applicable

(source)

This happens when you're trying to install a patch for an application and the patch no longer applies to the application. For example, if the application is version 10 and the patch fixes version 9, the patch will fail with that error.

One possible fix is to uninstall and reinstall SQL Server. Also, you could check to see if you have any patches or fixes installed already. I know that Service Pack 1 is already out for SQL Server. If you have that installed, it could be causing this error (trying to add an old patch to a newer version of PowerShell).