-
Suggestion
-
Resolution: Done
-
P2: Important
-
4.7.0
-
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