StartUninstall

Remove a specified printer from the system.

 

LONG StartUninstall(LPTSTR lpPrinterName, LPTSTR lpDriverName,

LPTSTR lpProcessorName, LPTSTR lpMonitorName)

 

Input value: lpzPrinterName                   - the name of the printer to be uninstalled.

Input value: lpDriverName                       - the name of the printer driver to be uninstalled.

Input value: lpProcessorName  - the name of the print processor to be uninstalled

Input value: lpMonitorName       - The name of the port monitor to be

Return value                                                - Returns 0 if the printer was successfully uninstalled,

 

The functions of the Uninstall DLL are wrappers around the Windows API functions to remove the printer driver components from the system. Call the StartUninstall() function from the Uninstall DLL when you need to uninstall the printer driver. The StartUnistall will uninstall the printer, the printer driver, the print processor and the port monitor from the system. The Uninstall DLL does not remove the driver files from the system, the files should be deleted by the setup program. To create silent uninstallation, use the StartUninstall2 function instead of StartUninstall.

 

Note:, the printer driver files can be locked by the operating system. If you are using Install Shield, the setup build using Install Shield can handle removing locked files (after rebooting the system).