Use a script to set the environment
Specify a command script for the application to launch the application.
As an alternative to defining ENVIRONMENT_VARIABLE elements, you can use
the DVM element to define a command that will set the environment and
launch the application.
On Linux®/UNIX™
Use the DVM element to define a shell that will execute a script
specified with the MODULE element:
<APPLICATION Id="kiosk" Parent="defaultgwc">
<EXECUTION>
<PATH>/home/f4gl/gep/configfiles/officestoredemo</PATH>
<DVM>/bin/sh</DVM>
<MODULE>gdc-kiosk.sh</MODULE>
</EXECUTION>
</APPLICATION>
PATHelement specifies where the script is stored.DVMelement defines the command to execute the shell script defined inMODULE.MODULEelement specifies the shell script file.
On Windows®
Use the DVM element to specify a .bat file, including
environment settings and program execution:
<APPLICATION Id="myprog" Parent="defaultgdc">
<EXECUTION>
<PATH>$(res.fgldir)/demo</PATH>
<DVM>c:\myprog\launch.bat</DVM>
</EXECUTION>
</APPLICATION>
PATHelement defines where the script is stored.DVMelement defines the bat file to be executed.