如果您想为应用程序实现限时试用,您可能希望留下一些标志(注册表项、文件等),这样程序就不能重新安装。
是否有任何方案可以让您在通过各种 Windows 认证计划的同时做到这一点?
一般:-
Applications must correctly and fully uninstall from the machine. This includes removing files, registry keys, GAC assemblies, database tables, metabase settings, active directory accounts, etc. Anything left on the system after uninstall, including system components installed by the application, must be documented and justified - Windows Server 2008 Software Logo Secification - 2.3 Uninstall Cleanly
最佳答案
您采用的理念是仅在标志不存在时才允许安装,这意味着您需要在卸载后将标志保留在那里。当用户找到标志并自行删除时,这也会失败。
更好的做法是将其转过来,只允许程序在有标志的情况下运行。该标志将是一个注册 key ,其中加密了到期日期。当程序过期或被卸载时,您删除标志。
我通过让我的用户来我的网站注册并获得免费试用 key 来实现这一点。可能还有其他方法,但我喜欢这个,因为它还允许我收集有关谁在试用我的程序的信息。
关于windows - 限时试用和 Windows 认证,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1600425/