Windows 10 安装软件出现错误代码 2503 2502 而终止

Windows 2020-07-06 阅读 233 评论 0

问题描述

Windows 10 安装 Charles,下载并双击安装包 charles-proxy-4.5.6-win64.msi,一直点击下一步,最后出现2个错误。

The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2503.

The error code is 2503.

The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2502.

The error code is 2502.

解决方法

用管理员权限运行 cmd.exe,点击开始,找到 命令提示符,右键选择 以管理员身份运行

点击开始,找到 命令提示符,右键 以管理员身份运行。

cd 到安装包的目录,运行 msiexec /package charles-proxy-4.5.6-win64.msi

Microsoft Windows [版本 10.0.18363.535]
(c) 2019 Microsoft Corporation。保留所有权利。

C:\Windows\system32>cd C:\Users\Administrator\Downloads
C:\Users\Administrator\Downloads>msiexec /package charles-proxy-4.5.6-win64.msi

将弹出安装界面,继续安装。

最后更新 2020-07-06