There are some solutions posted here on CP on how to do (some aspects of) this ...
but the first things I'd ask myself, are,
a) can I do it better myself vs something commercial ?
b) how much time do I want to spend maintaining a solution
c) is a licensing server the best option, vs say a dongle based approach
it depends how much your product sells for, the target market etc, wether the price can be built in
[edit]
some links
Implementation of the Licensing System for a Software Product[
^]
Creating Secure Trial Versions for .NET Applications - A Tutorial[
^]
RSA License Protection[
^]
[/edit]
'g'