SDBINST: An installed file with the same ID was found, Error: couldn’t open SDB –

2017-12-08T17:14:13+00:00 February 22nd, 2012|Azure, Cloud, Windows|

Hi There,

During testing of a SHIM to fix an application, I accidentally deleted the SDB file from C:WindowsAppPatchCustom, rather than using the sdbinst -u <guid> command to uninstall properly. Whilst attempting to re-run this command I was hit with the following error;

This error was preventing me from using sdbinst to reinstall the SHIM.

The solution is pretty simple – there are two locations in the registry that need removing;

  • HKLMSoftwareMicrosoftWindowsCurrentVersionUninstall<GUID>.sdb
  • HKLMSoftwareMicrosoftWindows NTCurrentVersionAppCompatFlagsInstalledSDB<GUID>

Delete these and you will then be able to re-import your custom SHIM.

Thanks
SteveH