checkVersion - Check for a newer file version on the File Exchange

버전 1.1.0.0 (4.78 KB) 작성자: Yair Altman
checkVersion implements an auto-update mechanism to check for a newer version of a utility on FEX
다운로드 수: 745
업데이트 날짜: 2013/2/21

라이선스 보기

Syntax:
[status, message] = checkVersion(filename, fexId, mode)

Description:
checkVersion implements an auto-update background mechanism to check for a newer version of a file on the Matlab File Exchange (FEX). This enables FEX authors to easily embed a non-intrusive update mechanism in their utilities, enabling its users to automatically update whenever a new version is uploaded to FEX.

checkVersion(filename,fexId) checks on FILENAME's File Exchange webpage whether any newer version of this utility has been uploaded. If so, a popup notice is presented with the date and description of the latest version. The popup enables users to download the newer version into the current folder, or skip. There is also an option to skip the update and not to remind ever again.

checkVersion is typically used after an applications has completed its main task or has presented its GUI, in order to silently check for an available update with minimal impact on the user. This could also be done by using a background single-shot timer (see example below).

checkVersion(...,'silent') runs checkVersion in silent mode, without prompting the user in case a newer version is detected. Newer file versions will automatically be downloaded and installed.

[status, message] = checkVersion(...) returns a string with the update check's status (ignored / unknown / up-to-date / available / downloaded / error), along with a descriptive message.

Examples:
checkVersion('uiinspect',17935);
checkVersion('uiinspect',17935,'silent');
status = checkVersion('uiinspect',17935);
[status, latestUploadDate] = checkVersion('uiinspect',17935);
[status, errorMessage] = checkVersion('noSuchFile',1234);

% run checkVersion in a background single-shot timer
start(timer('TimerFcn',@(h,e)checkVersion('uiinspect',17935), 'StartDelay',5));

Known issues/limitations:
This utility will silently fail if and when MathWorks will ever modify the File Exchange webpage format. In such case, download the latest version of the utility, which hopefully solves the problem, or send me an email.

Bugs and suggestions:
Please send to Yair Altman (altmany at gmail dot com)

인용 양식

Yair Altman (2024). checkVersion - Check for a newer file version on the File Exchange (https://www.mathworks.com/matlabcentral/fileexchange/39993-checkversion-check-for-a-newer-file-version-on-the-file-exchange), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2010a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Environment and Settings에 대해 자세히 알아보기
태그 태그 추가
gui

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.1.0.0

Ensure file is writable before updating (Thierry Dalon); increased FEX grace period 2=>3 days

1.0.0.0