Microsoft: devs shouldn't build in version check

Get assistance for technical problems with your PC. Or share your insights.
Post Reply
User avatar
Blín D'ñero
Site Admin
Posts: 9971
Joined: 17 Feb 2008, 02:05
Location: Netherlands
Contact:

Microsoft: devs shouldn't build in version check

Post by Blín D'ñero »

Version checking is probably the most common application compatibility issue that users as well as developers face when an application fails upon checking the operating system version. A lot can go wrong when version checking is misused. A user might experience a “silent fail” where the application simply fails to load and nothing happens. Or, a user might see a dialog box indicating something to the effect of “you must be running Microsoft Windows XP or later” when in fact, the computer is running Windows 7. Many other consequences to poor version checking can inconvenience users as well.

Applications fail due to version checking for two main reasons:
  • A flaw (bug) in the version checking code, which fails if the minor version is decreased, even if the major version is increased, for example, changing versions from 5.1(Windows XP) to 6.0 (Windows Vista), or if the expected service pack (SP) is not installed, even if you're running a newer operating system (for example, changing versions from Windows XP SP 2 to Windows Vista SP 1). We recommend that you check functionality rather then checking version, as you can read in this post.
  • An intentional blocking that prevents the application from running on operating system versions not tested by its developers. We recommend that you do not block applications from running on future operating systems.
Read complete article
windowsteamblog.com
Main PC: Asus TUF Gaming 570-Pro (wi-fi) * AMD Ryzen 7 5800X * Noctua NH-D15 * Corsair Vengeance LPX 32GB * Asus TUF Radeon 6800XT * Creative AE-9PE * 2 x Samsung 980 Pro * 7 x WD Gold HDD * Corsair HX 1000 * 1 x Asus DRW-24D5MT * Dell U3010 * Windows 10 x64 *

Office PC: Asus ROG Strix X570-E * AMD Ryzen 7 3800X * Noctua NH-D15 * Corsair Vengeance LPX 32GB * MSI Radeon 5700XT * Creative Soundblaster ZxR * 2 x Corsair Force MP600 * 7 x WD Gold HDD * Corsair AX 1200W * 1 x Asus DRW-24D5MT * Dell P4317Q * Windows 10 x64 *

Old workhorse PC: * Intel i7 4790K * Noctua NH-D15S * Asus Maximus VII Hero * Corsair Force MP510 480GB M.2 SSD * 32 GB Corsair Dominator Platinum CMD32GX3M4A2133C9 * Sapphire Radeon R9 290 * 3 x Dell U2410 @ Eyefinity 5760 x 1200 * Corsair HX 1000i * 7 x WD Black / Gold HDDs * Creative Soundblaster ZxR * Asus DRW F1ST * Corsair K95 RGB * Corsair M65 PRO RGB * Steelseries 9HD * Coolermaster STC T01 * Edifier S530 * Sennheiser HD598 * Windows 10 x64 *
Post Reply