Note about error codes: Some functions return an error number. Some return True/False. Some return an array. But wherever functions can return useful error information it will be returned in the ErrorString property. Most functions have MBase error codes as well as MSI error codes. For example, an invalid parameter might return an error number of 1 or 2, while a function that fails in a call to WindowsInstaller will have an MSI error number. In both cases there should be a descriptive text string returned in the ErrorString property if the function return is an error. The latest update (7/2017) adds much improved error reporting. Windows Installer has the LastErrorRecord object, which often contains very exact information about errors. But the object is not officially documented. LastErrorRecord has at least 4 fields. The first is an MSI error code. That code corresponds to a description in the WI docs. The other fields provide additional info. For example, a failed table import error might tell what line the error was on. All of that has been incorporated into the MBase class so that, in many cases, checking ErrorString when a function fails will tell you exactly what the problem is. |
Error 2232: Database: [2]. Unexpected token '[3]' in SQL query: [4] 1: 2232 2: C:\WINDOWS\Desktop\MaxMind\MaxMind.msi 3: 4: SELECT `GeoID`,`Radius` FROM `IPList` WHERE `IPLow` <= '-788098414 AND `IPHigh` >= -788098414