Functions

src/CustomActions/DataSource/ConfigDataSource.cpp File Reference

#include "StdAfx.h"
#include "ConfigDataSource.h"
#include "FlagMaps.h"

Functions

CA_API UINT __stdcall ConfigDataSource (MSIHANDLE hInstall)
 Create, remove or configure a DSN.

Function Documentation

CA_API UINT __stdcall ConfigDataSource ( MSIHANDLE  hInstall)

Create, remove or configure a DSN.

Parameters:
DSN_ATTRIBUTESDSN Attributes for SQLConfigDataSource
DSN_NAMEDSN Name, used only if DSN_ATTRIBUTES not specified
ODBC_DRIVERODBC driver for SQLConfigDataSource
ODBC_FLAGODBC flag for SQLConfigDataSource, one of the following:

  • ODBC_ADD_DSN: create a user DSN
  • ODBC_CONFIG_DSN: configure a user DSN
  • ODBC_REMOVE_DSN: remove a user DSN
  • ODBC_ADD_SYS_DSN: create a system DSN
  • ODBC_CONFIG_SYS_DSN: configure a system DSN
  • ODBC_REMOVE_SYS_DSN: remove a system DSN
  • ODBC_REMOVE_DEFAULT_DSN: remove the default DSN


© Application Security Inc. - All Rights Reserved http://msiext.codeplex.com