I'm not so sure. The biggest problem Windows has long had in this respect is that its application installation and update model is awful. Installation is haphazard and every program does its own thing. Updates even more so. Data security and application access control are barely existent, which wasn't so bad 30 years ago when the worst you were going to suffer was a virus wiping your disk and having to restore from backups, but has become a (perhaps the) critical problem for software management in today's connected world.
Microsoft could have fixed almost all of that relatively quickly at any time, by providing the kind of robust installation/update/permissions models we see on numerous other platforms today, implementing an online store for vetted software from credible sources, and then perhaps extending that idea from selling the single licences that facilities like the mobile app stores offer up to selling and managing organisation-wide licensing for serious professional software. It would have made life easier for developers at all scales, it would have made life easier for users, it would have given them an extremely lucrative store model to use as a revenue generator, and they wouldn't even have had to shut down installing software from other sources and try to lock their systems down, just provide the option to limit installation on centrally managed systems for organisational users. But instead all we've seen is variations on poor imitation app stores, which have mostly offered toy applications using half-baked runtimes instead of the full power of Windows, as Microsoft tried to dumb the big desktop OS down to mobile OS levels instead of realising that it could still dominate professional and power user desktops.