Skip to main content

AppDataConfigPath

Function AppDataConfigPath : string

Example

procedure ScriptEvent(var Value: variant);
begin
Value := AppDataConfigPath + 'Integration.cfg';
end;

Usage

AppDataConfigPath returns the shared Velox Config directory and attempts to create it when it is missing.

Additional Technical Info

AppDataConfigPath returns the Config\ directory under Velox's machine-wide application-data root.

The normal default is C:\ProgramData\Velox\Config\; the exact root can be changed by the process installation's AppDataFolder.cfg. The result includes a trailing backslash.

Implementation and behaviour

The script registration directly invokes vxConfigPath.AppDataConfigPath. It delegates to GetAppDataPath('Config\'), which concatenates the cached AppDataPath, checks the directory, and invokes ForceDirectories if it is absent. The path critical section serializes those operations within the current process.

This is shared configuration storage, not the signed-in user's configuration folder. Use UserDataConfigPath for per-user Designer state. A service normally runs under a different account but can resolve the same machine-wide path; actual access remains subject to Windows ACLs and service identity.

Reading the function can perform filesystem I/O. The implementation ignores ForceDirectories' Boolean result, so callers that intend to write should handle the write failure rather than treating this string as proof of availability. The function does not validate a filename appended by the script, prevent traversal, or open any file.

Related entries and official references

Created 2026-07-19 Created 2026-07-15