I need to create a Setup file in Java which can install various drivers in a Windows machine.
For example, say, I need to deploy a Java based project to Windows machine and this requires:
- Printer Driver
- And, some more device drivers to work with deployed Software.
Kindly provide needful Logic and Code to achieve the same.
You might be better of researching what Windows tools are available to install drivers and make use of those tools. From what I recall there are either command line tools to do this, or you simply need an installation configuration file (it's a text file) with a specific extension and "running" that file will get the drivers installed. You can then use System.exec() within you Java code to run the tools.