Search code examples
deploymentsilverlight-4.0com-interop

Deploying COM dll as part of Silverlight application


I have a legacy delphi dll. I created a class library that imports the dll and registered it for COM interop. I have an experimental Silvelight 4 application that calls the COM object and it works. The problem is: how do I deploy the COM component (and dependent delphi dll) and register the COM object on a client machine?


Solution

  • The COM component will need to be installed explicitly on the client machine. The standard Silverlight deployment does not (by design) support installation of COM components.

    Typically, the COM interop in Silverlight is really intended to work with System COM routines that already exist on the system - if you're doing native code interop with native code deployment, normally, you'd just use a full desktop application developed with WPF.