Hi @Heiko ,
Thank you for the post. We have reviewed this further and the recommendation is to not check versions directly as that can be highly inaccurate from end users using compat mode or other software intercepting the underlying version check call. So, no need to do the IsWindowsVersionLowerThan() code.
So, we would recommend the call to check if the underlying API is available and if so, proceed. If you do get an exception, can handle it too accordingly.
Note that 18362 is old at this point and no longer being serviced by Microsoft:
Version 1903 (OS build 18362) - End of servicing
Servicing option Availability date Build KB article
Semi-Annual Channel 2020-12-08 18362.1256 KB4592449
For that one installation running 18362 that you found in AppCenter, they are out of support from Microsoft. To help them, our team here would require them to update the OS. Perhaps can block installs for the application on older OS too.
Microsoft Developer Support