COM Servers and Shared DLL Versioning and Deployment

Measurement Studio 2012 for Visual Studio 2010 Help

Edition Date: August 2012

Part Number: 372636F-01

»View Product Info
Download Help (Windows Only)


This topic describes how applications that are built with different versions of Measurement Studio and installed on the same machine resolve their references and use a particular version of a COM server or shared DLL. For information pertaining to a machine with a Measurement Studio development system installed, refer to COM Server and Shared DLL Versioning. For information pertaining to deploying applications that use Measurement Studio libraries, refer to COM Server and Shared DLL Versioning and Deployment.

COM Servers and Shared DLL Versioning

COM servers and shared DLLs are shared among all applications that use them, and only one version can be installed at a time on a machine.

The result of this approach is that all applications, on a machine to which a Measurement Studio COM server or shared DLL has been installed, use the latest version of the COM server or shared DLL that has been installed to the machine. Measurement Studio COM servers and shared DLLs are backwards compatible with previous versions of Measurement Studio, so applications continue to work even when the underlying COM server or shared DLL has been updated.

The benefit of this approach is that all applications automatically incorporate bug fixes in the latest version of each COM server or shared DLL that has been installed on the machine. The downside to this approach is that bug fixes can unexpectedly change the behavior of applications that unknowingly rely on erroneous behavior.

COM Servers and Shared DLL Versioning and Deployment

When you install Measurement Studio development support, merge modules that you use to deploy COM servers and shared DLLs—to which Measurement Studio .NET class libraries provide interfaces—are installed to Program Files\Common Files\Merge Modules. When you use Visual Studio to build an installer for an application that references a Measurement Studio class library that provides an interface to a COM server or shared DLL, you must add the required Measurement Studio merge modules to the installer project. With .NET class libraries, Visual Studio adds the required merge modules automatically.

The benefit of this approach is that all applications automatically incorporate bug fixes in the latest version of each COM server that is installed on the machine. The downside to this approach is that bug fixes can unexpectedly change the behavior of applications that unknowingly rely on erroneous behavior.

WAS THIS ARTICLE HELPFUL?

Not Helpful