B4J Question How update my app

Douglas Farias

Expert
Licensed User
Longtime User
I m making a app with b4j and i dont have ideia how update my app automatic.
anyone have a ideia or know how can i make this?

for example, i make a check when app start if have a new version to download my app download and replace the current runing, but i dont know how to replace, kill the current process and change to a new file downloaded.

How can i make this auto-update on b4j? any ideia?
 

sorex

Expert
Licensed User
Longtime User
never tried it but maybe this works

save a batch file to the system where you

taskkill all java processes
download the update
restart the app
 
Upvote 0

sorex

Expert
Licensed User
Longtime User
you could download the replacement in the project, so only the

taskkill
overwrite the current with the downloaded
restart app

ramains
 
Upvote 0

Douglas Farias

Expert
Licensed User
Longtime User
but later i use taskill how i can download the new file?
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…