Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Time limited trial and Windows Certification

Tags:

windows

If you want to implement a time limited trial for an application you would probably want to leave behind some flag (registry key, file etc) so a program couldn't just be re-installed.

Are there any schemes that allow you to do this while still passing the various Windows Certification programs?

Generally :-

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

like image 687
Ryan Avatar asked Oct 21 '09 12:10

Ryan


2 Answers

You are taking the philosophy of only allowing installation if a flag is NOT there, which means you need to leave the flag there after uninstall. Also this fails when the user finds the flag and deletes it themself.

Better is if you turn it around and only allow the program to work if a flag IS there. This flag would be a registration key that has the date of expiry encrypted into it. When the program expires or is uninstalled, you delete the flag.

I implement this by making my users come to my site to register and get a free trial key. There are probably other ways, but I like this one because it also allows me to collect info about who is trying my program.

like image 125
lkessler Avatar answered Sep 23 '22 00:09

lkessler


If your app is connected to the Internet, then you could store information on your own server about whether it has been installed before or not. However, this almost certainly needs to be designed in from the start with potential investment in hosting your own server to be available to check against.

I'm sure there must be plenty of cases where files are left behind after an uninstall that are perfectly acceptable. For example, I wouldn't expect all my documents to be deleted when I uninstalled Word.

like image 29
Big GH Avatar answered Sep 27 '22 00:09

Big GH