使用s / n创建设置

时间:2011-02-02 07:01:40

标签: c# vb.net installation

我有一个Vb.Net/C# 2010项目,我想将其作为安装文件分发。在安装过程中,它应该询问用户序列号。有关如何做到这一点的任何建议吗?

2 个答案:

答案 0 :(得分:1)

以下是关于DaniWeb的问题,更多的是一个想法,而不是实现它的实际方法:http://www.daniweb.com/forums/thread336128.html

用VB.NET编写,这个人创建了一个随机生成CD密钥的代码包。它可能有助于项目中的随机生成。他表示他会尝试将C#代码提升一段时间,但我不知道他是否已经或将会。这是链接:http://www.codeproject.com/KB/security/cdkeys.aspx

此主题有两个指向MSDN文章的链接以及关于该主题的一些有趣想法:http://www.vbforums.com/showthread.php?t=472626

据我所知,如果你真的想要实现一个串行密钥系统,你会:

1) Need to randomly generate keys and store them somewhere.

2) Check the available keys every time a user enters one, therefore requiring online access.

3) You might even have to use paid libraries, as it's difficult to do this alone.

4) Give the user some kind of offline "key-storage" technique, such as Autodesk products do. This means that they fill out the registration and then save a file to their hard drive with their registration information, so they can send it to you later, when they have an internet connection. Be warned, however, that these offline activation systems are very easily exploited.

对不起,我无法提供更多帮助,我已经研究了这个话题,但从未成功完成它!

祝你好运!

答案 1 :(得分:0)

要么自己编写代码,要么使用Flexera Software的Install Shield之类的Installation Builder工具来提供此类工具。甚至微软都建议......但它不是免费的。