Not sure if this is how you really phrase it (Self Destruction), but was wondering if it's possible to code it to allow user to use the executable file 3 times only. If the 3rd time reached, the executable no longer works. Even if the executable is transferred to another computer, it won't work if the 3rd tries is attempted.
From what I can see and what I might be facing is, the executable has to at least identify the pc, write a note/reg to know how many times it tried. But this method if transferred to another computer; it counts from 0 again.
So I would assuming a server-sided would need to get involve. The executable file will need to be assigned with a unique id or serial number. Once it verified with the server of how many attempts it did; it will then lock the executable.
If anybody know of a better way or simplier ways; let me know.
So for example on how I want this code to be
[security count open]
[If opened count =< 3 then]
[run the given commands/code]
[else]
[mgs "3rd time attempt has reached"]
[exit]