I would really appreciate if someone maybe close to Adobe would shed some
light on the issue. Can it be done, are there some workarounds. It's really
annoying, we're few days from release and client just found this "bug". The
bug is that ApplicationStorageDirectory doesn't get deleted on uninstall.
Hence, all the user's settings remain after he uninstalls the app and
installs it again. (Plus it's very ugly to have all the files there forever)


Not sure if I'm doing something wrong, on the application launch I'm
copying SQLite database from applicationDirectory to
applicationStorageDirectory, in order to be able to read and write.

Of course, I check if the database already exists there or not.

var dbFile:File = File.applicationDirectory.

resolvePath("database.db");

var DBDestination:File =
File.applicationStorageDirectory.resolvePath("db/database.db");


if (!DBDestination.exists)
{
dbFile.copyTo(DBDestination);
}

Everything is fine here, up to the point when application is
uninstalled. Database stays there even after the uninstall and hence
breaks some critical functionality.

It might be that I'm not following some best practices, or there is a
way to manually clean up the stuff, I don't know. Any ideas?

Alen







On Fri, Dec 5, 2008 at 7:24 PM, b_alen <[EMAIL PROTECTED]> wrote:

>   Not sure if I'm doing something wrong, on the application launch I'm
> copying SQLite database from applicationDirectory to
> applicationStorageDirectory, in order to be able to read and write.
>
> Of course, I check if the database already exists there or not.
>
> var dbFile:File = File.applicationDirectory.resolvePath("database.db");
>
> var DBDestination:File =
> File.applicationStorageDirectory.resolvePath("db/database.db");
>
>
> if (!DBDestination.exists)
> {
> dbFile.copyTo(DBDestination);
> }
>
> Everything is fine here, up to the point when application is
> uninstalled. Database stays there even after the uninstall and hence
> breaks some critical functionality.
>
> It might be that I'm not following some best practices, or there is a
> way to manually clean up the stuff, I don't know. Any ideas?
>
> Alen
>
>  
>

Reply via email to