Upgrading from Earlier Releases › Upgrading from CA Plex r6.0 and r6.1 › New Runtime .INI Search Path › .INI File Algorithm
.INI File Algorithm
The full set of rules is set out below and provides flexibility for other deployment scenarios dependent on the access rights of the user who runs the application:
If a Plex generated executable is called app.exe, then the respective .ini file will be app.ini.
At run time, an application app.exe searches for an app.ini file as follows:
- In the same directory where the executable (app.exe) is located. If app.ini file is found there and has read-write (RW) access then the executable app.exe uses it.
- Otherwise, the app.exe searches in the local user \Documents\app\ directory (where app is the name of the executable). If the file app.ini is found there and has RW access, then the executable app.exe uses it.
- Otherwise, the executable uses the PATH statement to locate an app.ini file that has RW access.
- If such an app.ini file is still not found, then the executable app.exe creates a new app.ini file inside the local user \Documents\app directory with RW access. This new app.ini will be a copy of the first read-only app.ini found, or, If not found, a blank app.ini is created.