[英]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 我有2个函数:
getLicence()
返回licencekey
作为字符串和validateLicence()
如果验证成功则返回true。我有以下要求
I want to create msi installer in VS 2010 which calls that getLicence()
and shows the licencekey
. 我想在VS 2010中创建msi安装程序,它调用
getLicence()
并显示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"; 同时它会要求输入
licencekey
并调用validateLicence()
如果验证成功,它将安装其他未安装的显示消息“Invalid License 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. getLicenceKey()
使用AesCryptoServiceProvider
加密机器名并生成licencekey
, validateLicence()
获取用户输入的许可证密钥并解密和验证。
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). 我正在使用C#(WCF)我能够创建一个MSI安装程序,但我不知道如何通过安装程序调用这两个函数(因此具有licencekey的用户只能在一台机器上安装我的应用程序)。
听起来你会想要查看自定义操作 - http://msdn.microsoft.com/en-us/library/9cdb5eda.aspx
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.