Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jun 2009

    Help plzzzzzzzzz!!!!!!! DELETE preinstall sis only

    plz help me

    I want to make a sis file setup to delete file or folder during installation

    what is the code in the PKG????????????????????????????????????????

    FILENULL....is only during removal>

    I Want it to delete during INSTALLATION only?

    THANK you!
    Last edited by leisurelife_kbj; 2009-06-07 at 20:38.

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003

    Re: Help plzzzzzzzzz!!!!!!! DELETE preinstall sis only

    you would need to make a executable that is run during the installation. Unfortunately that is not allowed to be done with PA type sis files.

  3. #3
    Registered User
    Join Date
    Mar 2006

    Re: Help plzzzzzzzzz!!!!!!! DELETE preinstall sis only

    As yucca told it is not allowed . leisurelife_kbj i can suggest u a
    1:Identify when is my first launch:
    on installation place a file example:"CheckStatusInstallation.txt" having a flag 0 and then on first launch write 1 to it.Then when u launch for the second time u check the content of the time if it is 1 then it means that it is not your first launch.Bundle this "CheckStatusInstallation.txt" with a default value 0

    2: Delete the file or folder on the first launch:
    As you now know that this is the first launch. Try a run a code in constructor to delete that specific folder or file.

    void MyClassContainer:Constructor()
    void MyClassContainer::CheckStatusL()
         RFs fs;  
        //initialise fs.
        RFile file;
       //initialise fs.
        TInt Status;
       if (KErrNone == file.Open(fs, _L("CheckStatusInstallation.txt"), EFileRead))
                TInt Size = 0;
                TBuf8<10> tmp;
                file.Read(tmp, tmp.MaxLength());
                TLex8 lex(tmp);
    	    CleanupStack::PopAndDestroy(); //file
    	    if (DbStatus == 0)
    		if (BaflUtils::FileExists(fs, FileToDelete))  //delete the file
                //if   you want to delete a folder write a code here
        //check and close file,fs  if not will get  alloc error
    Kamal :)
    You never expect what expects you.

Similar Threads

  1. Replies: 1
    Last Post: 2007-04-19, 06:37
  2. Install a sis file on a N80 phone
    By kaiten-sushi in forum Symbian
    Replies: 20
    Last Post: 2007-02-06, 12:24
  3. unable to merge two sis file on device .
    By amardeep in forum Symbian
    Replies: 0
    Last Post: 2003-04-25, 08:08
  4. can not successfully link any sample using .NET
    By lobotomat in forum Symbian Tools & SDKs
    Replies: 2
    Last Post: 2002-08-20, 00:29
  5. Creating and Delete databases
    By -kevbo- in forum Symbian
    Replies: 1
    Last Post: 2001-12-13, 12:54

Posting Permissions

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