This is work in progress.

Windows / Headers / MsiQuery.h

MsiQuery.h

Interface to running installer for custom actions and tools

Associated Error Codes

Below is a list of error codes found for this header.

SymbolicValueDescription
MSIDBERROR_NOERROR0x00000000no error
MSIDBERROR_DUPLICATEKEY0x00000001new record duplicates primary keys of existing record in table
MSIDBERROR_REQUIRED0x00000002non-nullable column no null values allowed
MSIDBERROR_BADLINK0x00000003corresponding record in foreign table not found
MSIDBERROR_OVERFLOW0x00000004data greater than maximum value allowed
MSIDBERROR_UNDERFLOW0x00000005data less than minimum value allowed
MSIDBERROR_NOTINSET0x00000006data not a member of the values permitted in the set
MSIDBERROR_BADVERSION0x00000007invalid version string
MSIDBERROR_BADCASE0x00000008invalid case must be all upper-case or all lower-case
MSIDBERROR_BADGUID0x00000009invalid GUID
MSIDBERROR_BADWILDCARD0x0000000Ainvalid wildcardfilename or use of wildcards
MSIDBERROR_BADIDENTIFIER0x0000000Bbad identifier
MSIDBERROR_BADLANGUAGE0x0000000Cbad language Id(s)
MSIDBERROR_BADFILENAME0x0000000Dbad filename
MSIDBERROR_BADPATH0x0000000Ebad path
MSIDBERROR_BADCONDITION0x0000000Fbad conditional statement
MSIDBERROR_BADFORMATTED0x00000010bad format string
MSIDBERROR_BADTEMPLATE0x00000011bad template string
MSIDBERROR_BADDEFAULTDIR0x00000012bad string in DefaultDir column of Directory table
MSIDBERROR_BADREGPATH0x00000013bad registry path string
MSIDBERROR_BADCUSTOMSOURCE0x00000014bad string in CustomSource column of CustomAction table
MSIDBERROR_BADPROPERTY0x00000015bad property string
MSIDBERROR_MISSINGDATA0x00000016_Validation table missing reference to column
MSIDBERROR_BADCATEGORY0x00000017Category column of _Validation table for column is invalid
MSIDBERROR_BADKEYTABLE0x00000018table in KeyTable column of _Validation table could not be found/loaded
MSIDBERROR_BADMAXMINVALUES0x00000019value in MaxValue column of _Validation table is less than value in MinValue column
MSIDBERROR_BADCABINET0x0000001Abad cabinet name
MSIDBERROR_BADSHORTCUT0x0000001Bbad shortcut target
MSIDBERROR_STRINGOVERFLOW0x0000001Cstring overflow (greater than length allowed in column def)
MSIDBERROR_BADLOCALIZEATTRIB0x0000001Dinvalid localization attribute (primary keys cannot be localized)
MSIDBERROR_INVALIDARG0xFFFFFFFDinvalid argument
MSIDBERROR_MOREDATA0xFFFFFFFEbuffer too small
MSIDBERROR_FUNCTIONERROR0xFFFFFFFFfunction error
33 entries