×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Sep 2010
    Posts
    18

    Silent Install Returns KSWInstErrSecurityFailure on S60 3.2

    Hi Everybody.

    I'm using the silent install example http://wiki.forum.nokia.com/index.ph...silentinst.zip with S60 3rd FP2 1.1 SDK and an S60 3.2 phone (6790 Surge).

    I've been having a couple problems.

    I inferred from the source code that it wants to download the sisx file from a website prior to installation, so I signed the included siltest.sis with my cert17 certificate (has TrustedUI) and posted a copy on my personal site, and changed the _LIT containing the URL in the SilentInstEngine.cpp ..

    I signed the silent install app with the same certificate.. so I should be able to use any capabilities except DRM, ALLFILES, and TCB.

    When I choose download&install in the demo app, a dialog pops up saying it downloaded the file to e:\download .. the same kind of dialog that would have popped up if I had downloaded the sisx using the browser. So that is problem #1: I expected the download to be silent, and it wasn't.

    After that, the program crashed with KERN-EXEC 3.

    I read that one possible fix for this is to increase the stacksize in the mmp file, so I added "EPOCSTACKSIZE 0x5000" and indeed, it stopped crashing with that error, but my sis file wasnt getting installed.

    I then decided to bypass the download part and just try the install, so I copied my sisx to the phone at a known location and added an "Install" menu option that simply calls the SilInstall() member of the install engine.

    The part where the magic is supposed to happen:

    iOptions.iUpgrade = SwiUI::EPolicyNotAllowed;
    iOptions.iOCSP = SwiUI::EPolicyNotAllowed;
    iOptions.iDrive = 'C';
    iOptions.iUntrusted = SwiUI::EPolicyNotAllowed;
    iOptions.iCapabilities = SwiUI::EPolicyNotAllowed;
    iOptionsPckg = iOptions;
    iLauncher.SilentInstall(waiter->iStatus,FName,iOptionsPckg);
    waiter->Execute();
    CleanupStack::PopAndDestroy( waiter );



    after that code executes, waiter->iStatus.Int() is -30475 which is KSWInstErrSecurityFailure . Since then, I have tried installing to E instead of C with the same result. I have also tried setting iOptions.iUntrusted to SwiUI::EPolicyAllowed, and no luck there either.

    Finally, I tried both of the above, and tried to install Nokia's CameraWrapper.sisx which happens to be signed with all capabilities, and not even that one would install! I always get the same KSWInstErrSecurityFailure error.

    Can anyone provide some insight into this issue?

    Thanks,
    Craig

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

    Re: Silent Install Returns KSWInstErrSecurityFailure on S60 3.2

    You could try a non-silent install, just to see if the messages say something useful.

  3. #3
    Registered User
    Join Date
    Sep 2010
    Posts
    18

    Re: Silent Install Returns KSWInstErrSecurityFailure on S60 3.2

    UPDATE:

    I got the install to work by setting iOptions.iCapabilities = SwiUI::EPolicyAllowed;

    That wouldn't suppress the download dialog, but I don't need that functionality at this point anyway. If I did though, I think I could download the file silently using an http session.

Similar Threads

  1. Replies: 3
    Last Post: 2010-09-13, 02:23
  2. Silent Install problem
    By michael78 in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 15
    Last Post: 2010-05-04, 11:49
  3. Silent Install in S60 2nd
    By laomedon78 in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 5
    Last Post: 2009-09-15, 07:55
  4. Silent Install
    By manubemanu in forum Symbian
    Replies: 0
    Last Post: 2009-08-06, 11:15
  5. [split]Install sis on Series 40 (was. Re: install and run sis on s60 2nd edition fp3)
    By dariusmizuro in forum General Development Questions
    Replies: 1
    Last Post: 2009-01-15, 08:19

Posting Permissions

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