1. Generate your license online. Meaning when a product is installed it will check whether is product is licensed in Windows Registry.
2. Create a database of unique keys say 1000 or 10000 in a database and keep online.
3. When you give Windows App, give a Key which is unused.
4. Create a Form for user to enter the Key and click Register and it will check your online database and the Windows App will add a Registry entry.
This way your product will be licensed.