Stopping DB after "free trial" etc

Sorry guys been working here :(
wiklendt,

The registering and ongoing keys can be a bit complicated as HiTechCoach says
there are a few ways of doing this
The registry is one way, serial in a text file hidden on PC (not ideal though) or the database property's.

i use my own version of software like peters
it has days of trial , times opened and register also function to expire the registered key after a predetermined time and re register via new key
(keys are made in a separate key gen db based on hard drive number)

As HiTechCoach says it takes Meany hours to code and refine as i have found out loll
Don't be in a hurry to purchase anything as if you can try and design your own ...there is a mountain of info about it on here try searching and have a look you will find lots of good bits of code to help.
if you get stuck then I'm sure HiTechCoach mike or myself will help out.

have to run here got to sleep as work tonight

tc
rob
 
Hi Mike / Guys involved,

i managed to finish a raw sample of the db writing the values to the registry.

it works like this-

start code runs the add registry code.
if values are found, it gets the values
if no values are found, it creates them and the gets them for the date calc.
todays date is added in the textbox and both are divided to get the number of days.
the select case handles the number of days

you change your variables in the basPublicVariables module which is always called.
i have set the keys to create a registry key
HKEY_CURRENT_USER_Software_Mike375_AWF
i have set the values as
NumericDataType
StringDataType.

in principle, it works. obviously, the data is harder to find if the registry keys are not so obvious. you could add in a condition that checks the installed date retrived x 86400 and then check that against the calculated value to see if they match. if they do, continue. if they dont, bail out.

Note.

the registry code is not mine. i found it on the internet and moved it around to suit what i needed. the code was written by Kenneth Ives which is noted in the comments. all i have done is split into groups and added the buttons. also, i changed the variable types to make the calulations work.

i have not error trapped this.

lastly,

i dont want to be held responsible for anyone not using this properly or accidentally deleting part strings. remember, the complete HKEY_CURRENT_USER_Software can be removed if the strings are altered so if you do this, its at your peril.

otherwise,

hope it comes in useful.

there is a form included FrmRegChoice which helps you test the registry edits. use Regedit to check the values you create.
 

Attachments

i Dont Want To Be Held Responsible For Anyone Not Using This Properly Or Accidentally Deleting Part Strings

........... :d
 
Nigel,

I down loaded it will play with it in the next few days.

When I opened it I has this splt second thought it might have had an Autoexec and my regisrty for out of the box:D
 
Nigel,

I down loaded it will play with it in the next few days.

When I opened it I has this splt second thought it might have had an Autoexec and my regisrty for out of the box:D
Hi Mike,

there is no autoexec, thought you could what you wanted. open the db, open the Form1 ( as this is your form ). the text4 & text11 are empty.
press the button and the code is initiated, the textboxes filled and the checks carried out.

actually, when this happens, both textboxes have the same values as they are calculated by the date thus both being created at the same time. its only when the date changes there is a difference in the textbox values.

so to rework it, you could alter the calculated date to be date + 5 * 86400 or something like that to push the trial end date away. the nearer you get, the difference in numbers.

fundementally, once the values are stored, moving the computer dates doesnt have any effect as it always uses the date stored.

hope it works for you if you intend to use it.

there is another form which has buttons on clearly listed for testing. delete, create, check etc.


Nigel
:)
 
Nigel,

As I said I have only briefly opened it.

When the registry is used can it be done on more than .mdb where the start/finish are the same.
 
hi mike,

Yes. It's the registry so it could be used by anything. For another.mdb, you would have to import the modules in so it knows what to do. Remember though that the values will be read by all dbs so any data change happens globally.

Nigel
 
Nigel,

If I play with that on one of my own computers is it much of a deal to undo....of course I can format and reinstall.

I think initially for real world use I will stick with the self contained way until I get this registry thing under control. I have visited the registry once and that was to undo the security setting for Runtime 2007 and that was with the help of KenHigg.
 
Hi Mike,

it should be pretty safe without having to reinstall & format. firstly, in the db is a FrmRegChoice. in the form, is a button called Delete Registry. this will delete the complete registry string
HKEY_CURRENT_USER/Software/Mike375/AWF and all its subkeys.

i have set up a module to set your string address but my comment of "do so at your own peril" is just in case you delete the variable that holds Mike375 & AWF as this then leaves the code to delete
HKEY_CURRENT_USER/Software!!

you can also browse to the keys through regedit and locate with the above address. its pretty safe while keeping the code as is.

Nigel
 

Users who are viewing this thread

Back
Top Bottom