×

Discussion Board

Results 1 to 10 of 10
  1. #1
    Regular Contributor
    Join Date
    Oct 2010
    Location
    chennai
    Posts
    97

    Exclamation How to run one application while uninstalling another application

    Hi..
    I need to delete some un necesary files in my mobile(C: ) drive while uninstalling some "UninstallDemo.cpp" application. For this I am creating a program(deleteFiles.cpp) which detects my files and deletes them .. what I need it I need to run deleteFiles.cpp while I uninstall the my UninstallDemo app.. I read the docs and need to change in .pkg files for it using some RR and RW .. but I am confused using it.. please give me a code snippet which suites my requirements..
    Thanks & Best Regards
    Srinivas

  2. #2
    Regular Contributor
    Join Date
    Dec 2010
    Posts
    142

    Re: How to run one application while uninstalling another application

    just add your cleaner exe to your pkg file with RR, RW options, for example
    Code:
    "$(EPOCROOT)Epoc32\release\$(PLATFORM)\$(TARGET)\CUninstall.exe"		-"!:\sys\bin\CUninstall.exe" , RR,RW

  3. #3
    Regular Contributor
    Join Date
    Oct 2010
    Location
    chennai
    Posts
    97

    Re: How to run one application while uninstalling another application

    My deleting file class is UninstallDemo.cpp and it should be called when I uninstall another application SampleTest.cpp..

    So I am including in sampleTest_Template.pkg file the bellow lines


    "$(EPOCROOT)Epoc32\release\$(PLATFORM)\$(TARGET)\UninstalDemo.exe" -"!:\sys\bin\UninstalDemo.exe",RR,RB
    "/S60/devices/S60_3rd_FP2_SDK_v1.1/epoc32/release/$(PLATFORM)/$(TARGET)/SampleTest.exe" - "!:\sys\bin\SampleTest.exe"

    but its not working please let me know where am I doing wrong
    Thanks & Best Regards
    Srinivas

  4. #4
    Regular Contributor
    Join Date
    Dec 2010
    Posts
    142

    Re: How to run one application while uninstalling another application

    Quote Originally Posted by srinivas.symbian View Post
    My deleting file class is UninstallDemo.cpp and it should be called when I uninstall another application SampleTest.cpp..

    So I am including in sampleTest_Template.pkg file the bellow lines


    "$(EPOCROOT)Epoc32\release\$(PLATFORM)\$(TARGET)\UninstalDemo.exe" -"!:\sys\bin\UninstalDemo.exe",RR,RB
    "/S60/devices/S60_3rd_FP2_SDK_v1.1/epoc32/release/$(PLATFORM)/$(TARGET)/SampleTest.exe" - "!:\sys\bin\SampleTest.exe"

    but its not working please let me know where am I doing wrong
    class? you should have separate exe (requires another mmp in your project) for that.

  5. #5
    Regular Contributor
    Join Date
    Oct 2010
    Location
    chennai
    Posts
    97

    Re: How to run one application while uninstalling another application

    Ya..I have.. actually UninstalDemo is not a class .. UninstalDemo is seperate project which detects unwanted files and deletes them and SampleTest is another project .. I need to use UninstalDemo.exe while uninstallation of SampleTest application.
    Thanks & Best Regards
    Srinivas

  6. #6
    Regular Contributor
    Join Date
    Dec 2010
    Posts
    142

    Re: How to run one application while uninstalling another application

    do not use ,RR,RB

    use ,RR,RW

  7. #7
    Regular Contributor
    Join Date
    Oct 2010
    Location
    chennai
    Posts
    97

    Re: How to run one application while uninstalling another application

    "$(EPOCROOT)Epoc32\release\$(PLATFORM)\$(TARGET)\UninstalDemo.exe" -"!:\sys\bin\UninstalDemo.exe",RR,RW
    I am adding above line in SampleTest_template.pkg is it correct r not.. because I am not getting any result by using this.
    And one more thing I am getting the SampleTest_template.pkg after building the sisx for SampleTest application only.. after that I am modifying the .pkg file and adding the
    "$(EPOCROOT)Epoc32\release\$(PLATFORM)\$(TARGET)\UninstalDemo.exe" -"!:\sys\bin\UninstalDemo.exe",RR,RW
    line just above the
    "/S60/devices/S60_3rd_FP2_SDK_v1.1/epoc32/release/$(PLATFORM)/$(TARGET)/SampleTest.exe" - "!:\sys\bin\SampleTest.exe"
    in SampleTest_template.pkg file .. Am I doing correct.. If there is any mistake plz let me know..
    Thanks & Best Regards
    Srinivas

  8. #8
    Regular Contributor
    Join Date
    Dec 2010
    Posts
    142

    Re: How to run one application while uninstalling another application

    you need to run makesis and signsis afterwards.

    Add this line to pkg:

    "/S60/devices/S60_3rd_FP2_SDK_v1.1/epoc32/release/$(PLATFORM)/$(TARGET)/UninstalDemo.exe" - "!:\sys\bin\UninstalDemo.exe",RR,RW

    Open command prompt (Run -> cmd)
    change directory to the directory of pkg file.
    run makesis and signsis to create new sis.

    Here is a wiki link explaining makesis/signsis procedure.
    http://wiki.forum.nokia.com/index.ph...ning_sis_files

  9. #9
    Regular Contributor
    Join Date
    Oct 2008
    Location
    Oslo, Norway
    Posts
    329

    Re: How to run one application while uninstalling another application

    Hi,

    Yes - FR, RR, RW are the options to use. But you'll need to sign the sis package with a trusted certificate. RUNINSTALL (RI) and RUNREMOVE (RR) options do not have any effect in self-signed SIS packages.

    Just out of curiosity, from which folder(s) does the uninstaller need to remove files?

  10. #10
    Regular Contributor
    Join Date
    Oct 2010
    Location
    chennai
    Posts
    97

    Re: How to run one application while uninstalling another application

    any drive in mobile for ex.. I gave file path as C:\\others\\data\\temp.txt and E:\\others\\temp2.png.. So the FR,RR,RW works only for signed sis package.. and they don't work for sisx.. thats what u r trying to say.. ri8.?
    Thanks & Best Regards
    Srinivas

Similar Threads

  1. Replies: 4
    Last Post: 2010-06-15, 13:52
  2. Replies: 4
    Last Post: 2010-03-31, 17:55
  3. Problem while uninstalling the application?
    By PopAndDestroy in forum Symbian
    Replies: 2
    Last Post: 2009-12-16, 19:32
  4. Replies: 2
    Last Post: 2009-01-30, 03:16

Posting Permissions

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