今天在win10系统下安装版本控制软件TortoiseSVN,但是安装进行到一般时弹出错误对话框,大概意思是“The installer has encountered an unexpected error installing this package.this may indicate a problem with package.the error code is 2502.”。后面尝试了修改该msi文件的权限也无济于事,最终在网上找到了以下方法,亲测可以使用:
1、运行CMD(以管理员身份运行)
2、输入以下命令: msiexec /package "你安装程序包的路径"。例如,我的文件在D盘program files目录下,那么我的命令就是:
![](https://img.haomeiwen.com/i1351616/becc9027d3155f7d.jpg)
解决:
1、管理员方式运行cmd
![](https://img.haomeiwen.com/i1351616/ba246ff415bd4675.png)
2.安装文件 拖到 命令行 回车
![](https://img.haomeiwen.com/i1351616/94b35037486f2d3b.png)
或者
msiexec /package "D:\program files\TortoiseSVN.msi
网友评论