×

Discussion Board

Results 1 to 11 of 11
  1. #1
    Regular Contributor
    Join Date
    Sep 2006
    Posts
    90

    Unhappy Is there any way to judge if it is an uninstallation or update?

    Hi,

    I met a problem that my app needs to delete the cache files when is uninstalled and keep it if it is an update, but seems there is no way to check if this is an update or uninstalltion? Any solution for this problem? Either modify pkg file or dynamically check in app.

    THANKS .

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,697

    Re: Is there any way to judge if it is an uninstallation or update?

    Search for upgrading rules in the documentation (SDK Help, or the on-line one, http://library.forum.nokia.com)

  3. #3
    Regular Contributor
    Join Date
    Sep 2006
    Posts
    90

    Re: Is there any way to judge if it is an uninstallation or update?

    Quote Originally Posted by wizard_hu_ View Post
    Search for upgrading rules in the documentation (SDK Help, or the on-line one, http://library.forum.nokia.com)
    Thanks wizard I will check that. BTW, I am not clear about the update options. Much appreciated if you can give me some more info...

  4. #4
    Regular Contributor
    Join Date
    Sep 2006
    Posts
    90

    Re: Is there any way to judge if it is an uninstallation or update?

    Which e.g. i want to know if i use PU type in the package, is this a valid sis installation file? that means if no previous version installed, can this sis be installed just as the normal sis file? And if this type can be used to meet my need?

    Thanks

  5. #5
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,697

    Re: Is there any way to judge if it is an uninstallation or update?

    Those aspects are also documented there (in the on/offline documentation). Since "Upgrading rules" is linked by the related page, you also find it in the list of hits: "package-header in Package file format". And of course you can simply try their behaviour.
    Ok, the PU-question is not really documented. Personally I do not believe that you can install a PU package without having the original application installed - although the description somehow suggest that, you can try.

  6. #6
    Regular Contributor
    Join Date
    Sep 2006
    Posts
    90

    Re: Is there any way to judge if it is an uninstallation or update?

    OK
    I will try that. Hope it works Thanks again wizard.

  7. #7
    Regular Contributor
    Join Date
    Sep 2006
    Posts
    90

    Re: Is there any way to judge if it is an uninstallation or update?

    HELP!! I met another problem. After i installed my app, i cannot remove it. When removing or re-installing, an error of "unable to delete file" ocurred. If i delete the cache files (these files are in private folder) in my app when uninstalling, there is no errors. My pkg is of type SA.

    What is the matter????...
    I have manually deleted the cache files through y-browser, but the error still there..

  8. #8
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,697

    Re: Is there any way to judge if it is an uninstallation or update?

    Can it happen that your application refuses to exit when the installer asks it to do so? SetSystem, SetBusy and similar stuff, ignoring EEikCmdExit in GUI apps, etc.
    The installer engine can delete anything, unless if the file/folder is locked for some reason. And in your private folder files are likely locked (kept open) by your own code. Of course there is a minor chance of IPC magics, RFile::TransferToProcess/Server/Client, it also matters if you use them.

    The
    I have manually deleted the cache files through y-browser, but the error still there..
    -part is a bit strange. Y-Browser can not access your private path by default.

  9. #9
    Regular Contributor
    Join Date
    Sep 2006
    Posts
    90

    Re: Is there any way to judge if it is an uninstallation or update?

    My Y-Browser is high capability which can access the private path.
    My processes will be terminated when uninstalling or re-installing. The only difference is that in uninstallation, i deleted the cache files and messages created by the app by an exe which marked as RB, RW in pkg file.

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

    Re: Is there any way to judge if it is an uninstallation or update?

    Quote Originally Posted by JohnsonZ View Post
    My Y-Browser is high capability which can access the private path..
    You should uninstall it, and delete any Copies of it immidiately. I'm assuming that you are using illegally modified version of an application I have developed, since I have never distributed "High capability" version of that application.

  11. #11
    Regular Contributor
    Join Date
    Sep 2006
    Posts
    90

    Re: Is there any way to judge if it is an uninstallation or update?

    Quote Originally Posted by symbianyucca View Post
    You should uninstall it, and delete any Copies of it immidiately. I'm assuming that you are using illegally modified version of an application I have developed, since I have never distributed "High capability" version of that application.
    OH, i dont konw and if that, i will delete it.

Similar Threads

  1. How to judge whether the CharMap is opened or not?
    By bellshine in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2006-07-06, 10:05
  2. How to judge two heap are equal?
    By starryshen in forum Symbian
    Replies: 2
    Last Post: 2004-03-18, 06:44
  3. How to judge the cursor's position?
    By yinjialiang in forum Symbian
    Replies: 0
    Last Post: 2003-09-15, 09:34
  4. how to judge a Directory exist or not
    By zhang_guoqing in forum Symbian
    Replies: 3
    Last Post: 2003-06-11, 15:08
  5. how to judge a MMS is a advertisement?
    By ddhhhkj in forum General Messaging
    Replies: 5
    Last Post: 2003-03-12, 08:08

Posting Permissions

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