I have 2 functions:getLicence() which returns licencekey as string and validateLicence() which returns true if validation successful.I have following requirements
I want to create msi installer in VS 2010 which calls that
getLicence()and shows thelicencekey.and at the same time it will ask to enter
licencekeyand call thevalidateLicence()if validation successful,it will installed else not installed showing message "Invalid Licence key";
getLicenceKey() uses AesCryptoServiceProvider to encrypt the machinename and generate the licencekey and validateLicence() takes the licence key entered by the user and decrypt and validate.
I am using C# (WCF) I am able to create a MSI installer but I don't know how to call these two functions by the installer (so that user having licencekey can install my application only on one machine).