Previously, a request for a list of patches installed on a Windows system was discussed, and the use of WMI and the Win32_QuickFixEngineering class was proposed as providing information. However, MSDN indicates that from Vista onwards this particular class returns only patches, not updates installed by other means.
An older question discusses the use of this class to obtain installed updates, indicating that the author is also not satisfied with using this due to the limitation described above. Unfortunately, as a comment on the accepted answer indicates, an alternative solution to using the Windows Update Agent API still indicates that the patch was installed even after it was uninstalled (it asks for the installation history and not the currently installed updates).
Does anyone know how to get in C # (through WMI or some other API) a complete list of updates and patches installed on the system, which does not exclude some ways in which updates can be installed and updates will not be returned, which were subsequently deleted? In fact, I get the same data set that is available in the "Programs and Features" in the "View installed updates."
Sorry if this discussion were to be carried out on one of the related questions that had previously considered this question, however, with my current reputation, the only way to contribute to any question is to submit a new answer, and this will definitely not be the right way to ask another a question.
Thanks!
source share