ODBC.InstallDriver

string ODBC.InstallDriver ( 

string Driver )

Description

Installs an ODBC driver. This is accomplished by adding information about the driver to the Odbcinst.ini entry in the system information and incrementing the driver's UsageCount by 1.

Note: This action does not actually copy any files. You must also copy the driver's files to the target directory.

Parameters

Driver

(string) A string containing the driver description and 'name = value' pairs describing the driver. Each attribute is separated by "\\0".

For example:  "Microsoft Access Driver(*.mdb)\\0Driver=odbcjt32.dll\\0Setup=odbcjt32.dll\\0FileUsage=1\\0FileExtns=*.mdb\\0APILevel=1\\0ConnectFunctions=YYN\\0DriverODBCVer=02.50\\0SQLLevel=0\\0\\0"

Returns

(string) The path of the target directory where the driver was installed. If the driver has not previously been installed, this path will be the same as that specified in the Driver parameter. If the driver was previously installed, this path will be the path to the previous installation. If an error occurs, a blank string ("") is returned. You can use Application.GetLastError to determine whether this action failed, and why.

ResultVariable

When adding an action with the action editor, you can use this field to specify a variable that the return value will be stored in.

See also:  Related Actions