Outlook Plugin instaler: Upgrade existing installation?

回答済み Outlook Plugin instaler: Upgrade existing installation?

  • 2012年3月4日 20:19
     
     
    I've written a plugin for Outlook using VSTO and created an installer for it.  Both work just fine.  When I release a new version of the plugin, my clients can install and use it.  However, if they go to the Add/Remove Programs area, they see multiple versions of the plugin, one for each version they installed.

    How can I make my installer upgrade an existing installation to the newer version?

すべての返信

  • 2012年3月5日 7:34
    モデレータ
     
     回答済み

    Hi,

    Would you like to tell me how you publish and deploy your VSTO add-in? General speaking, using ClickOnce would satisfy most situations. By working with ClickOnce you can easily control version upgrading and rolling back, you might have a look at this document:

    http://msdn.microsoft.com/en-us/library/bb821233(v=office.12).aspx 

    And also there is video for this:

    http://msdn.microsoft.com/en-us/office/cc308635 

    This is demonstrated by using a Excel document-level solution, but they share the same technology. You can easily transfer this to your Outlook add-in.

    Good day,


    Calvin Gao[MSFT]
    MSDN Community Support | Feedback to us

  • 2012年3月5日 16:13
     
     

    Thanks for the links.  ClickOnce was on my TODO list to investigate.

    Currently, I've built an installer that creates an MSI.  I've been distributing that to clients.  Out desktop support group prefers this solution as they can easily push updates to client machines.  But the multiple installed versions may be too big of a nuisance for them to care that much.

  • 2012年3月13日 16:41
     
     

    In the MSI Properties you need to set

    DetectNewerInstalledVersion to True

    RemovePreviousVersions to True

    Remove all the other instance manually before installing this newly built version

    On each build you need to up the Version property and say yes to amending the product code.

  • 2012年3月14日 9:00
     
     回答済み