How to deploy a COM Extension

Once a COM Equilla extension has been created, it must be deployed to a target workstation. Deployment is fairly straight-forward, consisting of the following steps:
  • Ensure prerequisites are installed (e.g. Tradesignal and correct version of C or .NET runtimes if Visual Studio 2008 is not used)
  • Copy the Extension DLL
  • Register the Extension DLL (either with regsvr32.exe for C++ DLLs or regasm.exe for .NET DLLs)
  • Copy any indicator package created with Tradesignal
  • Register the indicator package for auto discovery on Tradesignal start
These steps are best combined into a setup for ease of distribution. Packages such as InstallShield can handle all of the registration issues automatically.

Deploying an extension with a setup

The best way to distribute a library of indicators and/or strategies that include one or more Equilla extension DLLs is to use a setup.

First create the package in Tradesignal and copy the extension DLLs into the folder that contains the package contents using Windows Explorer.

Next, add this package folder including indicators, functions, strategies, manifest file and extension DLLs to a setup project (for example InstallShield). Already compiled indicators and strategies make it easier to use the deployed extension.

Mark any Extension DLLs as requiring registration:
  • In InstallShield C++ DLLs should be marked as Extract COM Information at Build
  • In InstallShield .NET DLLs should be marked as Register for .NET COM interop
Now instruct the setup to add a string value to the following registry key, with a unique name (GUID) and a value that contains the folder path on the target machine of the installed package:

HKEY_LOCAL_MACHINE\Software\SystemSoft\TradeSignalEnterprise\Packages

This will make Tradesignal automatically add the package when it is next started.

Finally, build and test the setup.