programmatically identify office 2016 vs 2019 vs 365 version in c#

New Contributor

anyone know how to programmatically identify whether an app is interacting with office 2016 or 2019 or 365?
as "2016 and 2019 have the same version numbers and release dates" according to, which makes simply using getFileVersionInfo unproductive.
I checked by comparing excel in office 2019 with excel in office 365 and the version numbers were both 16.0 :(

1 Reply

someone []
suggested this VB script as a starting point,



maybe one day i'll have a go at re-engineering it...