0

Is there any way to know the antivirus patch updates in Windows 7 since WMI doesnt povide them. I found that Windows Xp do provide the version Number but is there any other method to know the version number for Windows 7

Windows XP
Namespace : SecurityCenter
AntiVirusProduct-Properties

companyName
displayName
enableOnAccessUIMd5Hash
enableOnAccessUIParameters
instanceGuid
onAccessScanningEnabled
pathToEnableOnAccessUI
pathToUpdateUI
productUptoDate
updateUIMd5Hash
updateUIParameters
versionNumber

Windows Vista and Windows 7

Namespace : SecurityCenter2

displayName
instanceGuid
pathToSignedProductExe
pathToSigned

I need to develop an application that will provide me the patch updates of the antivirus in C#

TechBrkTru
  • 346
  • 1
  • 25

1 Answers1

0

Two ways you could try:

string x = Environment.OSVersion.ToString();

or another round about way is to run cmd.exe to run "ver"

string[] MyArguments = { "ver", ">text.txt"};
Process.Start("cmd.exe", String.Join(" ", MyArguments));

then open the file text.txt to parse the version information.

SteveFerg
  • 3,466
  • 7
  • 19
  • 31