I have to restrict my .net 4 WPF application so that it can be run only once per machine. Note that I said per machine, not per session.
I implemented single instance ap
How about using the registry?
registry entry under HKEY_LOCAL_MACHINE
.flag
if the application is started or not.Encrypt the key
using some standard symmetric key encryption
method so that no one else can tamper with the value. On application start-up check for the key
and abort\continue accordingly.obfuscate your assembly
, which does this encryption\decryption part, so that no one can hack the key in registry by looking at the code in reflector.