The passive aggressive license doesn’t seem to say it that way, but I won’t demand that a joke license be legally enforceable. Its real purpose is to evoke sensible chuckles, and it seems to be successful.
All software licenses work the same way:
- you'd normally be forbidden (by copyright law) to copy the code;
- the only thing that allows you to copy the code is the license;
- the license has terms that you have to agree to in order to be allowed to copy the code.
A license might have terms that are unenforceable (the most extreme example is something like demanding you to give up an unalienable right), that's the domain of contract law. But "you agree to refrain from running the executable" doesn't seem egregious, I doubt it would be unenforceable.