【问题标题】:ProgramFilesFolder Set to C:\ when using /a switch for msiexec使用 msiexec 的 /a 开关时,ProgramFilesFolder 设置为 C:\
【发布时间】:2013-02-20 03:54:55
【问题描述】:

我有一个使用 WIX 创建的 .MSI 安装程序,在从 Windows 资源管理器打开文件或使用 msiexec /i 从命令窗口安装时工作正常。问题是我需要在电脑开机时使用 /a 使用组策略安装它。

使用 /i 选项时,ProgramFilesFolder 值正确设置为“C:\Program Files (x86)\”。

使用 /a 选项时,ProgramFilesFolder 的值设置为“C:\”,然后我收到一条错误消息(在日志上):

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:\Referrals.msi, -2147287035,

注意:我从“C:\”运行 .MSI 文件

【问题讨论】:

    标签: wix group-policy windows-installer


    【解决方案1】:

    试试

    msiexec /a TARGETDIR="c:\temp\location" /passive
    

    【讨论】:

      【解决方案2】:

      我认为您可能混淆了msiexec.exe command line/aadmin install。这本质上是一个使用解压文件创建网络安装点的命令,用于在许多计算机上进行安装。这确保源文件可用于修补、自我修复、修复、重新安装等...

      要处理广告和群组政策,您需要使用these command line options。所以一个非常基本的操作是默默地向所有用户宣传产品并写入一个日志文件:

      msiexec.exe /JM "Installer.msi" /QN /L* "C:\msilog.log"
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2015-11-14
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2022-01-23
        • 2012-08-19
        相关资源
        最近更新 更多