Search code examples
c#dllsoftware-distributionredistributable

How to redistribute DLLs with a C# application?


A beginner question I am sure, but I have just started working with a DLL provided by Vandyke software (VRALib, a COM and .NET API for scripting SSH2 connections) so while I am happily now coding on my PC, I am not sure how you go about redistributing DLLs along with the application to other PCs.

Does any one have some beginners guides to working with 3rd party DLLs and best practice methods and tips / tricks for redistribution?


Solution

  • Ok, well if its a COM DLL with a managed .NET API, you need to make sure that you have a means for installing and registering the COM DLL on the PC. The .NET API can just be copied along with your application.

    There are various ways of registering DLLs, there's a command line program regsvr32 which is a bit ugly but functional. Here is an article describing how to register COM DLLs from .NET code.

    Does the Vandyke software come with an installer that you can just run from your installer? Do they provide a means of running the installer in a silent mode?