Re: Problem Installing PrintProcessor from printer INF file. by dave
dave
Mon Mar 13 09:35:28 CST 2006
Thanks Code Jockey for the suggestion.
I gave it a try but got the same results.
'Printer driver not installed, operation could not be completed'.
I changed both the print processor name and the name of the dll to be less
than 8 characters.
PrintProcessor="MTP-22PP, MTP22PP.dll"
The dll gets copied to the appropriate location, but the registry location:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Environments\Windows NT x86\Print Processors
does not have the new print processor added.
I can add the print processor to the registry manually and then select it in
the printer property pages and print using the print processor, and I can
debug the print processor with VC8, which I would think indicates that the
print processor is fully functional.
I also tried to use the sample print processor from the DDK, genprint.dll,
and get the same results.
If I remove the PrintProcessor line from the INF file the printer installs
and functions correctly, but I really want the print processor installed for
added printer functionality.
I also removed from the system all the drivers associated with the printer I
am trying to install, using 'Server Properties' - 'Drivers' tab in the
printer setup, to insure a clean install.
I have been spinning my wheels on this for a week now, trying anything I can
think of to get the print processor installed with the INF file. Is their is
another method I can use to install a printer that would work better?
Is there something else I can look at to find out why the print processor is
failing to install? Why the Printer Wizard is reporting the error?
Nothing appears in the event viewer, and no debug messages appear in the
debugger.
Is it possible that something needs to be added to the print processor dll's
initialization section? I read that there was an issue with print processors
not being installed with PnP installations on XP and Win2k, but Windows
Server 2003 did not have the problem. And to fix the PnP problem on XP and
Win2k something needed to be added tot he dll.
Any suggestions from anyone are greatly appreciated.
Thanks
DaveK
"Code Jockey" wrote:
> Shorten the registry-name of the print processor to 8 or fewer characters.
>
> "DaveK" <dave.kenyon@telpar.com.(donotspam)> wrote in message
> news:2B3307EE-DEA3-4038-9331-CAF68AD4AB58@microsoft.com...
> > I developed a print processor and have manually installed and tested it.
> But
> > I would like to have it installed via the printer INF file. I have
> followed
> > the INF help in the DDK and added the following to my INF file
> >
> > PrintProcessor="MTP-22XXPP.DLL, MTP22XXPP.dll"
> >
> > along with source and destination locations of the dll.
> > But when I 'Add Printer', select the INF file, and click 'Finish', files
> are
> > copied then I get an error message,
> > 'Printer driver not installed, operation could not be completed'.
> >
> > Reviewing the results, the print processor dll is copied to the
> appropriate
> > directory
> > MTP22XXPP.DLL = 51,prtprocs\w32x86
> > but the registry does not get updated.
> >
> > The same method is used for installing a language monitor, just different
> > destination directory and INF statement, which seems to work.
> >
> > I have tried to install the printer INF file on several XP systems and a
> > Win2K system and get the same results on all of them. Whether the print
> > processor is previously installed or not.
> >
> > Any suggestions would be greatly appreciated,
> > Thanks
> > Dave K
>
>
>