Packaged app automatic update ?
9 views (last 30 days)
I'm trying to deploy code to many users via a Packaged app. I would like the app to automatically check if a new version of itself is available (say on a network location) and prompt the user to update if this is the case. Has anyone ever tried this ? I can't seem to find a way of checking the version of the code that is in the app package...
Sanjana Ramakrishnan on 19 Sep 2017
There are two ways to accomplish this.
Approach I: Store the compiled application in Network drive, and make all users to use the application from the network drive. When you update the application, place the new application in place of the old application in the network drive. This would allow all users to use the updated application. However, you will be able to update the old application with new one, only when none of the users are using it.
a)Place the compiled application on a server. Create a metadata file with version information of the application.
b)In startup.m file which gets compiled with compiled application, include the following logic:
current_version=1.0 %setting a variable to store the current version of the application
version=webread(url) %get version information from metadata file in the server %
%display a prompt to the customer to update the application%