Python msilib errors

From wikinotes

msilib errors can be a bit cryptic, particularly when they do not offer any context.

Tutorials

resoliving ICE validation errors (orca.exe) http://poornnimaa.blogspot.com/2011/07/how-to-resolve-ice-errors.html

Windows Installer Error

Windows Installer Errors will look like the following

#                    +--- error-code
#                   /
_msi.MSIError: 1: 2213 2: installer.msi 3:  4:

Lookup here: https://docs.microsoft.com/en-us/windows/win32/msi/windows-installer-error-messages

2213 Database: [2]. Error saving database tables.
  • unzipping/renaming on localdrive, adding files, then removing tempdir

adding the already extracted files worked fine - possibly a file-open lock issue?

FCI error

Traceback (most recent call last):
  File "build_msi.py", line 102, in <module>
    build('installer.msi')
  File "build_msi.py", line 57, in build
    target_dir.cab.commit(db)
  File "C:\Users\willjp\Documents\tma\third_party\Python-3.6.5\lib\msilib\__init__.py", line 217, in commit
    FCICreate(filename, self.files)
ValueError: FCI error 1

Lookup here: https://docs.microsoft.com/en-us/windows/win32/api/fdi_fci_types/ns-fdi_fci_types-erf