How to create an MSI installer in VS2010 with custom license verification

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).

+7
source share
1 answer

It looks like you will want to view user actions - http://msdn.microsoft.com/en-us/library/9cdb5eda.aspx

+4
source

All Articles