没有注册表访问的许可 [英] Licensing without Registry Access

查看:84
本文介绍了没有注册表访问的许可的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,



我正在开发Windows应用程序,它可能被企业使用(它不会获得管理权限)。

对于产品,我在应用程序启动时使用了注册表上的许可证检查。但遗憾的是,Win7和8台PC并没有授予我在正常模式下访问Windows注册表的权限......

如何解决这个问题....请Rply:(

Hi there,

I am developing a Windows Application, and it may be used by enterprises (It wont get Administrative Privileges).
FOr the product, I have used License check on registries at the application startup. But unfortunately, Win7 & 8 PCs doesnt give me permission to access the Windows Registry in Normal Mode...
How can I solve this issuee.... Please Rply :(

推荐答案

嗨!



好​​吧,使用注册表来存储许可信息并不是很安全。



你可以做的是为每个可能运行应用程序的计算机生成一个单独的硬件ID。这个Id发送到你正在运行的服务器,这个服务器检查Id是否有效并让启动应用程序。

如果您不打电话回家或者您没有自己操作服务器,您也可以生成硬件ID,让用户发送给您 - 例如通过电子邮件 - 您根据此Id生成一个密钥文件,您将该文件发送回用户,该用户将文件复制到应用程序的启动目录,软件检查密钥文件的信息是否适合硬件ID,然后授予访问权限。软件。
Hi!

Well, using the registry to store licensing information is not pretty safe.

What you could do is to generate an individual hardware Id for each computer which may run the application. This Id is sent to a server you are operating and this server checks whether the Id is valid and lets start up the application.
If you may not call home or you are not operating a server on your own you may also generate the hardware Id, let the user send it to you - e.g. via e-mail - you generate a key file based on this Id which you send back to the user, who copies the file to the application's start up directory, and the software checks, whether the key file's information fits to the hardware Id and then grants access to the software.


我同意HiDensity,并且还想指出以下文章:

.Net应用程序的软件拷贝保护 - 教程 [ ^ ]

为.NET应用程序创建安全试用版 - 教程 [ ^ ]



如果你真的挂在注册表上,请记住不同的密钥可以拥有不同的访问权限。您还可以要求用户使用管理员帐户运行安装程序,使用该帐户为您的应用程序创建必要的注册表项,并根据需要设置其权限。
I agree with HiDensity, and would also like to point you to the following articles:
Software Copy Protection for .Net Applications - a Tutorial[^]
Creating Secure Trial Versions for .NET Applications - A Tutorial[^]

If you really are hung up on the registry, keep in mind that different keys can have different access permissions. You could also require the user to run the installer with an Admin account, use that to create the necessary registry keys for your application, and set their permissions as needed.


这篇关于没有注册表访问的许可的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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