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.
Technically, its not easy task to create working and secure licensing system. In case you plan to develop commercial software, I would recommend to use some commercial solution for it. Custom coded licensing systems tend to be vulnerable.
I have best experience with Treek's Licensing Library. Its cheap even for single developer, its safe and with good support. When comparing costs, TLL is cheaper than renting your own developer to do the same job.
Also, you'll need to protect your sources. For that we do use EAZ Fuscator, but there are also free options available. EAZ is very good, but very expensive.