如何使我的安装文件不在VS2010中的其他计算机上运行? [英] How to make my setup file not run on other computers in VS2010?

查看:79
本文介绍了如何使我的安装文件不在VS2010中的其他计算机上运行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好...

我想

1.制作安装程序
2.这样做,以便将其安装在一台计算机上时,任何试图在另一台计算机上运行相同文件的人都将失败.

我正在使用VS 2010,已经完成了安装程序部分,但不确定如何执行安全性"部分.我已经获取了MAC地址,但不知道如何使用该地址来防止在另一台计算机上进行安装.

请帮忙...

谢谢

Hi Everyone...

I want to

1. make an installer
2. make it so that if it will be installed on one computer, anyone trying to run the same files on another computer will fail.

I''m using VS 2010 , I have done the installer part, but I''m not sure how to do the "security" part. I have already fetch the MAC Address but don''t know how to use that address to prevent the installation on another computer .

Please help...

Thank You

推荐答案

在纯安装程序代码中,这注定会失败.每次安装时,安装程​​序代码都必须更改.如果在安装之前复制了副本,则副本将像原始副本一样工作.

您必须围绕代码创建一些处理.

例子:
您形成一个CPU序列号,您提到的MAC地址,一些HDD标识任何内容的哈希.让用户将此信息发布给您.以某种方式处理它,然后将结果发送回用户.他必须将您的回复键入设置要呈现给他的形式.然后,安装程序会将您的响应与找到的硬件进行比较,如果匹配,安装将继续.

用户会讨厌该过程. (如果您在18个月内无法联系到该怎么办?)
即使可以自动生成响应,您还是讨厌必须处理不断发展的问题.
我敢肯定,有人会找到解决方法的. (您可以将任何CPU序列号伪造到虚拟机中吗?)

并且没有计算机"的MAC地址之类的东西.我有和网络接口卡一样多的MAC地址.
In pure installer code, this is doomed to fail. The installer code would have to change with each installation. If it was copied prior to installation, the copy would work like the original.

You will have to create some handling around your code.

An example:
You form a hash of CPU serial number, your mentioned MAC address, some HDD-identifying whatever. Make the user post this to you. Process it in some way, send the result back to the user. He has to type your response into a form that the setup is presenting to him. Setup then compares your response to the hardware that it finds and if it matches, installation continues.

Users will hate that procedure. (What if you''re unreachable in 18 months?)
Even though you can automate the response generation, you will hate having to deal with the issues evolving.
Someone will find a way around it, I''m sure. (Can you fake any CPU S/N into a virtual machine?)

And there is no such thing as "the" MAC address of a computer. I has as many MAC addresses as it has Network Interface Cards.


根据我对您要求的理解. 您想要创建一个仅在一台计算机上安装的安装程序.

1)每次需要为新计算机创建安装程序时,请查看该时间,更改安装程序的版本,以便它将为该版本生成新的产品密钥.

2)每次用户安装安装程序时,您都需要从用户的硬件生成唯一密钥(例如,MAC密钥+用户名).

3)创建一个Web服务,该服务接受用户计算机的唯一密钥和安装程序的产品密钥.它将返回True/False结果.

4)维护数据库,该数据库将存储您的安装程序产品代码和用户的机器密钥.

5)如果Web服务在数据库中找不到安装程序版本的产品密钥,并在数据库中插入该产品密钥和机器密钥,则它将返回True.

5)如果在数据库中找到产品密钥,它将返回False,因此您可以中止该计算机上的安装.


注意:此解决方案有时不可行,并且存在一些缺陷.但是如果您想满足自己的要求,则可以让您先行一步.
As per my understanding of your requirements..
You want to create a installer which installs on only one machine.

1) See every time you need to create a installer for new machine, At that time change the version of your installer so it will generate new product key for that version.

2) Every time when user installs the installer you need to generate a unique key from the hardware of user(e.g. MAC key + User Name).

3) Create one web-service which accepts the Unique key of user machine & product key of your installer. It will return the True/False result.

4) Maintain the database which will store your Product code of installer & User''s machine key.

5) The Web-service will return True if it don''t find a product key of installer''s version in the database & insert that Product key & machine key in the Database.

5) It will return False if it finds the product key in the Database so you can abort the installation on that machine.


Note: This solution is not feasible at times & has some flaws. but if you want to stick with your requirements it could give you head start.


与其为每个用户创建安装程序,还不如为机器创建激活码,方法是获取机器的唯一标识.要安装产品的机器.

使用简单序列号/激活密钥对保护软件 [ ^ ]
Instead of creating the installer for every user, create a activation key for the machine by getting the unique identification of the machine where the product is to be installed.

Protecting Your Software Using Simple Serial Number/Activation Key Pair[^]


这篇关于如何使我的安装文件不在VS2010中的其他计算机上运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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