If you really want to do this, the answer is in the Palm API reference.
Just create a preference with a creator ID different than your program and
it wont get deleted when the program is deleted.
But now let's talk about the implications. Why do you think your apps
deserves the right to polute and leave garbage on somebody else's device?
What if every Palm app does this? you could have entires parts of memory
just filled with junk. Is your app worth that much? Anyway you can download
from PalmGear a freeware preference editor which allows anybody do delete
the preferences (search for preference editor). Any user deleting your app
and then running the preference editor would find the orfaned preference
and be able to delete it in less time than it took me to write this sentence.
Many solutions have already been provided in response to your first email.
Take for example what I do in my apps: my app is free to try but has a
limit of 7 entries when it is unregistered. When people register they send
me their HotSync ID and a generate a number which when entered in the
program removes the 7 entry limit. If they dont like my app then they just
delete it and no garbage left behind.
Plus this way if a hacker really wants to crack my app he will have to look
at the assembly code and then distribute the crack, but this is definetly
going to take more time than -any- user using a preference editor. And wait
until word circulates in the newsgroups that your app leaves stuff
behind... it's going to be a bad reputation for you.
Chris
At 08:00 PM 1/19/2000 , you wrote:
>Definitely the wrong question to ask in this group! Too bad... it is a very
>interesting programming question and one where the possible solutions would
>be interesting to read about.
>
>IMHO requiring a license and keeping people from using software who don't
>get a license is an economical necessity and it is an extrememly common
>practice.
>
>To keep everyone in this group happy. How about if we popup up a dialog the
>first time an app executes stating:
>
>"This software requires a license. To facilitate a fully functional trail
>period persistant information about the date the application was first
>executed will be stored on your device. If you do not want this to occur
>click the Exit button and delete this applicaiton from your device."
>
>Ok... now lets discuss possible solutions.
>
>- Dan
>
> > -----Original Message-----
> > From: Roger Chaplin [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, January 18, 2000 7:16 PM
> > To: [EMAIL PROTECTED]
> > Subject: RE: Demo Crippling
> >
> >
> > > Answer: look into the prefmgr
> > >
> > > Warning: most people are firmly against apps that
> > permanently eat up memory
> > ^^^^^^--VEHEMENTLY!!
> > > for the "priviledge" of previewing them. It would be
> > better to cripple your
> > > demo in another manner.
> >
> > --
> > Roger Chaplin
> > <[EMAIL PROTECTED]>
> >
---
Christian Vandendorpe ([EMAIL PROTECTED])
http://www.zorglub.com