Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error 2203 while extracting msi

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,

like image 921
Kundan Bhati Avatar asked Feb 18 '14 06:02

Kundan Bhati


People also ask

How to fix 2203 error?

Take Ownership of the Temp Folder. Issues with the Windows Installer service and missing permission for the temp folder can also cause the installer error 2203. You can end the Windows Installer service and then take ownership of the temp folder to fix this problem.


1 Answers

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.

like image 144
user3124079 Avatar answered Sep 28 '22 03:09

user3124079