PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Overview
  • Directory for creating the data files of the application
  • Directory for creating the data files of the user groupware
  • Directory for creating the HFSQL Classic data files of the application
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 an executable: Directory of data files
Directory for creating the data files of the application
By default, the data files are created in the directories specified when describing files in the analysis. However, these directories can be modified:
  • when creating the executable of the application.
    By default, the data files are found in the directory of the application or in the current directory. This option is not recommended in Windows Vista. You can:
    • Select a specific directory
    • Select the directory of the application data. 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).
  • by 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 the 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).
The same directory should be used to install the data files supplied with the application and to create the new data files.
Directory for creating the data files of the user groupware
Two categories of 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.
See The files of user groupware for more details.
By default, these data files are created in the "<ApplicationName>_GPW" sub-directory of the setup 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?
  • by programming, with gpwOpen (if the user groupware was not integrated by the "AutoRun" option).
  • when configuring the user groupware (caution: this directory is used for the tests of the application only).
  • when creating the executable of the application.
  • when installing the application. This directory is selected by the user.
  • by programming, with gpwOpen (if the user groupware was not integrated by the "AutoRun" option).
  • when installing the application. This directory is selected by the user.
What is the priority order when defining the creation directory of these files?
  1. The directory specified by gpwOpen (if the user groupware was not integrated by the "AutoRun" 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 ("<ApplicationName>_GPW" sub-directory of the setup directory of the application).
    Therefore, the directory specified by gpwOpen has priority over all the other directories.
  1. The directory specified by gpwOpen (if the user groupware was not integrated by the "AutoRun" 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 ("<ApplicationName>_GPW" sub-directory of the setup directory of the application).
    Therefore, the directory specified by gpwOpen has priority over all the other directories.
Special case: the data files of user groupware 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, the HFSQL data files are created in the directories specified when describing files in the analysis. However, these directories can be modified:
  • when creating the executable of the application.
    Several options are available:
    Available options
    • Versions 22 and later
      Automatic (recommended): This option is used to install the data files:
      • in the directory of application data (if the executable is installed in "Program files").
      • in the executable directory.
      New in version 22
      Automatic (recommended): This option is used to install the data files:
      • in the directory of application data (if the executable is installed in "Program files").
      • in the executable directory.
      Automatic (recommended): This option is used to install the data files:
      • in the directory of application data (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.
    • Directory of application data (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).
    • Directory of user data (defined by Windows).
    • Specific directory.
    • Executable directory.
  • by 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 the 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 required version
  • Version 9
Comments
Click [Add] to post a comment