Skip to content

Install via DLL Function Call

Wolfgang Imig edited this page Oct 4, 2015 · 10 revisions

DDAddin can be installed via a function call provided by its DLL file. The following C++ code snipped shows how to achieve this:

HMODULE hDDAddin = ::LoadLibrary(L"ddaddin64.dll");

typedef UINT(__stdcall *INSTALL_FUNCTION)(LPCWSTR opts);
INSTALL_FUNCTION Install = (INSTALL_FUNCTION)::GetProcAddress(hDDAddin, "InstallAddin");

Install("DEMO");

Whereby:

  • "DEMO" is the license key (mandatory)

In order to uninstall execute:

INSTALL_FUNCTION Uninstall = (INSTALL_FUNCTION)::GetProcAddress(hDDAddin, "UninstallAddin");
Uninstall(L"");

Hint: ddaddin64.dll can be found in CustomSetups.zip.

Clone this wiki locally