question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Differentiate between Microsoft Office 2016 and 2019 with VSTO

See original GitHub issue

Microsoft 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:open
  • Created 4 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Justin-Lloydcommented, Oct 31, 2019

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

1reaction
7coilcommented, Oct 27, 2019

Sorry, I don’t usually work with C# projects, so I haven’t really made it easy to work with properly Thanks

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found