Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to programmatically detect if Windows 8.1 Update is installed

Tags:

c#

windows-8.1

I'd like to detect from a C# application whether the latest Windows 8.1 Update (KB 2919355) is installed

I haven't been able to find anything on any of microsoft's sites or via google that indicates how one might do this.

Thanks!

like image 377
Orion Edwards Avatar asked Nov 02 '22 00:11

Orion Edwards


1 Answers

That update is actually a "rollup" or a collection of other separate smaller updates. If you go to the Knowledge base page for the update and scroll down to the "File information" you can see the update is actually the combination of the following other updates.

  • KB2919442
  • KB2919355
  • KB2932046
  • KB2937592
  • KB2938439
  • KB2934018

You will then need to either check that all of the above listed updates are applied or the single master update is applied. I am not sure how to do that in C# alone but via the commandline you can just do it by the console command

wmic qfe get hotfixid | find "KB2919355"
like image 188
Scott Chamberlain Avatar answered Nov 09 '22 10:11

Scott Chamberlain