I have an application that works as a Word add-in. (ESPO).
It works on many PCs around the world. In some cases, I have to worry about shooting issues (obviously remotely) and have a reporting mechanism that tells me which Windows OS it works with - I use it Environment.OSVersionin .NET. At least until Windows 10.
There is an article on MSDN ( Targeting Your Windows Application ) about creating an application manifest that will return the correct version.
But my application is a DLL, not an EXE, so the XML code mentioned in this article will not actually be hosted.
Is there a way to just ask Windows: “Which version? Indeed, I will not cry if you agree to the current version.”
Or a registry entry or something else?
source
share