How to add custom printer port in my installer?
Hi, I am trying to make installer to install printer processor, printer driver and printer. Now how can I add my own printer port? rundll32 printui.dll,PrintUIEntry /if /b “New Printer” /f “mydriver.inf” /r “MyPort” /m “New Printer” /z /u I got error “You either entered a printer name that was incorrect or the specified printer is no longer connected to the server.” This is because of Portname is “MyPort”. If I use Portname “LPT1:” then it is working. So let me know how to add printer port. So I can add that port before installing printer. I have also tried to use GDI API function AddPort and SetPort. But I didn’t understand, how to use this functions to add port. Also using DeletePort I am able to delete the port. So I am confused. And I feel that there must be some way using GDI API to add printer port.