dnauck / Portable.Licensing

Portable.Licensing is a cross platform software licensing framework which allows you to implement licensing into your application or library. It provides you all tools to create and validate licenses for your software.
http://dev.nauck-it.de/projects/portable-licensing
MIT License
592 stars 173 forks source link

How to generate license from an installer #29

Closed sinairv closed 8 years ago

sinairv commented 8 years ago

Hi, First thanks for this great and easy to use library.

The application I'm trying to release does not have any websites, and the trial edition is supposed to expire in 30 days after installation.

So I guess the Windows installer is supposed to generate the license file (any alternatives?). To do that I suppose I need to create a console application that generates the license and run it after installation is over. However that program will contain private key and pass phrase embedded into it, which is something I'm trying to avoid. Is there any advice or best practices on how to generate a license as part of Windows installer for apps that don't have a Web API?

vbjay commented 8 years ago

Look at using custom actions.

dnauck commented 8 years ago

Generating the License file on the client is not an option, because it would require to have also your private key on the client.

You could:

sinairv commented 8 years ago

Thanks