ODBC.UninstallDriver

number ODBC.UninstallDriver ( 

string  Driver,

boolean RemoveDSN = false )

Description

Uninstalls the driver and returns the usage count after the action is done. This is accomplished by removing information about the driver from the Odbcinst.ini entry in the system information. This action wraps the SQLRemoveDriver function of the Windows API.

Note: This action does not actually remove any files. If you would like the driver file removed, you must remove it using actions. However generally it is dangerous to remove the drivers from the user's system if there is potential that they are shared.

Parameters

Driver

(string) A string containing the name of the driver as registered in the Odbcinst.ini key of the system information.

For example:  "Microsoft Access Driver (*.mdb)"

RemoveDSN

(boolean) Whether or not to remove DSN's associated with the driver.

VALUE

DESCRIPTION

true

Remove DSNs associated with the driver specified in the Driver parameter.

false

Do not remove DSNs associated with the driver specified in the Driver parameter. (Default)

Returns

(number) The usage count of the driver after this function has been called. If an error occurs, -1 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