Navigation:  Part II - Enhanced Features > Executables (exe file) >

Read Configuration Data

Previous pageReturn to chapter overviewNext page

If the main application is an EXE file, the application should work without any modifications. Only if the EXE files writes configuration files, which should be available after the next program start, a modification could be necessary.

 

Test your application. If the application writes configuration files typically on the installation folder, this folder is not visible any more to the EXE file while it is running. The folder name can be retrieved reading a text or XML file.

 

The Multimedia Player provides a file mp-config.xml and mp-config.txt. Both files have the same content. Just read the file  with the format your application can handle.

 

The files provide the following information.

 

mp-config.xml

 

It is an XML file.

 

<Install-Path-MMF>  - path where the mmf file (database) can be found
<Install-Path-Player> - installation path of the application
<Player-Name> - name of the Multimedia Player, e.g. myapp.exe
<MMF-Name> - name of the mmf file, e.g. myappdata.mmf
<StartExe> - name of the start file, e.g. yoursource.exe
 

 

mp-config.txt

 

It is standard Windows INI file.

 

[Default] - Section Name you have to specify if you read an parameter

Install-Path-MMF  - path where the mmf file (database) can be found
Install-Path-Player - installation path of the application
Player-Name - name of the Multimedia Player, e.g. myapp.exe
MMF-Name - name of the mmf file, e.g. myappdata.mmf
StartExe - name of the start file, e.g. yoursource.exe
 

 

 

The variable Install-Path-Player provides you with the installation path of the application. This would be the folder where your application previously stored configuration files.

 

It is possible that the protected EXE file (variable Player-Name) has a different name like your original EXE file (variable StartExe.)

 

 

Use the name of the EXE file you want to protect as project filename. Then the name of the protected EXE file has the same filename like your original application.

 


Page url: http://www.helpserver.biz/onlinehelp/lpmme/2.0/generator/help2000/index.html?exe_read_configuration_file.htm