installation - 提取 msi 时出现错误 2203

标签 installation windows-installer

使用以下命令提取 msi 时出现 2203 错误。

msiexec/a "C:\Test\Installer.msi"/QB targetDIR="C:\Test\Eval"/LV* "C:\Test\INST_Logfile.log"

回答时请考虑以下几点:

  • 登录用户和 SYSTEM 帐户具有完全访问权限
    %TEMP%,C:\Windows\安装程序。
  • msi 未标记为只读。
  • 检查 Windows 安装程序服务,它工作正常。
  • 尝试取消注册并注册 msiexec
           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/

    相关文章:

    wix - 如何安装到LocalAppData文件夹?

    WiX EmbeddedChainer 无法卸载

    visual-studio-2008 - 我是否应该在每次构建时更改我的 .vdproj 文件中的 ProductCode?

    c# - MSI 为安装人员提出问题

    python - 'pip==9.0.1' 分布未找到,应用程序需要

    php - 为什么安装 PHP for Windows 后 php5isapi.dll 丢失?

    windows-installer - 无法在Visual Studio 2017中为安装项目设置64位目标

    c# - 如何解析 C# 中的 MSI 路径?

    java - Windows 7 上的 apache ant 安装

    java - 如何将 Java 程序转换为 .exe 文件?