Property | Type | Description |
Installed | Number | (Read Only) 1 if Publisher SE installed, 0 if not installed. |
Method | Parameters | Description |
Install | String location | Installs Publisher SE to specified location. Some events will be generated during the process. |
Uninstall | None | Uninstalls Publisher SE. Some events will be generated during the process. |
AddPrinter | String | Installs additional printer named by String to Publisher drivers collection. |
DeletePrinter | String | Removes additional printer named by String from Publisher drivers collection. |
EnumeratePrinters | returns String | Returns printers belongs to appropriate driver collection. Resulting string is a comma separated values string. |
Event | Parameters | Description |
OnProgress | Number | This event informs external software about installation/uninstallation progress. Value is in range 0 - 100. |
OnWarning | Number code, String message | Raises when non-critical event is occured. External software may ignore this event and continue. |
OnError | Number code, String message | Raises when critical error is happened. Further processing is impossible. If this occured during installation, rollback will be performed - all installed components will be removed. During rollback, OnProgress will be called with decreasing value. Code is internal Miraplacid value; it is provided for informational purposes. |
OnQuestion | String question, returns Number | Raises when some necessary resource is locked by user application. Event handler could try to
unlock the resource (for example, pop up a dialog box to user with the message to let him shutdown that process). If handler returns 0, process will be cancelled. If it returns 1, installer will try to use the resource again. |
Function | Parameters | Description |
MPInstall | const wchar *location | Installs Publisher SE to specified location. There is no way to obtain progress and error information. |
MPUninstall | void | Uninstalls Publisher SE. There is no way to obtain progress and error information. |
MPAddPrinter | const wchar * | Installs additional printer to Publisher drivers collection. |
MPDeletePrinter | const wchar * | Removes additional printer from Publisher drivers collection. |
MPDeletePrinter | const wchar * | Removes additional printer from Publisher drivers collection. |
MPEnumeratePrinters | wchar *buf, unsigned long buflen | Enumerates printers as shown above and puts resulting string to buffer buf. If more memory needed to fit enumeration, function returns E_OUTOFMEMORY. |