只能运行一个系统的exe [英] exe that can run only one system

查看:71
本文介绍了只能运行一个系统的exe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在只能运行一个系统的Visual Studio 2010中创建C#窗口应用程序的exe.(这意味着仅用于一台PC的exe)

当它已安装在一台PC上时,它不应在另一台PC上运行.

How can i create exe of C# window application in Visual studio 2010 which can run only one system.(that means exe only for one pc)

It should not run on another pc when it has been installed on one pc.

Can any one help me out please?

推荐答案

您可以为您的应用程序提供类似序列号的安全性. 或

您可以在主窗体的加载事件中检查适当的pc
逻辑:
1)检索计算机的硬件信息,例如CPU ID
这可能会帮助您进行第1步
http://www.vcskicks.com/hardware_id.php [
You can give the serial no like security for your application..
or

you can check at loading event of main form for the proper pc
Logic:
1) Retrive Hardware information of the computer such as CPU ID
This might help you for step 1
http://www.vcskicks.com/hardware_id.php[^]

2) After getting the Hardware ID you can check
Retrived Hardware ID is equals to harware ID of PC that your program should work.
If both are equal then go ahead
if not application.exit(). i mean exit application.

This is the logic
I dont have much time to generate a sample for you sorry dude.
but i will definitely do for you.

Are you satisfied?????????????/
?????????????????


这篇关于只能运行一个系统的exe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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