Our install scenario requires a certain KB(Windows Update) to be installed. The problem is, there are packages that supersede that specific update, making the registry search for that specific KB useless.
For example, I need to determine if the computer has KB-X. KB-X is superseded by KB-Y. In effect, there could be a computer that only has KB-Y because it doesn't need those it superseded.
When there is a new KB-Z that would supersede Y, it would also supersede X, which is why having a static list of those who supersede is not effective because that list would have to be updated from time to time.
My scenario is for now, I have KB-Y. How can I determine that I don't need KB-X anymore because I have KB-Y?
I have tried:
-using wuAPI, but it doesn't tell me what the installed updates have superseded.
-using wmic qfe but it also doesn't tell me what the installed updates have superseded
-using registry search but it only works if you install the KB and not those that supersede it
- using powershell get -wmiobject and get -hotfix but it cannot tell me what the installed updates have superseded.
Is there a way for my installation to determine if I have a certain KB or those that supersede it is already installed?
I would prefer an answer that doesn't need to update the installer from time to time.