Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-13367

Qt 4.7 on Symbian: Impossible to use FILERUN, RUNINSTALL with application installs using SIS file

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 4.7.2
    • 4.7.0
    • Build tools: qmake
    • None
    • Symbian OS (all)

    • 494ce0dac35c7ade0ce78589878597a7ca912864,50b2477e6ffd64a0730cc5c0f0a6190b1a6b5861

      I write a simple console or GUI application and want to run it upon installation via SIS file/Symbian OS installer. There is no way to do that via my .pro file as the Symbian installer chokes on the syntax of the SIS file (Installer error at the last step in the .pkg below)

      If I add the following lines to my .pro:

       
      myrunner.pkg_postrules = "\"$${EPOCROOT}epoc32/release/$(PLATFORM)/$(TARGET)/$${TARGET}.exe\"- \"!:\\sys\\bin\\$${TARGET}.exe\", FR, RI"
      DEPLOYMENT += myrunner
      

      I see the following double entries for the .exe in the autogenerated .pkg:

       
      ; W:/myapp_template.pkg generated by qmake at 2010-09-02T09:55:51
      ; This file is generated by qmake and should not be modified by the user
      ;
      
      ; Language
      &EN
      
      
      ; SIS header: name, uid, version
      #{"myapp"},(0x200267E9),1,0,0
      
      ; Localised Vendor name
      %{"Vendor"}
      
      ; Unique Vendor name
      :"Vendor"
      
      
      ; Manual PKG pre-rules from PRO files
      ; Default dependency to Qt libraries
      (0x2001E61C), 4, 7, 0, {"Qt"}
      ; Default HW/platform dependencies
      [0x101F7961],0,0,0,{"S60ProductID"}
      [0x102032BE],0,0,0,{"S60ProductID"}
      [0x102752AE],0,0,0,{"S60ProductID"}
      [0x1028315F],0,0,0,{"S60ProductID"}
      [0x20022e6d],0,0,0,{"S60ProductID"}
       
      
      ; Executable and default resource files
      "/epoc32/release/$(PLATFORM)/$(TARGET)/myapp.exe" - "!:\sys\bin\myapp.exe"
      "/epoc32/data/z/resource/apps/myapp.rsc" - "!:\resource\apps\myapp.rsc"
      "/epoc32/data/z/private/10003a3f/import/apps/myapp_reg.rsc" - "!:\private\10003a3f\import\apps\myapp_reg.rsc"
      
      ; Manual PKG post-rules from PRO files
      "/epoc32/release/$(PLATFORM)/$(TARGET)/myapp.exe"- "!:\sys\bin\myapp.exe", FR, RI
      

      The workaround is that I have to manually manage my .pkg , which defeats the purpose of using one .pro for all OSes. For example, removing the first myapp.exe copy instruction above and leaving only the FR, RI one solves the installer error

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            e0348803 Miikka Heikkinen
            simathur Siddharth Mathur
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes