The setup program for installing your message service should:
Copy message service files, such as the message service and service provider DLLs, from a CD or disk to a local drive on the workstation. The files that need to be copied depend on your message service. Typically you will copy at least one DLL.
Add entries to the MAPISVC.INF configuration file. For information about how to modify this file to support the service providers in your message service, see File Format of MAPISVC.INF.
Add entries as appropriate to the WIN.INI initialization file for 16-bit message services or the system registry for 32-bit message services. For details about the entries that should appear in the WIN.INI file or the system registry, see Installing MAPI.
Create a default profile if one does not yet exist using one of the following:
NEWPROF utility to create a profile programmatically from information contained in a .PRF file. For more information, see Creating a Profile with NEWPROF.
Profile Wizard to create a profile with user interaction through a series of dialog boxes. For more information about using the Profile Wizard, see Creating a Profile with the Profile Wizard.
Control Panel to create a profile with user interaction. The Control Panel offers the user more flexibility than the Profile Wizard in configuring the message services and setting profile properties.
Place the setup program in a designated public directory. This is important because most configuration clients, such as the Control Panel, require that users enter the name of the directory. The Control Panel invokes a setup program when a user clicks the Add button, invokes the Have Disk dialog box, and specifies the path to the program. The Control Panel runs the program and calls your message service's entry point function with the ulContext parameter set to MSG_SERVICE_INSTALL.
Warning Because profiles are an expendable part of the MAPI architecture, make sure that your installation program does not store anything in the default profile that would be difficult to recreate. There are no utilities for profile recovery, for moving profiles from one machine to another, for off-line backup, or for individual or global restoration from backup copies.