C # to find all installed office updates

When adding or removing programs, you can view the list of updates / patches for MS office Outlook. Is there any way to get this information using C # code. We tried the WMI code

const string query = "SELECT HotFixID FROM Win32_QuickFixEngineering";
var search = new ManagementObjectSearcher(query);
var collection = search.Get();

foreach (ManagementObject quickFix in collection)
    Console.WriteLine(quickFix["HotFixID"].ToString()); 

Only Windows updates are listed here. Is there a way to post updates for office components? (For Windows XP)

+3
source share
1 answer

I believe that you will have to use the registry to get them. The following registry keys should help:

@ "SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Uninstall", @ "SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Uninstall"

HKLM HKCU, , . DisplayName Publisher , MS Office.

Win32_Product, , Windows. , , ( , ).

+1

Source: https://habr.com/ru/post/1782063/


All Articles