I want some of my important software to execute only 10 or 15 times if they are in pen drive, so no one can use it much more....even if he copies the app to some other place the software should not run........
The only way I could see that working properly would be to have it require authentication to a server. When it authenticates it counts 1 tick towards the counter. At 15 authentications it would indicate that it's been ran too many times and to re-authenticate/create a new key. Something similar to how PKI works.