Library redistribution policy largely depends on the purchased license. Detailed information about library redistribution can be found in the Licensing topic. General information is also provided below.
The USBMC library can be distributed in two ways:
You are allowed to distribute the original library installation package provided the following is true: the hhdusbmc.exe
file is not modified by any means and is accompanied by a link to HHD Software web site. This can be an Internet URL file, a readme file in the same folder or same archive where the hhdusbmc.exe
file is located on distribution media. If the file is distributed on the Web Site, the link to HHD Software web site must be on the same page as the link to the hhdusbmc.exe
file.
The hhdusbmc.exe
file, as all other files available on HHD Software Web Site, is digitally signed. Please verify that the digital signature is still valid before distributing the file. If, on the other side, you somehow received the USB Monitoring Control library and found that signature validation algorithm fails, please be so kind to notify us via our contact page.
Two ways of redistributing the library are provided by the current version: manual redistribution and Windows Installer merge module.
To redistribute the library with your application, use the usbmc_redist.exe
file, located in the redist\Manual
folder.
This is a Win32 executable without any external references. It supports all operating systems starting from Windows 7 (both 32-bit and 64-bit).
Launch this executable on a target computer to install or uninstall the USBMC library and accompanying filter driver.
It automatically installs 32-bit or 64-bit version of components. Below is executable's command line parameters:
usbmc_redist.exe [/q] [/u] [/t <path>] [/?]
Option | Description |
---|---|
/q | Quiet mode. Do not display any user interface. Note that on some operating systems, driver installation prompt may still be displayed. |
/u | Uninstall the library. If not specified, performs library installation. |
/t <path> | Use the given installation path instead of the default one. |
/? | Display supported command line parameters. |
usbmc_redist.exe
must be launched by a user with administrative privileges. The caller must also be elevated. Library installation may be performed by more restricted user if she has write access to destination folder, has write access to system drivers folder (usually \Windows\System32\Drivers
) and has been assigned an “Install Device Drivers” privilege.
If /q
switch is not specified, a message box with a short description of the result of operation is displayed.
Upon exit, usbmc_redist.exe returns an error code, which must be interpreted as described below:
Error code | Meaning |
---|---|
0 (S_OK ) | Library installation/uninstallation has been successful. |
1 (S_FALSE ) | Library installation/uninstallation has been successful. Reboot is required to complete the installation. |
any other | Any other code must be treated as a standard HRESULT value. |
If your application is packaged with Windows Installer, you may use the merge modules provided in the \redist\Merge Module
folder. Use the correct module for your target platform (32-bit or 64-bit).
Library activation on client computers is performed in your installation code by calling one of the IUsbMonitor.InstallLicense, IUsbMonitor.InstallLicenseInMemory or IUsbMonitor.InstallLicenseInMemoryNative methods.
You are explicitly prohibited from charging any fees for all kinds of library distribution!