Had some errors come up when trying to install some hotfix rollups in SharePoint 2010. The actual error returned was that the installation of this package failed, but I could not see where it was logging why it failed…
I took a quick look inside the temp folder, where most install packages will extract themselves, but saw nothing unusual… So I checked the event log to see where it was trying to unpack to – Saw some errors saying “No write access to temp folder”. At first I thought it might be a permissions thing… but then I looked at the available space on C Drive. 270kb. Hmmmm. I wonder if it’s failing because the Operating system is completely out of hard drive space?
Luckily, the problem is easily fixed if you are confident the updates applied in the past are no longer required (for uninstall purposes etc). Open a command prompt and run:
DISM /Online /Cleanup-Image /SPSuperseded /hidesp
This will remove the installed OS Service packs and hide them from “add/remove programs”.
Deployment Image Servicing and Management tool Version: 6.1.7600.16385
Image Version: 6.1.7600.16385
WARNING! This operation will revert pending actions from previous servicing operations. It should be used for recovery operations only. This command is not supported against an online image.
Example: DISM.exe /Image:C:\test\offline /Cleanup-Image /RevertPendingActions /Cleanup-Image /spsuperseded [/hidesp]
WARNING! The service pack can’t be uninstalled after this operation is completed. This operation will remove backup files created during service pack installation. Use /hidesp switch to hide the service pack from Installed Updates.
Example: DISM.exe /Image:C:\test\offline /Cleanup-Image /spsuperseded /hidesp
Once we had enough space to run the patch, we then raised a support ticket to get more space allocated to the hard drive from the SAN. Easy!