Add Printer Wizard - Disable display of Dialog

Hi,

We can add printers using Add Printer wizard. With respect to the OS, the
user option dialog boxes are different.
Is there any way of programmatically controlling the occurance of the dialog
boxes?.
In NT, there are dialog boxes for choosing such as

Type of Printer
Port Selection
Manufacturer section(Have Disk option)
Printer Name
Sharing
Test Page option

Is there any way of disabling the display of any of these dialog boxes?.
For example, if i dont want the Test Page to be printed, is there a way of
the dialog box being disabled?

In a nutshell, can we get the control of sequence of the dialog boxes that
are displayed when the printer is added?

Thanks in advance,
Venkat

On Mon, 17 Jun 2002 17:35:01 +0530, “Tera NTDev”
wrote:

>We can add printers using Add Printer wizard. With respect to the OS, the
>user option dialog boxes are different.
>Is there any way of programmatically controlling the occurance of the dialog
>boxes?.

You can install printers programmatically in W2K/XP through

rundll32 printui.dll,PrintUIEntry [Parameters]

Use

rundll32 printui.dll,PrintUIEntry /?

for a complete list of all the switches.

Ralf.

You can use the rundll32 approach that Ralf suggested. FYI, that info is
also documented in Q189105.

You do not have any control over the various dialog boxes displayed in
the APW. The only workaround would be to implement your own custom
install package using the AddPrinterDriver and AddPrinter APIs that are
documented in the SDK docs.

  • Ashwin

This posting is provided “AS IS” with no warranties, and confers no
rights.

-----Original Message-----
From: Tera NTDev [mailto:xxxxx@teraltd.com]
Sent: Monday, June 17, 2002 5:05 AM
To: NT Developers Interest List
Subject: [ntdev] Add Printer Wizard - Disable display of Dialog

Hi,

We can add printers using Add Printer wizard. With respect to the OS,
the user option dialog boxes are different. Is there any way of
programmatically controlling the occurance of the dialog boxes?. In NT,
there are dialog boxes for choosing such as

Type of Printer
Port Selection
Manufacturer section(Have Disk option)
Printer Name
Sharing
Test Page option

Is there any way of disabling the display of any of these dialog boxes?.
For example, if i dont want the Test Page to be printed, is there a way
of the dialog box being disabled?

In a nutshell, can we get the control of sequence of the dialog boxes
that are displayed when the printer is added?

Thanks in advance,
Venkat


You are currently subscribed to ntdev as: xxxxx@microsoft.com To
unsubscribe send a blank email to %%email.unsub%%