×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Super Contributor
    Join Date
    Mar 2004
    Location
    Bangalore,India
    Posts
    2,146

    Information from the sis file?

    Hi,



    Is there a way to get the build number(version information - major/minor ) and the timestamp(creation date) from the sis file? I read somewhere about the SISField struct and the SISVersion, SISDate and other sis related field informations.



    I need this information so that I can display the about dialog. I believe in the sis would pick up the build number and other details from the pkg file? If thats the case then its more or less known to us, but what about the timestamp, how do I get this information.



    Regards

    mayank

  2. #2
    Super Contributor
    Join Date
    Jun 2006
    Location
    Moscow, Russia
    Posts
    803

    Re: Information from the sis file?

    Regards,
    ivey

  3. #3
    Super Contributor
    Join Date
    Nov 2004
    Location
    Wiltshire, UK
    Posts
    3,644

    Re: Information from the sis file?

    What I think mayank is refering to is on the device.

    Its a lot easier if you just have a build script at the start that creates file called "version.h" or whatever and then use the constants in that file where you need to show build numbers etc.

    The API's you require are Symbian partner API's and not in the general SDKs shipped by Nokia, UIQ or SE.

  4. #4
    Super Contributor
    Join Date
    Mar 2004
    Location
    Bangalore,India
    Posts
    2,146

    Re: Information from the sis file?

    yeah paul is correct..i am saying that lets say we install a sis on the device..and then when i show the about dialog..i should be able to read the build and date from the sis somehow so that i am always showing the updated and correct value.

    I know that the build details we can read from a .h file where its like i have to replace it everytime..coz i am assuming the sis also picks up that information from the pkg file itself..

    For instance this line

    ; standard SIS file header
    #{"AppName"},(AppUid),1,0,0

    so that 1,0,0 is actually the minor and major build thing i am assuming..!!

    Cheers
    mayank

  5. #5
    Super Contributor
    Join Date
    Nov 2004
    Location
    Wiltshire, UK
    Posts
    3,644

    Re: Information from the sis file?

    I just rewrite the pkg file with the version numbers using a perl script.

    Anyway what ever you do you need to change the version number in the pkg file anyway otherwise it will show the wrong number in the installed apps list and you will fail Symbian Signed
    Last edited by Paul.Todd; 2007-07-10 at 21:17.

  6. #6
    Super Contributor
    Join Date
    Mar 2004
    Location
    Bangalore,India
    Posts
    2,146

    Re: Information from the sis file?

    I agree..so the version number is more or less like a self entered thing..that i can put in the pkg file..and at the sametime maintain a header file from where i can read the information..

    but what about the timestamp..does that also have to be like a hardcoded value that i have to read everytime..or just pass the hardcoded time to the strings i want to show on the about dialog..

    cant i have some sort of more reliable way though which i can read these information using some api..?

    Cheers
    mayank

  7. #7
    Super Contributor
    Join Date
    Nov 2004
    Location
    Wiltshire, UK
    Posts
    3,644

    Re: Information from the sis file?

    What do you mean by timestamp?

    When I build the project I use a batch file e.g. buildProject.bat S60V3 1 2

    "1 2" are the major and minor version numbers. The build number is generated from the month + day e.g. 0712
    The S60V3 selects the correct platform and files.

    I seem to remember there is some issue with using large numbers (for example subversion or Perforce change set numbers) so I would'nt recommend using that.

  8. #8
    Super Contributor
    Join Date
    Nov 2004
    Location
    Wiltshire, UK
    Posts
    3,644

    Re: Information from the sis file?

    As I said, the API is a Symbian Partner API, so you need to be a platinum partner to use.

    I have not used it any project for this purpose. We do use the API but this is to get the list of installed applications and their version, not the version of our application, we just use hard coded values during compile time.

    Trust me, just build this into your application at compile time.

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. Contacts fields order??
    By timatima in forum Symbian
    Replies: 1
    Last Post: 2007-06-08, 13:51
  3. additional information in the sis file
    By xdimas in forum Symbian
    Replies: 3
    Last Post: 2004-07-23, 10:56
  4. unable to merge two sis file on device .
    By amardeep in forum Symbian
    Replies: 0
    Last Post: 2003-04-25, 08:08
  5. sis file
    By MiCo in forum Symbian
    Replies: 1
    Last Post: 2002-11-20, 16:05

Posting Permissions

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