Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Setup file to install mutiple drivers

 
Deepesh Mishra
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Winston Gutkowski
Bartender
Pie
Posts: 10236
58
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3752
62
Chrome Netbeans IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic