How to programmatically determine if a Windows 8.1 update is installed

I would like to detect from a C # application whether “Windows 8.1 Update” is installed (KB 2919355)

I was unable to find anything on any Microsoft sites or through Google, which indicates how this can be done.

Thank!

+4
source share
3 answers

This update is actually a "cumulative" or a collection of other individual small updates. If you go to the Knowledge Base page for the update and scroll down to "File Information", you can see that the update is actually a combination after other updates.

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

Then you need to either verify that all of the above updates have been applied, or one major update has been applied. I'm not sure how to do this in C #, but through the command line you can just do it with the console command

wmic qfe get hotfixid | find "KB2919355"
+2
source

Windows 8.1 MSDN , Windows. MSU ReadMe. ReadMe , .

Windows 8.1, Windows Server 2012 R2, Windows RT 8.1 Update

Recommended Install Order
1.  KB2919442
2.  KB2919355
3.  KB2932046
4.  KB2937592
5.  KB2938439
6.  KB2949621
0

:

Windows 8.1 Windows Server 2012 R2

Windows 8.1 API- GetVersion (Ex) . , , API, Windows 8.1, Windows 8 (6.2.0.0).

To target Windows 8.1, you need to either enable the application manifest or include _NT_TARGET_VERSION = $ (_ NT_TARGET_VERSION_LATEST) in the source file.

Details about the required contents of the manifest are provided in the article.

0
source

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


All Articles