[WinPrnDev] Re: Automated printer install under Windows 7 not working, ok in XP

  • From: Jon Grewer <Jon@xxxxxxxxxx>
  • To: winprndev@xxxxxxxxxxxxx
  • Date: Wed, 15 Sep 2010 11:10:20 -0400

Show your batch file also please.

Under Win7 each instance of CMD.EXE runs under default privilages. You might
be making a call to a new instance of CMD.EXE by implication from inside
your batch file.

Regards,
Jon Grewer
On Mon, Sep 13, 2010 at 8:54 PM, Henry <henry@xxxxxxxxxxxxxxxxxxxxxxxxxxx>wrote:

> In Windows XP, I can use the following to install my printer INF file
> inside a .bat file automatically without user intervention:
>
> rundll32 printui.dll,PrintUIEntry /ia /m "My printer"  /f
> .\install.inf /r "c:\temp\myportfile.dat"
> rundll32 printui.dll,PrintUIEntry /if /b "My printer"  /f
> .\install.inf /r "c:\temp\myportfile.dat" /m "My printer"
>
> However, under Windows 7 I can't get it to work.  Yes I ran it with
> administrator privileges.  The INF file installs fine with the Add a
> printer manually so I know it works.  The printer port is added
> correctly and appears as an option in the manual Add a printer.
>
> Any idea what is wrong?  Any work around?  Anyone free to accept a
> paid freelance mini job to do the installer?  Thanks.
> ---
> Questions? First check the UndocPrint pages at
> http://www.undocprint.org/winspool
>
> To unsubscribe, visit the List Server page at
> //www.freelists.org/list/winprndev
>
>

Other related posts: