Problem in packaging and installing embedded exe in single sis file
Hi,
I have a .pkg file with an embedded .exe (another application) with following lines:
[INDENT]
addFiles = "\"embeddedapp.exe\" - \"!:\\sys\\bin\\embeddedapp.exe\""
postpack.pkg_postrules = addFiles
DEPLOYMENT += postpack[/INDENT]
When I am using selfsigned to package main application in .sis, it gets failed with following error:
[INDENT]
Auto-patching self-signed package.
Patching package file and relevant binaries...
Patching: Non-zero vendor ID (0x) is incompatible with self-signed packages in "embeddedapp_patched_caps.exe", setting it to zero.
Patching: Executable with capabilities incompatible with self-signing detected: "embeddedapp_patched_caps.exe". (Incompatible capabilities: "".) Reducing capabilities is only supported for libraries.
Patching: Unable to patch the package for self-singing.
Use a proper developer certificate for signing this package.
make[1]: Leaving directory `C:/Projects/mainapp'
ERROR: embeddedapp_patched_caps.exe is not a valid E32Image file.
Integrity check failed -5
ERROR: embeddedapp_patched_caps.exe is not a valid E32Image file.
Integrity check failed -5
ERROR: Automatic patching failed at C:\QtSDK\Symbian\SDKs\Symbian1Qt473\bin\createpackage.pl line 357.
make[1]: *** [ok_sis] Error 2
C:\QtSDK\Symbian\SDKs\Symbian1Qt473\epoc32\tools\make.exe: *** [sis] Error 2
13:40:27: The process "C:\QtSDK\Symbian\SDKs\Symbian1Qt473\epoc32\tools\make.exe" exited with code 2.
Error while building project MainApp (target: Symbian Device)
When executing build step 'Create SIS Package'[/INDENT]
I am not sure why it is patching the embeddedapp.exe file due to incompatible Capabilities. Following are the capabilities defined for embeddedapp .pkg file
[INDENT]symbian:TARGET.CAPABILITY += ReadUserData WriteUserData[/INDENT]
May be Selfsigned don't allow to embed Exes, I therefore tried symbiansigned.com certificate, it packaged successfully without any error, but the installation is getting failed.