Tuesday, 16 September 2014

SCCM - Troubleshooting - The installed product does not match the installation source(s) error when uninstalling a windows service

When trying to uninstall a product that has been installed with SCCM (or otherwise as the case may be) you may encounter the following error message :

"the installed product does not match the installation source(s) error when uninstalling a windows service"



The issue here is that you are trying to uninstall a program for which the original installation source has either been deleted, moved or altered. In short, although the program you're trying to remove has a PackageCode ( GUID ) X, the msi your machine is trying to use to remove the program has a PackageCode of Y.

In order to resolve this, locate an MSI which is similar to whichever program you are trying to remove, then run:

MsiExec.exe /I example.msi REINSTALLMODE=voums REINSTALL=ALL

Once this command has completed, the MSI will be effectively re-cached with PackageCode Y.

Thursday, 11 September 2014

Install dot net 3.5 on Windows Server 2012/Windows 8 - 0x800F081F error

When installing dot net 3.5 from the command prompt/powershell in Windows Server 2012 (R2) or Windows 8(.1), you need to have access to a folder (specifically the SXS folder) from the original install media. Whether you extract the contents of an ISO and copy the SXS folder locally or simply mount the image, it doesn't make much difference when you point dism at the folder and then encounter this:


This is a fairly common error and one for which there seems to be a whole range of random ways to fix, depending on your situation. Personally speaking, it was the uninstall of the Updates which solved it but anecdotally speaking, a lot of these have helped various folk:

1] If present, uninstall updates KB2966826, KB2966827 and KB2966828

2] Check the syntax is correct:

DISM /Online /Enable-Feature /FeatureName:NetFx3 /All /LimitAccess /Source:d:\sources\sxs

In case anyone needs it, here's what the commands actually mean:

  • /Online targets the operating system you're running (instead of an offline Windows image).
  • /Enable-Feature /FeatureName:NetFx3 specifies that you want to enable the .NET Framework 3.5.
  • /All enables all parent features of the .NET Framework 3.5.
  • /LimitAccess prevents DISM from contacting Windows Update.
  • /Source specifies the location of the files needed to restore the feature (in this example, the D:\sources\sxs directory).
3] Check the extracted/mounted ISO isn't corrupt - i.e. download another copy if possible

4] If the server has internet access, drop the /LimitAccess from the syntax