Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Tuesday, October 12, 2010 11:33:59 PM(UTC)

BKV  
BKV

Groups: Registered
Posts: 10


  Just a small question about Virtrual printer un installation.
  There are two functions:
   Printer.Install  and Printer.UnInstall.

  As I understand, Printer.Install first, creates printer driver, port and monitor and than creates new printer it self.
  What Printer.UnInstall is doing?
  Just delete printer or also delete printer driver, port and monitor?

  Situation: I called Printer.Install  two times and install two printers.
  Both printers are using same printer driver, port and monitor.
 Than, using  Printer.UnInstall , I uninstalled one printer. What happened driver, port and monitor as I still have another printer?
 Than , using  Printer.UnInstall , I uninstalled  second printer. What happened driver, port and monitor at this point?
 So, I don`t see a method to uninstall printer driver, port and monitor.
Thanks in advanced

 
 

 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Tuesday, October 12, 2010 11:36:39 PM(UTC)

BKV  
BKV

Groups: Registered
Posts: 10


Seems the printer driver installation\deletion is happening during COM servers registration\unregistration.
Is it so?
 
#3 Posted : Wednesday, October 13, 2010 12:40:54 AM(UTC)

BKV  
BKV

Groups: Registered
Posts: 10


Seems Printer driver is not deleted when unregister COM objects.
 
#4 Posted : Wednesday, October 13, 2010 5:34:50 AM(UTC)

Basel  
Guest

Groups: Guests
Posts: 3,022

Was thanked: 2 time(s) in 2 post(s)

Printer.Uninstall() Method deletes the printer and its info (Monitor and port) you will need to rill the Leadtools.Printer.PrinterInfo.MonitorName, Leadtools.Printer.PrinterInfo.PortName, and Leadtools.Printer.PrinterInfo.DriverName properties with valid data in order to uninstall the printer.

Unregistering the COM objects doesn't delete the printer.

 
#5 Posted : Wednesday, October 13, 2010 6:45:13 AM(UTC)

BKV  
BKV

Groups: Registered
Posts: 10


During software uninstall we have to leave system in the same state as it was before installation.
 So, what are the valid steps to clean the system during uninstall?
 
#6 Posted : Wednesday, October 13, 2010 7:03:16 AM(UTC)

BKV  
BKV

Groups: Registered
Posts: 10


Thanks for your reply, but it is not connected to what I was asking.
That is clear that InstallPrinter installs printer and UninstallPrinter deletes it.
The question was: What action create printer driver and what  delete it from the system.
In other words: How to clean system from virtual printer? (Not just delete printers)
 Thanks in advanced
 
#7 Posted : Thursday, October 14, 2010 5:22:53 AM(UTC)

Basel  
Guest

Groups: Guests
Posts: 3,022

Was thanked: 2 time(s) in 2 post(s)

Calling UninstallPrinter for a printer deletes that printer only.
If it is the last LEADTOOLS printer (no others remain), UninstallPrinter will also cause Windows to remove the port monitor and driver.
However, to completely remove the driver, your uninstaller must delete the driver files and other related LEADTOOLS DLLs from the common system folders where your setup originally copied them. Deleting the files is an important step in uninstalling the driver itself.

If you do this, the system can be considered for all practical purposes as having been restored to its original condition.

 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.104 seconds.