Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How to add custom printer port in my installer?

Custom installer port printer
0
Posted

How to add custom printer port in my installer?

0

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.

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123