PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Creating a patch
  • History of patches
  • Viewing the history of patches performed from a project
  • Reinitializing the patches (clear the history) performed from a project
  • Installing a patch
  • To install a patch
  • Patch and network setup
  • Notes
  • Creating a new executable
  • Re-initializing the patch number to 1
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Creating a patch
To create an application patch:
  1. Perform the necessary modifications in your application.
  2. Select "Workshop .. Library .. Create a library patch".On the "Project" pane, in the "Generation" group, expand "Patch" and select "Create a library patch".
  3. Specify the elements to include in the new patch (windows, reports, ...). You can also:
    • Add elements ("Add" button):
      Any type of file can be added to the list of elements inserted into the patch: images, text files, ...
    • Create the patch from an existing library description ("WDU" button).
      When creating a WINDEV library, a ".WDU" file with the same name is automatically created. This file contains all the references of the elements included in the library.
      The patch number is specified by default. It can be modified.
      All the elements already found in a patch that was created beforehand are automatically selected.
      If patches have already been created, you have the ability to re-initialize the patches (clear the history) ([Reinitialize the patches] button). In this case, the patch currently created will be patch number 1.
  4. If necessary, enter a description of the modifications performed by this patch. This description will appear when managing the history of the different patches performed from a project.
  5. To install the patch, all you have to do is copy it into the application directory.
  6. Validate. The application patch is created in the PATCH sub-directory of the current project directory as well as in the EXE sub-directory of the project. The file name has the following format: <Project Name>.WDL.001 where 001 corresponds to the version number of the patch. Rename <Project Name> with the name of the library only if the project name differs from the library name.
Note: Patch containing classes: If your patch contains a class, the declaration code of the class must not be modified in relation to the version used with the executable. The declaration code must be identical: same members, same structures, same declaration order. Otherwise, the executable must be re-created.
History of patches

Viewing the history of patches performed from a project

To view the history of patches performed from a project:
  1. Select "Workshop .. Library .. History of library patches".On the "Project" pane, in the "Generation" group, expand "Patch" and select "History of library patches".
  2. For each created patch, you can view the patch elements and the corresponding description.

Reinitializing the patches (clear the history) performed from a project

To reinitialize the patches (clear the history) performed from a project:
  1. Select "Workshop .. Library .. History of library patches".On the "Project" pane, in the "Generation" group, expand "Patch" and select "History of library patches".
  2. Click the "Reinitialize" button.
Installing a patch

To install a patch

If no setup file was created: copy the file corresponding to the patch into the directory of the application (directory containing the application library).
Patch and network setup
Notes

Creating a new executable

Once several patches have been created, if you create a new executable that takes into account all the different patches, you can delete the patches that were previously created and that are useless now.
When a new patch is created on this new executable, you must respect the numbering of patches proposed by WINDEV. The patch number cannot be re-initialized (see the next paragraph).

Re-initializing the patch number to 1

An application patch is used to apply modifications to an executable or to a library without having to reinstall the application. This is a maintenance operation that is easy, light and fast.
For each new patch, a generation number is incremented and stored in the history. This patch number and this history prevent the application from applying obsolete patches.
Therefore, they cannot be reinitialized.
However, WINDEV allows you to assign a specific number to a patch in order to fix the potential maintenance errors.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment