SQLite ODBC Driver installer/uninstaller for WIN32.
More...
#include <windows.h>
#include <sql.h>
#include <sqlext.h>
#include <odbcinst.h>
#include <winver.h>
#include <string.h>
#include <ctype.h>
#include <stdio.h>
Go to the source code of this file.
|
static BOOL | ProcessErrorMessages (char *name, int quiet) |
| Handler for ODBC installation error messages. More...
|
|
static BOOL | CopyOrDelModules (char *dllname, char *path, BOOL del) |
| Copy or delete SQLite3 module DLLs. More...
|
|
static BOOL | InUn (int remove, char *drivername, char *dllname, char *dll2name, char *dsname) |
| Driver installer/uninstaller. More...
|
|
int APIENTRY | WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpszCmdLine, int nCmdShow) |
| Main function of installer/uninstaller. More...
|
|
SQLite ODBC Driver installer/uninstaller for WIN32.
- Id
- inst.c,v 1.26 2016/08/14 10:02:55 chw Exp chw
Copyright (c) 2001-2016 Christian Werner chw@c.nosp@m.h-we.nosp@m.rner..nosp@m.de
See the file "license.terms" for information on usage and redistribution of this file and for a DISCLAIMER OF ALL WARRANTIES.
Definition in file inst.c.
◆ NUMDRVS
◆ SEEEXT
◆ SEESTR
◆ SEESTR2
◆ CopyOrDelModules()
static BOOL CopyOrDelModules |
( |
char * |
dllname, |
|
|
char * |
path, |
|
|
BOOL |
del |
|
) |
| |
|
static |
Copy or delete SQLite3 module DLLs.
- Parameters
-
dllname | file name of driver DLL |
path | install directory for modules |
del | flag, when true, delete DLLs in install directory |
Definition at line 102 of file inst.c.
Referenced by InUn().
◆ InUn()
static BOOL InUn |
( |
int |
remove, |
|
|
char * |
drivername, |
|
|
char * |
dllname, |
|
|
char * |
dll2name, |
|
|
char * |
dsname |
|
) |
| |
|
static |
◆ ProcessErrorMessages()
static BOOL ProcessErrorMessages |
( |
char * |
name, |
|
|
int |
quiet |
|
) |
| |
|
static |
Handler for ODBC installation error messages.
- Parameters
-
name | name of API function for which to show error messages |
quiet | when true suppress message box |
Definition at line 70 of file inst.c.
References quiet.
Referenced by InUn().
◆ WinMain()
int APIENTRY WinMain |
( |
HINSTANCE |
hInstance, |
|
|
HINSTANCE |
hPrevInstance, |
|
|
LPSTR |
lpszCmdLine, |
|
|
int |
nCmdShow |
|
) |
| |
Main function of installer/uninstaller.
This is the Win32 GUI main entry point. It (un)registers the ODBC driver(s) and deletes or copies the driver DLL(s) to the system folder.
Definition at line 299 of file inst.c.
References DriverDLL, DriverName, DSName, InUn(), nosys, NUMDRVS, and quiet.
◆ DriverDLL
Initial value:= {
"sqliteodbc.dll",
"sqliteodbcu.dll",
"sqlite4odbc.dll"
}
Definition at line 45 of file inst.c.
Referenced by WinMain().
◆ DriverName
Initial value:= {
"SQLite ODBC Driver",
"SQLite ODBC (UTF-8) Driver",
"SQLite4 ODBC Driver"
}
Definition at line 33 of file inst.c.
Referenced by WinMain().
◆ DSName
Initial value:= {
"SQLite Datasource",
"SQLite UTF-8 Datasource",
"SQLite4 Datasource"
}
Definition at line 39 of file inst.c.
Referenced by WinMain().
◆ nosys
◆ quiet