how to create msi installer in VS2010 with custom licence validation

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 the licencekey .

  • and at the same time it will ask to enter licencekey and call the validateLicence() 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).


    这听起来像你想看看自定义操作 - http://msdn.microsoft.com/en-us/library/9cdb5eda.aspx

    链接地址: http://www.djcxy.com/p/57372.html

    上一篇: OpenMP奇怪的行为

    下一篇: 如何使用自定义许可证验证在VS2010中创建msi安装程序