msi: Install data sources in the InstallODBC custom action.
diff --git a/include/msidefs.h b/include/msidefs.h index b99537f..cf022d6 100644 --- a/include/msidefs.h +++ b/include/msidefs.h
@@ -168,6 +168,12 @@ msidbComponentAttributes64bit = 0x00000100 }; +enum msidbODBCDataSourceRegistration +{ + msidbODBCDataSourceRegistrationPerMachine = 0x00000000, + msidbODBCDataSourceRegistrationPerUser = 0x00000001 +}; + enum msidbRegistryRoot { msidbRegistryRootClassesRoot = 0,
diff --git a/include/odbcinst.h b/include/odbcinst.h index f377197..a1109d5 100644 --- a/include/odbcinst.h +++ b/include/odbcinst.h
@@ -34,6 +34,14 @@ #define ODBC_CONFIG_DRIVER 3 #define ODBC_CONFIG_DRIVER_MAX 100 +#define ODBC_ADD_DSN 1 +#define ODBC_CONFIG_DSN 2 +#define ODBC_REMOVE_DSN 3 +#define ODBC_ADD_SYS_DSN 4 +#define ODBC_CONFIG_SYS_DSN 5 +#define ODBC_REMOVE_SYS_DSN 6 +#define ODBC_REMOVE_DEFAULT_DSN 7 + /* Mode values for SQLSetConfigMode/SQLGetConfigMode */ #define ODBC_BOTH_DSN 0 #define ODBC_USER_DSN 1