Went to uninstall a driver and got the following:
If you get this error you can just remove it from the registry instead by navigating to:
you will see a series of folders. If you go to device manager and look at the device ID of a device in its properties this matches up with what you see in the registry:
Expand out the PCI folder:
Notice this is the same as what we saw in device manager? Deleting the driver registry key folders from the registry does essentially the same thing as removing them from device manager.
By deleting it from the registry this gets you around that error. You might want to then go on and permently remove the driver… to do that follow this guide: