It is best practice to always use the SharePoint uninstaller. However, there are times when SharePoint becomes so corrupted that the uninstaller does not work. For example, clicking ‘Uninstall’ doesnt do anything except run the msiexec process in the background, nothing happens. You may also get an error stating that the Uninstaller was unable to complete and the following message gets logged in your setup log file (it is located under C:\Users\<your username>\AppData\Local\Temp\2\SetupExe*.txt).
PSConfig.exe’ failed with error code: -1. Type: 8::CommandFailed
Anyone who has experienced a corrupted install of SharePoint knows how frustrating it can be to reinstall it. I run into this problem quite often on my developers machines.
Here is a quick how-to guide on how to manually uninstall SharePoint 2010 when the uninstall option does not work properly when uninstalling from ‘Programs and Features’.
- Open RegEdit and locate the following key. HKEY_LOCAL_MACHINE\Software\Microsoft\Shared Tools\Web Server Extensions\14.0\WSS
- Export the key and save it somewhere you can locate it later.
- Delete the entire WSS key.
- Locate the following key as well and delete: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Office14.OSERVER
- Browse to C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\ and rename the ’14’ folder to ’14.old’.
- Browse to C:\Program Files\Microsoft Office Servers and rename the ‘14.0’ folder to ‘14.0.old’
- Start a new installation of SharePoint 2010 from disk, the installer should assume that there is no existing copy of SharePoint on the system.
- Once you complete the installation, re-import the key you exported called ‘WSS’ to your registry.
- Start the uninstaller from Programs and Features. SharePoint should now uninstall everything completely.
- Reinstall SharePoint again.