使用以下命令提取 msi 时出现 2203 错误。
msiexec/a "C:\Test\Installer.msi"/QB targetDIR="C:\Test\Eval"/LV* "C:\Test\INST_Logfile.log"
回答时请考虑以下几点:
%TEMP%,C:\Windows\安装程序。
MSIEXEC /UNREGISTER
MSIEXEC /REGSERVER
以下是日志中捕获的错误:
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,
最佳答案
由于我的一些愚蠢行为,我遇到了这个问题,但我想我会发布以防其他人尝试这个。对于此提取命令行(以及我认为的其他命令行),请勿将要提取的 msi 与 TARGETDIR 放在同一文件夹中。 Windows 安装程序似乎在提取过程中锁定了文件夹,因此无法将内容写入同一文件夹。
关于installation - 提取 msi 时出现错误 2203,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21846381/