Tech Support > Microsoft Windows > Drivers > "The file or directory is corrupted and unreadable" during installation of a PnP printer device.
"The file or directory is corrupted and unreadable" during installation of a PnP printer device.
Posted by Ivan Dimitrov on June 17th, 2004


Hi All,

I have a strange problem with a Printer INF file that I don't know how to
resolve...

I have created an INF file through MS genINF tool. The printers included in
the INF file support serial, parallel (IEEE 1284) and USB interfaces and as
you may suppose the parallel and USB interfaces support PnP. The file in my
opinion is a correct one and when I install the driver without "Automatic
Windows detection wizard" but with manually choosing the Printer port and
driver location all the things work fine. The installation wizard copies the
driver files successfully to windows driver directory.

However during the driver installation for automatically discovered PnP
printer (for example with USB interface) when I choose "Specify a location"
in "Locate Driver Files" dialog page and after that "Next" Windows locate my
INF file as a correct driver INF file but when I press "Next" button the
following message appears in the next dialog page: "An error occurred during
the installation of the device. The file or directory is corrupted and
unreadable.". I have tried the mentioned procedure on 3 different machines
and always get the same result (Windows 2000 SP4). That is why I suppose
that the problem is not with the directory but with the INF file.

Can someone help with this ?

10x in advance!

___________________________________________
Best regards,
Ivan Dimitrov