Differentiate between Microsoft Office 2016 and 2019 with VSTO
See original GitHub issueMicrosoft in their infinite wisdom decided to make the Office version of 2019 “16.0” - The exact same as 2016.
The function getVersion()
at /Shared/Shared.cs
needs to return the string “2013”, “2016” or “2019”, depending on what version of Microsoft Office they are using.
(bonus points for detecting Office 365)
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Comparing 2019 vs 2016 vs 365, New Features in Access ...
Microsoft Office 2019 is out! Microsoft started the roll-out today of Microsoft Office 2019 for Windows & Mac – with major updates to...
Read more >Microsoft Office 2016 vs Office 2019 Comparison
Microsoft Office 2019 is a separate edition of the MS Office suite. Unlike the Office 365 program which is a cloud-based edition —...
Read more >Differences between Office 2016 and Office 2019
The main difference remains related to different system requirements - Office 2019 requires Windows 10, Windows Server 2016 or macOS Sierra, ...
Read more >c# - How to distinguish Office 2016, 2019 and 365
I'm developing a VSTO Add-in and I have an issue. I got the Office version number from the registry but the number is...
Read more >Microsoft Office 2016 vs 2019 | Comparison & Differences
Microsoft Office 2016 and 2019 are application suites for Windows and macOS users looking for the best solutions for work and casual use...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I couldn’t see an obvious way to do this. However, Microsoft have a rather complex vbs script available which purports to reliably differentiate between office products, might be worth a look: https://gallery.technet.microsoft.com/office/68b80aba-130d-4ad4-aa45-832b1ee49602
Sorry, I don’t usually work with C# projects, so I haven’t really made it easy to work with properly Thanks