Excel User Group
Microsoft Excel blogs, forums, files. Read, ask questions, provide answers.

VSTO add-in installation - multiple dll

Latest post Tue, Oct 28 2008 10:48 PM by mathias.brandewinder. 2 replies.
  • Sat, Aug 30 2008 4:50 PM

    VSTO add-in installation - multiple dll

    In the spirit of sharing things I wish someone had told me when I started with VSTO, I posted here an entry which describes what to do if you want to use satellite assemblies (i.e. reference pre-built dlls) in your VSTO Excel 2003 add-in project.

    If you just follow the msdn Walkthrough on Deploying Visual Studio 2005 Tools for Office Second Edition Solutions Using Windows Installer (super helpful page), and simply add your dll to your add-in project, you will experience the following issue: your add-in will work perfectly on your development machine, the installer will run without a complaint, but your dll will be disabled, and you will get no error message or warning as to what is going on.

    I struggled to figure out what the issue was, and after some (lengthy) trial and error, found out the origin of the problem: you need to grant security trust to every dll referenced by your add-in. Once you know that, it's pretty easy to do, but if you don't you may waste quite some time resolving the problem!

    Cheers, and happy coding,

    Mathias

     

    Filed under: ,
    • Post Points: 21
  • Sun, Oct 26 2008 9:43 AM In reply to

    • XL-Dennis
    • Top 25 Contributor
    • Joined on Wed, Jan 9 2008
    • Östersund, Sweden
    • Posts 38
    • Points 650

    Re: VSTO add-in installation - multiple dll

    Hi Mathias,

    Perhaps a little bit late but I read this thread for the first time today.

    Wouldn't it be satisfying to grant the referenced DLLs Executing permissions?

     

    With kind regards,
    Dennis W
    --------------------------------------------------------------
    My English Excel site My VSTO & .NET & Excel blog

    • Post Points: 21
  • Tue, Oct 28 2008 10:48 PM In reply to

    Re: VSTO add-in installation - multiple dll

    Hmmm... Given how tedious it is to add custom actions to an installer, I am interested in hearing about alternative options! Can you do that in the installer?

    • Post Points: 5
Page 1 of 1 (3 items) | RSS
Copyright Excel User Group and the relevant contributors, 2008. All Trade Marks acknowledged. This site is a peer-to-peer site and NOT affiliated in any way to Microsoft Corp. All rights reserved.