×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Feb 2006
    Location
    Los Angeles
    Posts
    217

    multiple optional add-on sis files

    We have an application that will have many (100+) optional add-on packages (all passive content). Any combination of add-ons can be installed/uninstalled and each can be upgraded.

    I'm currently installing each as TYPE=SA with a dependency for the main application. This requires that the user know and/or remember where they installed the original app and then install the add-on to the same memory location. I'd like to make drive selection automatic, but can't find a way to do it. Any suggestions? (What I'd really like to do is programmatically set the value of ! in the PKG file.)

    Here's what I've tried and how it's failed:

    - - -

    TYPE=SP

    >>>Changes main app version number causing problem with subsequent add-ons installs and removals

    - - -

    IF exists("c:\system\apps\myapp")
    ...install to c:
    ELSEIF exists("e:...")
    ...install to e:
    ELSE
    ...show error and exit
    ENDIF

    >>>SIS ends up with two copies of all files. Neither TEXTEXIT nor TEXTABORT force the install to cancel.

    - - -

    IF exists("!:\system\apps\myapp")
    ...install to !:
    ELSE
    ...show error and exit
    ENDIF

    >>> exists("!:\...") always evals as false. Same problem with TEXTEXIT and TEXTABORT

    - - -

    TEXTFILE: tell user to install to same dir
    install to !:\

    >>> TEXTFILE displayed after install device dialog

    - - -

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

    Re: multiple optional add-on sis files

    Have you checked for path or file? According to the documentation "exists" works with filenames.

  3. #3
    Regular Contributor
    Join Date
    Feb 2006
    Location
    Los Angeles
    Posts
    217

    Re: multiple optional add-on sis files

    Quote Originally Posted by wizard_hu_ View Post
    Have you checked for path or file? According to the documentation "exists" works with filenames.
    I have...It does work with explicit paths, like "c:\path\to\file" or "e:\path\to\dir", but then I have two copies of the file I want to install in the SIS (see pseudo-code in OP). If I try it with the bang variable, "!:\path\to\file", exists always evaluates false.
    Last edited by proberts; 2009-05-05 at 01:34. Reason: clarification

Similar Threads

  1. Multiple programs within single SIS file dilema
    By LongSteve in forum Symbian
    Replies: 6
    Last Post: 2008-03-20, 06:05
  2. Multiple SIS files with and without executables/libraries
    By jappers in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 1
    Last Post: 2007-05-15, 17:06
  3. Replies: 1
    Last Post: 2007-04-19, 06:37
  4. Adding files to apps via SIS?
    By drakest1 in forum Symbian
    Replies: 1
    Last Post: 2004-05-17, 21:40
  5. Large sis files
    By nikohaatainen in forum Symbian
    Replies: 1
    Last Post: 2002-09-22, 14:30

Posting Permissions

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