Installing Printers

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi, I'm working on Xpe, since Dec 2006, up to now my system is doing all the
basic stuff it is expected to do.
It essentially :
- Loads all driver for the PC board.
- Runs my custom application as shell.
So far so good.

The problem comes when I want to install printer drivers.
I do not want to componentize printers drivers, I prefer to run the
installation program sold with the printer itself.
I tried to install an HP1300 from an explorer window launched from my
application.
The installation starts, then aborts with a pop up error n. 2894. It goes
without sayng that I was not able to track this error, so I do not no clearly
what my image is missing.
Is there anybody able to give me some hint ?
Is it possible I'm not loading the right component ?
 
Hints are simple and common here:
- Monitor the installation with tools like FileMon/Regmon/ProcessMonitor. You should be able to find out what's missing from
your image.
- If you run the install through DependencyWalker tools [Profile feature] you may be able to capture more data that will shed a
light on what's missing.
- Check SetupApi.log on your device to see if a driver install failure occurred during the installation process.
 
GiusVa,
Insted of using the standard setup that requires many megas not available on
my solid state disk I used the wizard: to install a printer driver, you need
component "windows update for driver components".
I did not use the install program from the printer manufacturer, but looked
into their CD to find the driver's directory.
Don't use the setup that you find there but the XPE wizard.
I use the printer install wizard "add a printer" and reply to the button
"have a disk" with the path to the driver dir on the CD.
In this way I have installed HP DJ 640 and LJ1300.
Perhaps some file are required by the printer: to have a list of required
files, just install the printer in XPPRO and print a test page, there is a
list of required files, check if you have them on your image.
Warning, printers need some .hlp files, if you set the .slx config to not
include help file they will not be in your image.
The description is a bit sketchy I hope that helps.
Regards Raffaele
 
KM, thanks a lot for your fast reply, I think I'll try crus proposed solution.
If I keep on sticking to "which thing I'm missing" I'm afraid I will
probably face again this same problem with other brands installation programs.
You know, if you have 10 printer brands, expect to deal with 15 different
installation procedures :-).
Anyway if plan A backfires, I'll leave your advices for plan B.
Ciao

KM said:
Hints are simple and common here:
- Monitor the installation with tools like FileMon/Regmon/ProcessMonitor. You should be able to find out what's missing from
your image.
- If you run the install through DependencyWalker tools [Profile feature] you may be able to capture more data that will shed a
light on what's missing.
- Check SetupApi.log on your device to see if a driver install failure occurred during the installation process.

--
=========
Regards,
KM
Hi, I'm working on Xpe, since Dec 2006, up to now my system is doing all the
basic stuff it is expected to do.
It essentially :
- Loads all driver for the PC board.
- Runs my custom application as shell.
So far so good.

The problem comes when I want to install printer drivers.
I do not want to componentize printers drivers, I prefer to run the
installation program sold with the printer itself.
I tried to install an HP1300 from an explorer window launched from my
application.
The installation starts, then aborts with a pop up error n. 2894. It goes
without sayng that I was not able to track this error, so I do not no clearly
what my image is missing.
Is there anybody able to give me some hint ?
Is it possible I'm not loading the right component ?
 
crus, first of all thanks for your reply.
I browsed components in Target Designer, I found a "Windows Update for
Device Drivers". Is this the component your talking about?
I'm creating an image and I'll test it a few minutes, I'll come back with
results and comments.
Ciao
 
Ok, I tested the new image :
- I plug the usb connector, there is no reaction from the system.
To do the installation I must :
- run explorer.
- Access Control Panel->System->Hardware->Device Manager.
- Then I must :
- first install the DOT 4 USB driver from HP CD.
- then install the printer.
Do you confirm this is the procedure you where suggesting ?
Ciao
 
GiusVa,
it seems OK, before you need the USB driver, after the Printer installs. I
did it about 2 years ago and got my notes to reply, so some steps lack...
Now, how about your printer?
 
Ciao,

I understand.

In fact, if the image footprint is not a concern of yours you can try to build an image that will include all possible dependencies
of all [theoretically] print drivers you want to support [read: install] at runtime. To accomplish such I typically build
XPProEmulation image [www.xpefiles.com, use FP2007 version]. That saves me lots of time fighting with component/driver/app
dependencies at run time.

