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 / WINDEV executable
  • Overview
  • Directory in which the User Groupware data files will be created
  • Directory for creating the HFSQL Classic data files of the application
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Creating an executable: Data file directory
Directory in which the User Groupware data files will be created
Two categories of data files are managed:
  • the data files used to identify the users. These data files can be common to several applications.
  • the data files used to manage the rights granted to the users on the different application windows. These files are specific to the application.
For details of these data files (names, fields, etc.), see The User Groupware data files.
By default, these data files are created in the "<ApplicationName>_GPW" subdirectory of the installation directory of the application. However, this directory can be modified. This directory can correspond to:
  • a specific directory
  • the directory of the application data. This choice is adapted to the UAC mechanism of Windows Vista. If the users work with Windows Vista (or later) and if the UAC mechanism is enabled, they will be able to use the application without any specific administrator rights.
The table below presents the different methods proposed by WINDEV to modify this directory.
Data files of users
(can be common to several applications)
Data files of the rights granted to the users (specific to the application)
How do I modify the creation directory of these data files?
  • through programming, with gpwOpen (if the User Groupware has not been integrated with the "Automatic start" option).
  • when configuring User Groupware (note: this directory is only used for application testing).
  • when creating the executable of the application.
  • when installing the application. This directory is selected by the user.
  • through programming, with gpwOpen (if the User Groupware has not been integrated with the "Automatic start" option).
  • when installing the application. This directory is selected by the user.
What is the order of priority used to define the directory for creating these data files?
  1. The directory specified with gpwOpen (if the User Groupware has not been integrated with the "Automatic start" option).
  2. The directory selected by the user when installing the application (if the setup program allows the user to select this directory).
  3. The directory selected when creating the application executable.
  4. The default directory (sub-directory "<NomApplication>_GPW" of the application installation directory).
    Therefore, the directory specified by gpwOpen has priority over all the other directories.
  1. The directory specified with gpwOpen (if the User Groupware has not been integrated with the "Automatic start" option).
  2. The directory selected by the user when installing the application (if the setup program allows the user to select this directory).
  3. The default directory (sub-directory "<NomApplication>_GPW" of the application installation directory).
    Therefore, the directory specified by gpwOpen has priority over all the other directories.

Special case: User Groupware data files are installed with the application.
These data files are installed in the directory specified when creating the setup program (destination directory).
Directory for creating the HFSQL Classic data files of the application
By default, HFSQL data files are created in the directories specified when describing data files in the analysis. However, these directories can be modified:
  • when creating the executable of the application.
    Several options are available:
    Available options
    • Automatic (recommended): This option installs:
      • in the application data directory (if the executable is installed in "Program files").
      • in the executable directory.
      This option is recommended because it can adapt to most of the setup configurations.
    • Application data directory (defined by Windows). This choice is recommended if the application must be used in Windows Vista. Therefore, the "local" files used by the application will be included in a directory accessible and modifiable by the application (without requiring any specific rights).
    • User data directory (defined by Windows).
    • Specific directory.
    • Executable directory.
  • through programming with HSubstDir or HChangeDir.
  • when installing the application. The directory for creating the data files will be selected by the user.
In any case, the directory for creating the data files is defined according to the following priority order:
  1. Directory specified by HSubstDir or HChangeDir.
  2. Directory selected when installing the application (if this option is proposed to the user).
  3. Directory selected when creating the executable.
  4. Directory specified when describing data files in the analysis.
Therefore, the directory defined by HSubstDir or HChangeDir has priority over all the other directories.
Special case: data files installed with the application
These data files are installed in the directory specified when creating the setup program (destination directory specified in the "Files installed" step).
The same directory should be used to install the data files supplied with the application and to create the new data files.
Minimum version required
  • Version 9
Comments
Click [Add] to post a comment

Last update: 01/08/2025

Send a report | Local help