• 0

Printer installation using Java


Question

I need to write some java code that can install a new printer and set it as default, mostly on XP machines. Can anyone offer advice on the best way to go about this please? If the program is to install printer drivers then they will need to install silently without user intervention.

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

Well, I could make you a program that will download the drivers (legally) and then launch the installation but I have no clue on how to do it without user installation because how would my program know how to answer all the questions that the installation file might have?

If you find a way please post it, I'm very interested.

Link to comment
Share on other sites

  • 0

I think the question was how to install it using the native Windows installation method... I'm not sure how though, but I'll be watching this thread to find out the solution...

Link to comment
Share on other sites

  • 0

Why in Java by the way? It's sort of pointless to write a driver installer in Java, especially since most provide an installer, and I'm certain you can provide arguments to some of these to make them go without questions for the user.

Link to comment
Share on other sites

  • 0
Why in Java by the way? It's sort of pointless to write a driver installer in Java, especially since most provide an installer, and I'm certain you can provide arguments to some of these to make them go without questions for the user.

but how could you make the program (your program that is) pass those arguments to the installer? Is the installer supposed to have a .ini file for the purpose?

Link to comment
Share on other sites

  • 0
but how could you make the program (your program that is) pass those arguments to the installer? Is the installer supposed to have a .ini file for the purpose?

Well, I figure you could just put the arguments in the System command to execute the program, unless the specific language puts the parameters in a different argument to the System command.

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.