Microsoft: devs shouldn't build in version check

Get assistance for technical problems with your PC. Or share your insights.

Microsoft: devs shouldn't build in version check

Postby Blín D'ñero » 08 Aug 2009, 20:29

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 ROG Strix X570-E * AMD Ryzen 7 3800x * Noctua NH-D15 * Corsair Vengeance LPX 32GB * MSI Radeon 5700XT * Creative AE-9PE * 2 x Corsair Force MP600 * 7 x WD Gold HDD * 1 x Asus DRW-24D5MT * Dell U3010 * Windows 10 x64 *

Office 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 * Dell Monitor P4317Q * Corsair AX 1200W * 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 *

Old Workhorse PC: * Intel i7 2700K @ 4.8 Ghz * Noctua NH-D15 * Asus Maximus IV Extreme-Z * 32 GB Corsair Vengeance Pro CMY32GX3M4A1866C9 * Sapphire HD7970 crossfire * 3 x Dell U2410 @ Eyefinity 5760 x 1200 / 60Hz * Corsair HX 1000i * 7 x WD Black HDDs * Creative Soundblaster ZxR * Optiarc AD 5240S * Steelseries 7G * Razer Imperator 2012 * Steelseries 9HD * Coolermaster STC T01 * Edifier S730D * Windows 10 x64 *

Outdated PC * Intel i7 920 @ 3.8 Ghz * Zalman CNPS9900A LED * Asus Sabertooth x58 * 24 GB Corsair Vengeance LP 1600MHz CL9 DDR3 * Sapphire R9 280X Vapor-X * Dell U2412Mb * Corsair HX 850W * 7 x WDC WD1002FAEX * Creative Soundblaster Z * Optiarc AD 5240S * Corsair K68 RGB * Corsair M65 PRO RGB * Coolermaster STC T01 * Logitech Z-2300 * Windows 7 Ultimate x64 *
User avatar
Blín D'ñero
Site Admin
 
Posts: 8599
Joined: 17 Feb 2008
Location: Netherlands

Return to PC Tech Issues and Support

Who is online

Users browsing this forum: No registered users and 0 guests

cron