How to implement the "Check for update..." feature?

I have a WinForm application which cannot be handled by ClickOnce technology because of the limitation of ClickOnce.  However, I would like to implement the "Check for update..." feature using the ClickOnce related technology(may be System.Deployment class ).  Anyone know that
Thanks


Answer this question

How to implement the "Check for update..." feature?

  • Merianos Nikos

    Some of the limitations that you mention are actually security features. The whole idea of ClickOnce is to enable Smart Client Applications to be deployed with minimal impact on the users system.

    ClickOnce is not meant for deploying web applications at all.

    Many of the limitations that you point out are capabilities that ActiveX controls today have - like installing to Program files, Installing desktop icons etc... but as we know these features have been exploited by Trojans and SpyWare companies making ActiveX technology a compelete mess.
    I am sure the design goals of ClickOnce have been not to duplicate everything that ActiveX is capable of doing today - else the technology gets exploited to the extent it becomes unusable.

    Actually there are Installers - Like InstalSheild, Wise Installers that seem to do what you need, they have a Check for Update functionality as well as they can package and update any kind of application.

    I'd also suggest that you add your suggestions to the MSDN Product Feedback center so its tracked by the product teams.

    [ http://labs.msdn.microsoft.com/productfeedback ]

    Regards,
    Saurabh Nandu
    www.MasterCSharp.com
    www.AksTech.com

  • Ad the Lad

    Microsoft Patterns and Pratices group has released a Updater Block that you can use to have similar functionality.

    more information on how the block works and where to download it is at the link below

    http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnpag2/html/uabch1.asp

    Regards,
    Saurabh Nandu
    www.MasterCSharp.com

  • CompactDev

    Thanks for the reply.  And actually I have used UAB in my last app version.  It work but having some limitation.
    I know from CodeProject that ClickOnce is the offical release of UAB supported in VS2005.  UAB seem to be a testing materials.

    However, the current version of ClickOnce have many limitation also. :( e.g.:
    1. Cannot deploy web application and create virtual directory in IIS
    2. Cannot install to c:\program files
    3. Cannot install for all users
    4. Cannot use GAC
    5. Cannot manage menu items and desktop shortcut.

    I really hope the final release of System.Deployment class can let me add "Check for update.." function to app deployed by Window Installer.



  • How to implement the "Check for update..." feature?