如何让 Windows 系统还原忽略我的某些应用程序文件?

发布于 2024-10-30 20:13:19 字数 282 浏览 4 评论 0原文

我正在尝试软件版权保护的想法,现在遇到以下问题。

我有我的应用程序的试用版。试用数据存储在特定文件中以及某些特定注册表项中。当然,我知道用户可以通过使用一些注册表和文件监视和备份工具来破坏此试用保护,但我希望至少防止一些简单的黑客攻击,例如日期时间更改和使用 Windows 系统还原。

问题是 Windows 系统还原清除了我的所有应用程序文件以及试用数据。我知道系统还原不会影响用户的文档文件夹,但我不想在那里存储试用数据文件,因为它太明显了。

有什么方法可以停止系统还原以删除我的试用数据文件吗?

I am experimenting with software copy protection ideas and now I have the following problem.

I have a trial version of my application. Trial data are stored in a certain file and also in some certain registry keys. Of course I know that user can break this trial protection by using some registry and file monitoring and backup tools but I want at least protect against some simple hacks like date-time changes and using Windows System Restore.

The problem is that Windows System Restore wipes out all my application files and also the trial data. I know that System Restore does not affect User's documents folder but I not want to store the trial datafile there, because it is too obvious.

Is there any way I can stop System Restore to remove my trial data file?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

入画浅相思 2024-11-06 20:13:19

为什么不将其存储在用户的doc应用程序文件夹中?

  • 加密文件中的内容
  • 文件消失后,试用结束

应用程序文件夹

http ://msdn.microsoft.com/en-us/library/bb425869.aspx

通过模糊实现安全

http://en.wikipedia.org/wiki/Security_through_obscurity

其他选项是使用应用程序设置

在 Windows 窗体应用程序中保存应用程序设置的最佳实践

Why not store it in the user's doc application folder?

  • Encrypt the content in the file
  • When the file is gone, trial is over

Application folder

http://msdn.microsoft.com/en-us/library/bb425869.aspx

Security through obscurity

http://en.wikipedia.org/wiki/Security_through_obscurity

Other option is the use of the application settings

Best practice to save application settings in a Windows Forms Application

撑一把青伞 2024-11-06 20:13:19

我知道这已经过时了,但由于所选答案没有回答所提出的问题,我想我会为最终出现在这里的其他人添加我的答案。

要使系统还原忽略文件,请将 REG_MULTI_SZ 注册表值添加到以下注册表项:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\BackupRestore\FilesNotToBackup

可以使用环境变量和通配符。要包含子目录,请在末尾添加“/s”。例如,从命令行使用 reg.exe 添加 c:\temp 中的所有内容

reg add HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\BackupRestore\FilesNotToBackup /v Temp /t REG_MULTI_SZ /d "c:\temp\* /s"

I know this is old but since the selected answer doesn't answer the question asked I figured I'd add my answer for anyone else that ends up here.

To make System Restore ignore files add a REG_MULTI_SZ registry value to the following key:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\BackupRestore\FilesNotToBackup

Environment variable and wild can be used. To include subdirectories add " /s" to the end. For example to add everything in c:\temp using reg.exe from the command line

reg add HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\BackupRestore\FilesNotToBackup /v Temp /t REG_MULTI_SZ /d "c:\temp\* /s"
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文