I am getting 2203 error while extracting msi with following command.
msiexec /a "C:\Test\Installer.msi" /QB targetDIR="C:\Test\Eval" /LV* "C:\Test\INST_Logfile.log"
Please consider following points while answering:
Logged-in user and SYSTEM account has full access on
%TEMP%,C:\Windows\Installer.msi is not marked as ReadOnly.
Checked Windows installer service and it is working fine.
Tried unregister and register msiexec
MSIEXEC /UNREGISTER MSIEXEC /REGSERVER
Restarted system
Below is error captured in log:
MSI (s) (88:A4) [14:09:27:551]: Executing op: DatabaseCopy(DatabasePath=C:\Test\Installer.msi,,CabinetStreams=cab1.cab,AdminDestFolder=C:\Test\,)
MSI (s) (88:A4) [14:09:27:551]: Note: 1: 2203 2: C:\Test\Installer.msi 3: -2147287008
DEBUG: Error 2203: Database: C:\Test\Installer.msi. Cannot open database file. System error -2147287008
MSI (s) (88:A4) [14:09:34:634]: Product: Installer -- The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2203. The arguments are: C:\Test\Installer.msi, -2147287008,
I had this problem due to something stupid on my part, but figured I would post in case anyone else tries this. For this extraction command line (and others I presume), DO NOT have the msi you are extracting in same folder as TARGETDIR. The windows installer seems to lock the folder during the extraction process and therefore the contents cannot be written to the same folder.
TrendMicro antivirus was installed on machine and it was preventing msi extraction. So once TrendMicro anti-virus was turned off installer ran successfully.
Thank you all for your answers
Great Answer guys! I was looking for the deeper error code. Cannot Open Database file. System Error -2147287008. Which is part of the more generic Error 2203 Database. Any yep it was caused by trying to extract the MSI into the same location as the MSI itself. Hoping this will help other searching by this error code.
In my case error 2203 was caused by my %TEMP% directory not being writable by SYSTEM. (It only had permissions for my user account.) Giving SYSTEM modify permissions fixed the problem.
I was trying to install MySQL community server, and installer would stop with 2203 error code.
I had PATH variable in Windows environment variables section, referring to temp folder at C:\Temp
, but there was no such folder in the root of C drive. After creating Temp folder at C:\Temp
, installer was able to continue with installation.
来源:https://stackoverflow.com/questions/21846381/error-2203-while-extracting-msi