36#define ADD_TABLE(x) {#x".idt", x##_dat, sizeof(x##_dat)}
40 int version,
int wordcount,
const char *
template,
const char *packagecode);
42#define create_database(name, tables, num_tables) \
43 create_database_wordcount(name, tables, num_tables, 100, 0, ";1033", \
44 "{004757CA-5092-49C2-AD20-28E1CE0DF5F2}");
46#define create_database_template(name, tables, num_tables, version, template) \
47 create_database_wordcount(name, tables, num_tables, version, 0, template, \
48 "{004757CA-5092-49C2-AD20-28E1CE0DF5F2}");
52#define create_file(name, size) create_file_data(name, name, size)
54#define create_pf(file, is_file) create_pf_data(file, file, is_file)
static const WCHAR version[]
struct nls_table * tables
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
static void create_cab_file(void)
void create_database_wordcount(const char *name, const msi_table *tables, int num_tables, int version, int wordcount, const char *template, const char *packagecode)
UINT run_query(MSIHANDLE hdb, MSIHANDLE hrec, const char *query)
BOOL pf_exists(const char *file)
BOOL get_system_dirs(void)
char APP_DATA_DIR[MAX_PATH]
void create_pf_data(const char *file, const char *data, BOOL is_file)
BOOL file_exists(const char *file)
struct _msi_table msi_table
char PROG_FILES_DIR[MAX_PATH]
char COMMON_FILES_DIR[MAX_PATH]
void create_file_data(const char *name, const char *data, DWORD size)
BOOL is_process_elevated(void)
char PROG_FILES_DIR_NATIVE[MAX_PATH]
char WINDOWS_DIR[MAX_PATH]
BOOL delete_pf(const char *rel_path, BOOL is_file)
void restart_as_admin_elevated(void)
void delete_cab_files(void)