hi
i want to make a trial version of my product which would expire after 30 days of installation.
Printable View
hi
i want to make a trial version of my product which would expire after 30 days of installation.
You may want to take a look at ActiveLock. I have heard good things about it.
http://www.activelock.com/index.html
Hope it helps :wave:
Well, do something easier than using a third party activex!
Play with date and registry!
During the installation of the program, it will save the date of the installation!
Then everytime the program starts it will check the date and if it is > 30 days then it will be expired!
At the registry try to save the installation date , encrypted so noone can change it!
OR try dglienna's way!
:) :)
:blush: sorry.....As i saw at ActiveLock, the program is now open source! Well, it's better to use activelock then, and you won't have to worry about enrypted dates and things like that!
Sorry dglienna, i didn't know it!
well just as i saw the first reply from dglienna i downloaded the ActiveLock, but the problem is i dunno how to use it n neither i know how to save information in registries or sumthing like dat, i dint find the samples enough explanatory, therefore if one of u can tell me simple those methods i need to use !
A very simple way to do all these but not for 30 days but for 30 openings of the program is:
VB Code:
Public Sub RegisterOnce () SaveSetting "MyApp","Trial","Code","A" End Sub Public Sub Form_Load () Dim Var(2) Var(0) = GetSetting ("MyApp","Trial","Code") If Var(0) = "A" then msgbox "You have 30 times remaining" savesetting "MyApp", "Trial","Code", 1 ElseIf Var(0) = 30 then msgbox "Trial expired" end Else Var(1) = 30 - Var(0) msgbox "You have " & var(1) & " times remaining" savesetting "MyApp", "Trial","Code", Var(1) + 1 End If End Sub
I don't if it will work, but it should...! If you want i could make a better code for you, but i need some time!
Ok?(Don't forget to tell me if the code worked and if you need a better one, that works for sure!You can also rate my vote...)
I can help you if you want to use ActiveLock. It's a bit more involved, but they've been doing this for a lot of people, and it is relatively foolproof.
I downloaded a program with settings like that. The problem is that if I remove the key from the registry, it tells me that I still have 30 days left to use the program!
I haven't used ActiveLock, but did download it.
I made the code for you!
I can be trial for 30 days! You can register it and stop the trial! It can save the trial info, encrypted! And it works fine! Tested many many times!
Also it too small in size and it is only code, not ActiveX or any dll's!
Please rate if you like the code!
And if you want something more then let me know... ;)
well thankx alot Darkx greece, u did a gr8 a job, well thanks to dglienna also for activelock .. i started to use it but dint get much hang of it... but as darkx has used jus da codeing without ne activeX , then i guess this would be ne body's optimum choice.. n i would advise others around here as welll to give that code a try ... its working prefect !
with vb you have to distrubute ocx's anyway, 1 more isn't that far of a leap.