Pranjal Choladhara
Pranjal Choladhara

Reputation: 913

Provide update to user

I am working in a java application, in which all the users will get automatic update when the user is connected to internet. I am trying a simple logic like this:

  1. My application will search for the validity of the user.

  2. If the user is valid a folder will be downloaded from http://example.com/update/

  3. The downloaded folder will be stored somewhere in disk.

  4. My project folder's dist folder will be replaced with the new downloaded file.

    I am stumbled in the No. 4. OS does not allow me to replace in-use files. Is there any other solution, so that I can provide updates to my users.?

Upvotes: 0

Views: 42

Answers (1)

Matteo Gatto
Matteo Gatto

Reputation: 626

A solution is to write a "boot application" that checks if there are updates available and update the software file and then launch the real application.

Upvotes: 1

Related Questions