onsdag 13 september 2017

Your updater sucks!

You've released a new version of your awesome program, and you wan't everyone to upgrade! Unfortunately you are a Windows developer so you have to rely on your own wit and skill for automatic upgrades. Fortunately you have billions of investor dollars to spend, because you work at Spotify or whatever.

So you have made a mechanism on the client that checks for updates now and then and downloads them automatically. The massive amount of money you spent didn't make you God though:



You need to ASK before you FUCK. It's called consent.exe.



You didn't consider that your program might be located somewhere on the computer where the user doesn't have permission to write. You didn't consider that because billions of dollars still can't make you think.

There are uncountable number of solutions to this problem, some of which are:


  • Have settings to disable updates and let the admins (me) manage it.
  • Check for write permissions and only upgrade if you know you're able to.
  • Write a service or scheduled task, like Google does. A service means a service, not just a stupid user process. Lika Java does.
  • DON'T update automatically! This is the best option.




Humorously you might totally break your program if you can't even start it without upgrading once it downloaded a new version, unless you edit the registry or some stupid xml-file.

Breaking your own program, is that what you want? Is it?




Inga kommentarer:

Skicka en kommentar