ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / Windows functions / Application update functions
  • Automatic check for available updates
  • Customizing the automatic check for updates with AppDetectUPDAvailable
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Warning
From version 27, AppliDetectUPDAvailable is kept for backward compatibility. This function has been replaced with AppDetectUPDAvailable.
Disables or customizes the automatic check for available updates.
Example
AppDetectUPDAvailable(MiseAJourDisponible)
	INTERNAL PROCEDURE MiseAJourDisponible(MiseAJour, Version)
		IF MiseAJour = appUPDAvailMandatory THEN
			ToastDisplay("Une mise à jour obligatoire est disponible (" + Version + ").")
		END
	END
Syntax
AppDetectUPDAvailable(<WLanguage procedure>)
<WLanguage procedure>: Procedure name
Name of the WLanguage procedure ("callback") called when an update of the running application is detected. For more details on this procedure, see Parameters of the procedure used by AppDetectUPDAvailable.
Remarks

Automatic check for available updates

The application regularly checks if a network update is available.
Reminder: the verification delay can be set from the WDAdminExe application or by using the AppChangeParameter function.
If an update is available, a toast will be displayed only if the user is currently using the application.
  • For optional updates, the notification message is as follows:
    An optional update for '<Application name>' is available.
    A button in the toast allows you to install the update.
  • For mandatory updates, the notification message is as follows:
    A mandatory update for '<Application name>' is available.
    A button in the toast allows you to install the update.
These messages cannot be modified or configured.
The check for available updates is always active.
Remarks:
  • If the user has chosen not to install an optional update at application startup, that version will not be proposed by the notification mechanism.
  • Mandatory update notifications are displayed every 5 minutes if the update has not been installed.
  • Optional update notifications are not displayed again if the update is not installed. It will only appear next time the application is started.
  • New in version 2025
    Until version 2025 Update 1, updates were offered via a Windows. From version 2025 Update 2 onwards, the update is offered via a toast.

Customizing the automatic check for updates with AppDetectUPDAvailable

The <WLanguage procedure> parameter allows you to customize the action taken when the update is detected. Its action replaces the toast display. This procedure can, for example:
  • do nothing: in this case, the user will not be informed that an update is available..
  • perform a specific action. This action replaces the toast display.
Component: wd300std.dll
Minimum version required
  • Version 26
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 04/03/2025

Send a report | Local help