×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Sep 2008
    Posts
    53

    Question About Silent Installer

    Hi,

    我在使用Silent Installer API 时有点问题,使用了下列代码,可以实现A程序安装B程序,却不能A程序重新安装A程序,就是为了实现程序的自我升级功能。
    求大哥们帮忙。

    code :

    include <SWInstApi.h>
    #include <SWInstDefs.h>
    SwiUI::RSWInstSilentLauncher iLauncher;
    SwiUI::TInstallOptions iOptions;
    SwiUI::TInstallOptionsPckg iOptionsPckg;
    iOptions.iUpgrade = SwiUI::EPolicyNotAllowed;
    iOptions.iOCSP = SwiUI::EPolicyNotAllowed;
    iOptions.iDrive = 'C';
    iOptions.iUntrusted = SwiUI::EPolicyNotAllowed;
    iOptions.iCapabilities = SwiUI::EPolicyNotAllowed;
    iOptionsPckg = iOptions;
    iLauncher.Connect();
    TBufC<50> FName(KTempPath);
    iLauncher.SilentInstall(waiter->iStatus,FName,iOptionsPckg);
    iLauncher.Close();

  2. #2
    Super Contributor
    Join Date
    Jul 2007
    Location
    ShenZhen, China
    Posts
    4,346

    Re: About Silent Installer

    这个不能实现自我升级, 使用 RApaLsSession::StartDocument 来实现升级吧
    ----------------------------
    坚持学习, 坚持编码
    http://www.devdiv.net/
    qxiaoyuan

Similar Threads

  1. Silent Run
    By neverma in forum Symbian
    Replies: 9
    Last Post: 2009-11-13, 16:00
  2. Silent Installer problem
    By michael78 in forum Symbian
    Replies: 4
    Last Post: 2009-11-13, 15:45
  3. Silent Install
    By manubemanu in forum Symbian
    Replies: 0
    Last Post: 2009-08-06, 11:15
  4. Silent autostart
    By stone_cheng in forum Symbian
    Replies: 8
    Last Post: 2008-09-04, 09:11
  5. Silent Bluetooth
    By JereKuusela in forum Symbian
    Replies: 3
    Last Post: 2008-05-20, 08:10

Posting Permissions

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