Windows应用程序安装程序,带有串行密钥 [英] Installer for Windows Application, With Serial Key

查看:130
本文介绍了Windows应用程序安装程序,带有串行密钥的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用C#开发了Windows应用程序,它具有一个.MDF文件,如Database [SQL Express 2005],Crystal Reports [Crystal Report Viewer]和显然的.net framework 2.0.
1.如何在设置中添加这些额外的软件
2.我的第二个问题是我希望该软件只能在单台计算机上使用[即使计算机已格式化,也没有在线概念],并且不应将其安装在具有相同串行密钥的任何其他计算机上.一台机器的一个序列号.如果它正在其他任何计算机上安装,则他们需要另一个只能由我提供的串行密钥.

如果可能的话,请告诉我想法和步骤或代码.
在此先感谢

I Developed a Windows Application using C#, it have a .MDF file as Database[SQL Express 2005 ], Crystal Reports[Crystal Report Viewer] and obviously .net framework 2.0.

1. How can I add these extra software with my set up
2. My second Problem is I want that the software should be used in a single machine only[Even the machine is formatted, no online concept], and should not be installed in any other machine with the same serial key. One Serial Key for one machine. If It is installing in any other machine then they need another serial key, which I can only provide.

Please give me idea and steps or code, If possible.
Thanks in advance

推荐答案

如果没有某种在线组件,您真的很难做到这一点,您需要一个在线许可证生成器来创建一个基于诸如CPU ID,NIC ID等之类的内容,并且需要将其嵌入到密钥的创建方式中,并带有响应密钥,以便您可以在启动程序时验证程序是否在计算机之间移动.因此,您将需要一个在线许可服务器来创建响应密钥以将其绑定到一台计算机.

您可以在安装程序中总结任何需求,但是我发现像Advanced Installer这样的第三方程序比Visual Studio附带的基本工具要好.
You really can''t easily do this without some sort of online component, you need an online license generator that creates a license that''s based on things like the CPU id, NIC id, etc, and that needs to be embedded in how your key is created, with a response key, so that you can verify if the program was moved between machines, when it starts. So you will need an online licensing server to create the response key to tie it to one machine.

You can wrap up any requirements you like in your installer, but I''ve found that third party programs like Advanced Installer are better at this than the basic tool that comes with Visual Studio.


这篇关于Windows应用程序安装程序,带有串行密钥的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