I don't know the details of what you are doing, but our product consists 
of an install app and a main app.  At startup our main app looks to see 
if the install app is still there and deletes it so the user doesn't 
have to.

I don't know if this is helpful at all

Marco Pantaleoni wrote:

> On Thu, Feb 21, 2002 at 11:06:55AM -0800, Danny Epstein wrote:
> 
>>>does anyone knows if it is possible to remove the running application
>>>from the storage upon exit ?
>>>
>>See Ben Combee's post:
>>http://www.escribe.com/computing/pcpqa/m36104.html
>>
> 
> Thanks for the pointer. But it is still not very clear to me how to
> proceed. It seems from the post that there are (at least) two ways:
> 
>  1. Copy the deletion code in a piece of heap allocated memory, and jump
>     into it using assembly.
>     It is not clear to me how to do so having the OS close the original
>     application (which is needed to have the app db reference count drop
>     to zero, in order to have the deletion code working).
> 
>  2. Modify the startup code (libcrt.a built from crt0.c in prc-tools ?)
>     and use a separate launch code.
>     This is even more nebulous, since the app db is opened by the OS
>     anyway...
> 
> I apologize for my ignorance, but I'm quite new to Palm OS.
> 
> 
>>The system opens your apps database and locks its code resource when it
>>launches your app, so you can't delete it until after the code resource is
>>unlocked and the database is closed. This is the case in all versions of
>>Palm OS to date.
>>
> 
> I know. The point is that I'm writing (it's finished if we don't consider
> this last point) an install application that performs some tasks useful
> only on the first run. After that, the application is useless and it
> should be deleted automatically if possible, to avoid the user the
> hassle to do it by himself, and to avoid any possible confusion.
> 
> Please, if you could share any further insight it would be very
> appreciated!
> Thanks,
> Marco
> 
> 


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to