I have 2 functions: getLicence() , which returns the licencekey as a string, and validateLicence() , which returns true if the check was successful. I have the following requirements
I want to create an msi installer in VS 2010 that calls this getLicence() and shows a licencekey .
and at the same time, he will ask you to enter licencekey and call validateLicence() if the verification was successful, he will set the message "Invalid license key" to be installed yet;
getLicenceKey() uses AesCryptoServiceProvider to encrypt the machine name and generate licencekey and validateLicence() accepts the license key entered by the user and decrypts and validates.
I use C # (WCF) I can create an MSI installer, but I donβt know how to call these two functions with the installer (so that a licensed user can only install my application on one machine).
smileever143
source share