Hi friends,

I have used DRIVER_INFO_3 with AddPrinterDriver API to install my printer
driver manually. In 32 bit OS its working fine. But in 64 Bit versions
(windows Xp x64) I am getting an error message saying that "The system cannot
find the path specified". (ERROR_PATH_NOT_FOUND =3).

But the printer driver path is retrieved through "GetPrinterDriverDirectory"
API only. Even I tried with direct addressing
also.(c:\windows\system32\x64\spool\drivers\3...).But in both methods Iâ??m
getting
the same error message. Please suggest me how to come out from this problem.

Thanks,
Shankar B

Re: AddPrinterDriver failed. by njdude

njdude
Wed Nov 29 02:15:09 CST 2006

Were you able to solve this problem ?Im having the same problem...
Shankar9483 wrote:
> Hi friends,
>
> I have used DRIVER_INFO_3 with AddPrinterDriver API to install my printer
> driver manually. In 32 bit OS its working fine. But in 64 Bit versions
> (windows Xp x64) I am getting an error message saying that "The system cannot
> find the path specified". (ERROR_PATH_NOT_FOUND =3).
>
> But the printer driver path is retrieved through "GetPrinterDriverDirectory"
> API only. Even I tried with direct addressing
> also.(c:\windows\system32\x64\spool\drivers\3...).But in both methods I'm
> getting
> the same error message. Please suggest me how to come out from this problem.
>
> Thanks,
> Shankar B


Re: AddPrinterDriver failed. by Friedrich

Friedrich
Wed Feb 14 09:50:10 CST 2007

njdude wrote:
> Were you able to solve this problem ?Im having the same problem...
> Shankar9483 wrote:
>
>>Hi friends,
>>
>>I have used DRIVER_INFO_3 with AddPrinterDriver API to install my printer
>>driver manually. In 32 bit OS its working fine. But in 64 Bit versions
>>(windows Xp x64) I am getting an error message saying that "The system cannot
>>find the path specified". (ERROR_PATH_NOT_FOUND =3).

Well I can give you some hint, because I have run into exactly same
problem.
On my box WServer 2003 SP1 the files are not installed in the
PrinterDriverDirectory but below it and using the DRIVER_INFO_3 stuff
expects this files to be exactly at this location as it seems. I found
out while using Procmon to see what files are tried to be opened.

I currently just have two solutons (both unsatisfiying to me)
1) copy the files from the directories below in the proper place
2) add the needed files to the installer and install them from where
this things are installed with struct of type DRIVER_INFO_6 with
AddPrinterDriverEx and the proper options to copy from the given location

I have to admit this whole stuff is getting to get on my nerves.

Regards
Friedrich