How can I add license to my C# desktop application? I need to find a suitable free method to prevent unauthorised users installing my software.
There are plenty of license management systems out there for .NET (there's even one built-in for licensing controls). A quick Google around for ".NET licence manager" threw up the Open License system, which is free.
I expect you can easily find more.
There is no easy way to prevent your software from being used by unauthorised users. However, you may want to look at this.
One approach is to roll your own partial key verification system. There is a VB.NET version available on Code Project:
Be wary of how much effort you put in to protecting your app; it may be wasted time if it is easily broken or off putting to users if very strong (e.g. having to enter a password every time it is run).
An interesting article on software protection (of games) can be found here: http://www.positech.co.uk/talkingtopirates.html