This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to do auto-update for a program

 
reubin haz
Ranch Hand
Posts: 287
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have Java based program installed in my PC under normal path: C:\Program Files\MyProgram\ and there are some jar files under C:\Program Files\MyProgram\lib\

Now I want to update the program by replacing some jar files under lib folder. How can I write Java code to check where a user has installed this program? Say if it's not in C driver. Or even if it's not Window's based?

I know Firefox, iTunes, ... can do update checking and install automatically if there is more recent vision of software. But how can we implement it in Java?

Thanks
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Most Windows based programs will have their install location stored in the registry or as an environment variable. I guess as an alternative you could use Java to search for a particular file name across the computer, but that could be an expensive operation.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic