aspose file tools*
The moose likes General Computing and the fly likes Setup file to install mutiple drivers Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » General Computing
Bookmark "Setup file to install mutiple drivers" Watch "Setup file to install mutiple drivers" New topic
Author

Setup file to install mutiple drivers

Deepesh Mishra
Greenhorn

Joined: May 14, 2012
Posts: 3
Hi All,

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:
- JRE
- Printer Driver
- And, some more device drivers to work with deployed Software.

Kindly provide needful Logic and Code to achieve the same.

In anticipation of your interest.

--
Deepesh

Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5837
    
    7

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.

By the way, see NotACodeMill


JBoss In Action
Winston Gutkowski
Bartender

Joined: Mar 17, 2011
Posts: 8008
    
  22

Deepesh Mishra wrote:I need to create a Setup file in Java which can install various drivers in a Windows machine.

Then you've picked the wrong tool for the job.

Kindly provide needful Logic and Code to achieve the same.

No. That's not how this site works. You ShowSomeEffort (←click) and provide us with what you've tried; then we help.
But before you do I'd refer you to my reply above.

Winston
Martin Vajsar
Sheriff

Joined: Aug 22, 2010
Posts: 3610
    
  60

I can recommend using MakeMSI for creating Windows Installer files. In my opinion, this would be much better than any Java solution, and you're tied to Windows anyway.

You'll need to learn a bit about Windows Installer and similar stuff, though.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Setup file to install mutiple drivers