--
=========
Regards,
KM
KM, thanks a lot for your fast reply, I think I'll try crus proposed solution.
If I keep on sticking to "which thing I'm missing" I'm afraid I will
probably face again this same problem with other brands installation programs.
You know, if you have 10 printer brands, expect to deal with 15 different
installation procedures :-).
Anyway if plan A backfires, I'll leave your advices for plan B.
Ciao

KM said:
Hints are simple and common here:
- Monitor the installation with tools like FileMon/Regmon/ProcessMonitor. You should be able to find out what's missing from
your image.
- If you run the install through DependencyWalker tools [Profile feature] you may be able to capture more data that will shed
a
light on what's missing.
- Check SetupApi.log on your device to see if a driver install failure occurred during the installation process.

--
=========
Regards,
KM
Hi, I'm working on Xpe, since Dec 2006, up to now my system is doing all the
basic stuff it is expected to do.
It essentially :
- Loads all driver for the PC board.
- Runs my custom application as shell.
So far so good.

The problem comes when I want to install printer drivers.
I do not want to componentize printers drivers, I prefer to run the
installation program sold with the printer itself.
I tried to install an HP1300 from an explorer window launched from my
application.
The installation starts, then aborts with a pop up error n. 2894. It goes
without sayng that I was not able to track this error, so I do not no clearly
what my image is missing.
Is there anybody able to give me some hint ?
Is it possible I'm not loading the right component ?
 
Hello GiusVa
I have been checking for you an install to record every step:
I have at hand a Canon i455 but the procedure should be similar for other
brands.
First you need to include XPE components. "Windows update for device
drivers" and, if your printer has USB interface "USB printing support"
With your printer driver files at hand, start XPE and plug in the printer
USB cable, you should see the message "new hardware found" and your
printer's name.
After some time an error message appears , it's XP that needs help to find
the driver.
Close the window to stop this phase. Disregard the error warning.
Start the "add a printer" wizard from "printer and fax".
Disable P&P
Select "local printer"
Use the port "USB001 virtual printer port for USB"
Push Next and you see yor printer name, click on "have disk" and browse to
your driver files, if correct an .INF file is selected.
Push Ok and next as usual, until the end of wizard. If everithing is ok you
'll have the test page printed.
Printer install from manufacturers require a huge space on disk, this way
only the files required by the driver are copied.
I hope this time things work
Raffaele
 
The problem comes when I want to install printer drivers.

I remember a problem when I installed an Intermec Printer on my target
device. So unidrv.hlp was needed by the driver. But this file always
became cut out by target designer, as "Do not copy help files for this
component/configuration" is checked by default. Maybe you can solve
your problem by unchecking this, so that help-files will become
copied.

Steffi
 
Sorry I did not answer immediately, I was attending a seminar for the whole
day.
About the described procedure :
Yes, I almost do the same.
The difference is that since I'm not starting a windows shell, the "new
hardware..." message is not displayed.
As a matter of fact I have to first plug the printer, then power up the
system.
When I exec explorer from my shell, on Access Control
Panel->System->Hardware->Device Manager I find the installed printer usb port.
From this point the procedure is as from your description.
It seems the procedure can be divided in to steps :
A - Install a usb driver. Here the sistem should be able to handle it.
B - Install the printer drivers (PS, PCL6 and so on), using the external CD
or floppy.

So if this procedure works with different brands and models of printers I'm
done.
I'll try to find other usb printer to test this procedure.
If it works with a epson, a canon and a lexmark (cross fingers..)
Anyway thanks a lot for your support and your time.
Ciao
 
Steffi thanks, I made sure that :
- Core Unidrv Support loaded.
- Do not copy file... checkbox unchecked.
Just to make things clear, I checked that the file is copied on the image.
Ciao
 
Again....
reading back the sequence I understand that you don't have the full Windows interface, to access the "add printer" wizard, if direct link lacks, you should use the command:

RUNDLL32 PRINTUI.DLL,PrintUIEntry /il

component required is "primitive printui"
I'm confident that at end a simple solution to add a printer will be found, keep me informed.
 
Yeah, it woks smoothly, provided you first install the usb interface.
Thanks again for your support
Ciao
 
Back
Top