ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / Developing an application or website / Component / External component
  • Overview
  • Updating components and deployed executables
  • The different methods
  • Sharing a component between several applications
  • Forcing the use of an external component when the WDK was included in the application
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Overview
Deploying an application using one or more external components is done in the same way as deploying a conventional application: under the "Project" pane, in the "Generation" group, pull down "Setup procedure" and select "Create installation procedure"..
When deploying an application that contains a component, the following files are automatically installed on the user computer (or on the server):
  • <Component name>.WDK
  • <ApplicationName>.EXE
    WEBDEV - Server code This file is not installed.
  • the files required for the component and the application.
Updating components and deployed executables
When updating a component and/or an executable, the following elements can be installed on the end-user computer:
  • the application executable, the component and the necessary files.
  • the executable and the files required for the application.
  • the component and any necessary files.
For more details on the compatibility between applications and components, see Managing the versions of a component (during a modification).

The different methods

Two methods can be used to update a component on the end-user computers:
  1. Recompiling the host project
    Recompile the application that uses the component and redistribute the application with the component.. In this case, no version problem or compatibility problem will occur. The recompilation is required in the following cases:
    • New functions have been added to the component and they must be taken into account by the application.
    • The parameters of some procedures have been modified.
    • Incompatibility between new and earlier versions of the component.
    • ...
  2. Distributing the .WDK file directly
    Deliver a component update (.WDK file) directly to customers without recompiling the project.. In most cases, this possibility applies when:
    • The new version is used to correct problems of an earlier version.
    • New features have been added to the component but are not required to run the application.
Sharing a component between several applications
Several applications installed on the same computer can use the same external component. To share the component among these applications and to avoid duplicating the component in each application, perform the following operations:
  1. Copy the component files into a directory:
    • the <Component name>.WDK file
    • the other component files (if necessary)
  2. In each directory of applications that use the component:
    • Delete <Component name>.WDK and the files required by the component from the application directory.
    • Create a <Component name>.INI file in the application directory. This file has the following structure:
      [General]
      Localisation = <Répertoire dans lequel les fichiers du composant sont disponibles>
Advantage: External component updates are made easier: they are carried out only in the component directory (and not in each application).. If the component is also found in the application directory, if a .INI file is found, the component specified in the .INI file has priority.
Forcing the use of an external component when the WDK was included in the application
When a component was included in the library of an application when the executable was created, you still have the ability to force the use of an external WDK.
This enables you for example to debug the component or to correct a feature without having the project of the application.
To do so:
  1. Create a file named <Component name>.ini beside the application executable.
  2. This file has the following structure:
    [Debug]
    Localisation = <Chemin du WDK à utiliser>
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/21/2024

Send a report | Local help