An MTM can be installed on a target machine using the normal methods (e.g. .sis
file). There are, however, two additional steps to take:
A data file must be created that holds registration information describing the MTM components. This is done by writing a small program that sets up and externalises a CMtmGroupData
object. The data file should be copied to the target machine along with the component libraries, resources, etc. The file can be created using the mtmgen
tool, which takes a text file containing MTM registration information and produces a suitable registration data file from it.
Before the MTM can be used, the Message Server must be called, through CMsvSession
, to notify it that a new MTM is available. When this is done, all running Message Server client processes are also notified that the new MTM is available. A program to do this would typically be run at the end of installation.
Uninstallation also requires a call to the Message Server. Running clients are then dynamically notified that the MTM is no longer available.