Deploying/Installing an outlook addin

前端 未结 3 971
故里飘歌
故里飘歌 2020-12-17 21:07

I am trying to install my Outlook Addin on client computers.

Unfortuantely, the Add-in can never be \'Enabled\' it is always shown in the Disabled add-in section.

相关标签:
3条回答
  • 2020-12-17 21:46

    With the help of woodykiddy, I eventually managed to build the installer and successfully install! Anyone coming here should visit the link provided in his post.

    I just wanted to elaborate on the general process I followed to get it to work.

    Firstly, the regisrty entries are important, especially the Manifest and LoadBehavior keys. Make sure it points to the correct installation location. You also need to ensure the correct runtimes are installed, e.g. VSTO 2010 for Office runtime, and Office Primary Interop Assembly (if required).

    Also, it was important to manually add the *.vsto and *.dll.manifest created in the \Release\ folder of you Addin, to the Setup Project.

    I found that the Register for COM Interop need NOT be checked, whilst the Make Assembly COM Visble property in the Applications Properties MUST be checked.

    And finally, ensure any Microsoft *.dll's not containing *.Utilities.dll were Excluded from the Setup project.

    Sorry one last thing, when installing, install for "Just Me" to a writable folder e.g. [LocalAppDataPath]. There are also other caveats when users do not have adminstrator priveldges.

    0 讨论(0)
  • 2020-12-17 21:57

    I think this tutorial might be useful for your reference.

    http://msdn.microsoft.com/en-us/library/ff937654.aspx

    Also, there are a few other things that you might want to check out. First, see if you have any COM exceptions thrown when you start up Outlook Addin. Normally addin will not be disabled automatically if it throws errors on startup. And you also want to have a look at loadBehavior registry key and see what values you got in there.

    For details of LoadBehavior reg key, please refer to: http://msdn.microsoft.com/en-us/library/bb386106(VS.100).aspx

    0 讨论(0)
  • 2020-12-17 21:59

    Here is a short check list on how to troubleshoot possible issues with Outlook Addin

    (of course not everything is covered)

    Is the plugin properly registered on the client machines?

    Check registry entries (HKLM\Software\Microsoft\Office\Outlook\Addins) and regasm.exe

    Also make sure Make Assembly COM Visble located in Project Properties -> Assembly Information is checked

    Have you deployed all dependencies together with the plugin assembly?

    Its important esspecially when you build your own setup (either through WIX or installshield, ...).

    Is there an error in the plugin while starting Outlook?

    Check event viewer for Outlook errors and warnings

    It can also "disappears" when version number / GUID of the plugin assembly has changed or there is a conflict

    Try to fix it by deleting the CLSID keys in registry

    REM 64bit entry in HKEY_CLASSES_ROOT
    reg delete HKCR\CLSID\{GUID} /f 
    
    REM 32bit entry in HKEY_CLASSES_ROOT
    HKCR\Wow6432Node\CLSID\{GUID}
    

    and re-register the assembly through regasm.exe

    0 讨论(0)
提交回复
热议问题