-
Notifications
You must be signed in to change notification settings - Fork 0
Install via DLL Function Call
Wolfgang Imig edited this page Sep 26, 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\\My Addin\\My Description");
Whereby:
- "DEMO" is the license key
- "My Addin" is the name of the Addin (optional, default: "DnD to HTML5 Addin for Microsoft Outlook")
- "My Description" is the description of the Addin (optional, Addin name is used as default)
In order to uninstall execute:
INSTALL_FUNCTION Uninstall = (INSTALL_FUNCTION)::GetProcAddress(hDDAddin, "UninstallAddin");
Uninstall(L"");