如何让 Windows 系统还原忽略我的某些应用程序文件?
我正在尝试软件版权保护的想法,现在遇到以下问题。
我有我的应用程序的试用版。试用数据存储在特定文件中以及某些特定注册表项中。当然,我知道用户可以通过使用一些注册表和文件监视和备份工具来破坏此试用保护,但我希望至少防止一些简单的黑客攻击,例如日期时间更改和使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
为什么不将其存储在
用户的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 docapplication folder?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
我知道这已经过时了,但由于所选答案没有回答所提出的问题,我想我会为最终出现在这里的其他人添加我的答案。
要使系统还原忽略文件,请将 REG_MULTI_SZ 注册表值添加到以下注册表项:
可以使用环境变量和通配符。要包含子目录,请在末尾添加“/s”。例如,从命令行使用 reg.exe 添加 c:\temp 中的所有内容
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:
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