用C#内置的桌面应用程序给我的客户。我想保护我的应用程序免受复制滥用。我的应用程序包含.exe和db文件。部署应用程序后用户可以...
问题描述:
我将向我的客户发布一个用C#构建的桌面应用程序。我想保护我的应用程序免受复制滥用。我的应用程序是一个包含.exe。部署应用程序后,用户可以轻松复制部署文件并将其用于其他计算机。我怎么能防止这种情况?无论如何我可以将应用程序绑定到一台机器上吗?。
I'm going to release a desktop application built in C# to my customer. I want to protect my application from copy abuse. My application is a contain both the .exe . After deploying application user can easily copy deployment files and use them another machine. How can I prevent that?. Is there anyway I can bind the application to one machine?.
答
您可以通过使用安装程序在注册表中添加一些密钥来防止这种情况。
因此,用户将无法在其他位置使用相同的应用程序。
You can prevent this by using an installer to add some keys in the registry.
Thus a user will not be able to use the same application in another location.