×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Mar 2007
    Posts
    35

    how to retain some data or usage file during re-installation of same application

    Hi All, I am wondering how can i retain the usage/data files of my application user who wants to re-install my application. Currently re-installing the application overwriting the data/usage files which resides in the private folder of the application.

    Please put some light into this. Also there would be some new user to this application. So is it possible to have a single .sisx that can cater to both the purposes or two sisx file have to be created for this.

    Thanks in advance for your kind help.

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166

    Re: how to retain some data or usage file during re-installation of same application

    basically simply do not include the files in your installation, i.e. remove them from pkg, and make them during runtime. Then any re-installation to same drive would not change the files.

  3. #3
    Regular Contributor
    Join Date
    Nov 2009
    Posts
    200

    Re: how to retain some data or usage file during re-installation of same application

    It is also possible to conditionally install files in .pkg file

    IF EXISTS("filepath")
    <install some files>
    ENDIF

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,684

    Re: how to retain some data or usage file during re-installation of same application

    The issue has been analyzed in a long thread.
    Installing a SA (SISAPP, so the standalone package type, which is also the default one) overwrites existing files and removes files which were deployed by a previous installation, but not contained in the current one.
    If you try "IF EXISTS" that will simply remove the file (because of the second half of the previous statement).
    You can try experimenting with a partial upgrade (PU), but that one can not be installed alone. Depending on your distribution channel you can try keeping the current application package available and release upgrades only in the future.

  5. #5
    Regular Contributor
    Join Date
    Nov 2009
    Posts
    200

    Re: how to retain some data or usage file during re-installation of same application

    Thanks wizard_hu, didn't think this through

  6. #6
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,359

    Re: how to retain some data or usage file during re-installation of same application

    Yucca is right, any files that are modified by the application (e.g. setting files) or that are not intended to be replaced on re-install should not be declared in the package file, or if it is (for initial deployment purposes) then a copy of it should be modified and actively used. If they are to remain on the phone even after uninstall (there should be a really good reason for that) then they should be saved outside the private directory.

    A PU-type sis would also work, but that requires a dedicated SIS file which can only do upgrades but fail if the application is not already installed.
    -- Lucian

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

Similar Threads

  1. MIDlet data security and file type after installation
    By Hak in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2010-02-13, 21:12
  2. Injecting data in the installation file
    By Christophe.A in forum Mobile Java General
    Replies: 9
    Last Post: 2010-01-11, 18:08
  3. Replies: 6
    Last Post: 2009-11-29, 19:14
  4. Question: About usage of Silent Installation API for certification issue
    By paipeng in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 4
    Last Post: 2009-05-29, 15:45
  5. how to retain private data on master reset
    By prabhu_a in forum Symbian
    Replies: 13
    Last Post: 2008-10-28, 06:58

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×