XProtect version in the registry

Hi,

We need to find the XProtect version before installing the plugin we developed.

Can we find the XProtect version somewhere in the registry?

Thanks,

Vikas.

Do you want to know the version of the application the plugin will be added to? If so, is it a Smart Client, Management Client or Event Server plugin you developed?

Hi @Paulina Bien (Milestone Systems)​ ,

We would like to know the overall XProtect Version.

Can we get SmartClient or Management Client version from the registry?

Thanks,

Vikas.

No, the version information is not available in the registry.

You could use PowerShell to get the version of the installed product, for example for Management Client:

Get-WmiObject -Class Win32_Product -ComputerName localhost | Where-Object {$_.Name -like “*Management Client*”} | Select-Object -Property Name, Version

This is correct - there’s no other “Milestone specific” location to look to identify installed Milestone product versions.

However, I would avoid using the WMI or CIM class “Win32_Product” as it will trigger a consistency check for all installed products and isn’t a very fast query. When you just need to look for a product/version it’s better to query the registry:

“HKL[M:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\](file:M:/SOFTWARE/Microsoft/Windows/CurrentVersion/Uninstall/)*” for 64bit

https://xkln.net/blog/please-stop-using-win32product-to-find-installed-software-alternatives-inside/

https://learn.microsoft.com/en-US/troubleshoot/windows-server/admin-development/windows-installer-reconfigured-all-applications#more-information

Thanks, it reduced the execution time.

They were used in the installer to check the XProtect version.