- 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
Deploying an application that uses an external component
An application that uses one or more external components is deployed in the same way as a standard application: on the "Project" tab, in the "Generation" group, expand "Setup procedure" and select "Create setup 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
- 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.
The different methods
Two methods can be used to update a component on the end-user computers:
- 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 the new version and the earlier component versions.
- Distributing the .WDK file directly
Provide an upgraded version of the component (.WDK file) to the end users 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:
- Copy the component files into a directory:
- the <Component name>.WDK file
- the other component files (if necessary)
- 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:
Location = <Directory in which the component files are available>
: The update of the external component is easier: it is performed in the component directory only (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:
- Create a file named <Component name>.ini beside the application executable.
- This file has the following structure:
Localization = <Path of WDK to use>
This page is also available for…