msi安装程序客户信息表验证许可证

时间:2019-12-06 04:55:47

标签: windows-installer

我正在为Windows应用程序创建一个安装项目,在其中添加了带有许可证密钥以输入的客户信息表格,现在我想对该许可证进行api调用,并针对数据库值对其进行验证,如果它可以验证,需要继续安装。是否有可能做到这一点,我已经完成了自定义操作,但未获得如何进行操作

enter image description here

1 个答案:

答案 0 :(得分:0)

自定义操作 :您需要使用自定义操作来执行类似的自定义逻辑,但是这些操作很复杂,并且您公开了易于破解的许可证验证方法我想。

应用程序启动 :请阅读以下内容:Reasons to put license validation in the application and not the setup。从可靠性原因的设置中消除自定义动作形式的复杂性有很多原因。 Please skim this propaganda against custom actions(至少在第一摘要部分)。

总体 :由于复杂的sequencing-,{{1} }和conditioning-问题以及整体可调试性较差。 impersonation


Visual Studio Installer项目入门 :这是一篇不错的文章,但年代久远,其中包含有关自定义操作的部分:https://www.red-gate.com/simple-talk/dotnet/visual-studio/getting-started-with-setup-projects/-和{ {3}}和here is one more from CodeProject

替代品 :为什么您不应该依赖Visual Studio安装程序项目进行严格的设置(IMHO):a third oneVisual Studio Publish Project Into One Simple Installer)。 / p>