Home

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

%3CLINGO-SUB%20id%3D%22lingo-sub-916341%22%20slang%3D%22en-US%22%3Eprogrammatically%20identify%20office%202016%20vs%202019%20vs%20365%20version%20in%20c%23%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-916341%22%20slang%3D%22en-US%22%3E%3CP%3Eanyone%20know%20how%20to%20programmatically%20identify%20whether%20an%20app%20is%20interacting%20with%20office%202016%20or%202019%20or%20365%3F%3CBR%20%2F%3Eas%20%222016%20and%202019%20have%20the%20same%20version%20numbers%20and%20release%20dates%22%20according%20to%20docs.microsoft%2C%20which%20makes%20simply%20using%20getFileVersionInfo%20unproductive.%3CBR%20%2F%3EI%20checked%20by%20comparing%20excel%20in%20office%202019%20with%20excel%20in%20office%20365%20and%20the%20version%20numbers%20were%20both%2016.0%20%3A(%3C%2Fimg%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-916341%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EOffice%202016%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%202019%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
RedTahr
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 docs.microsoft, 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 [https://github.com/Terminal/DiscordForOffice/issues/7#issuecomment-548454581]
suggested this VB script as a starting point,

[https://gallery.technet.microsoft.com/office/68b80aba-130d-4ad4-aa45-832b1ee49602]

 

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

Related Conversations
Extentions Synchronization
Deleted in Discussions on
3 Replies
Tabs and Dark Mode
cjc2112 in Discussions on
36 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
9 Replies