I noticed the latest virus descriptions on the site today and took a look to see, as usual that the virus you were describing executes out of an appdata/temp folder or other such thing tucked away under a username. the recommendation for prevention was, as you have given for most ransomscumware, to prevent file exe files running from the appdata folders.
This gave me a thought, given the way all viruses work wouldn't it be possible to prevent every virus infection by setting up a computer in a pristine state then placing some "order" deep in it's memory to only ever execute the exe files that were on it at that time. when a user wants to install/run a program they can let that new file run "just the once" before adding it to the "clean list" which would only contain every exe that was on the computer when factory fresh and a few programs deliberately added. This would prevent every virus except those that managed to trick the user into starting them in the belief that they were legitimate programs. Why hasn't such a concept been developed?