ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Windows functions / Application update functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Warning
From version 23, AppliActivateVersion is kept for backward compatibility. This function is replaced by AppActivateVersion.
Activates one of the application versions available in the history of versions on the reference setup server.
Remark: This function can only be used with a network setup on a local network. It cannot be used with a setup by IP.
Example
// Creates the list of available versions
ListVersions is string
ListVersions = AppListVersion()
// Extracts the last version
LastVersion is string
LastVersion = ExtractString(ListVersions, 1, CR, FromEnd)
// Activate the version
IF AppActivateVersion(LastVersion) = False THEN
Error("Error while activating the version " + LastVersion +  ...
CR + ErrorInfo())
END
Syntax
<Result> = AppActivateVersion(<Version> [, <Forced version> [, <Executable>]])
<Result>: Boolean
  • True if the activation was successfully performed,
  • False otherwise. To get more details on the error, use ErrorInfo.
    Remark: the possible error causes are as follows:
    • the history of versions is not enabled.
    • the requested version does not exist.
<Version>: Character string
Version number to activate.
<Forced version>: Optional boolean
  • True to force the version to activate. All the computers will be updated with the version specified in <Version>, including the computers that use a more recent version.
  • False (default value) otherwise.
<Executable>: Optional character string
Full path of executable corresponding to the application to update. If this parameter is not specified, the current application is updated.
Component: wd290std.dll
Minimum version required
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help