转载自:http://jingyan.baidu.com/article/a501d80cec07daec630f5e18.html
在Win8中,在安装msi安装包的时候常常会出现代码为2502、2503的错误。其实这种错误是由于安装权限不足造成的,可以这种msi的安装包不像其他exe的安装程序,在安装包上点击“右键”之后没有“以管理员身份运行”的选项。那么,在Win8中安装程序出现2502、2503错误的时候该怎么办呢?请跟我一起来看看。
方法/步骤
-
把鼠标放到Win8屏幕的最左下角,等待Win8 Metro界面的缩略图出现后点击鼠标右键,在弹出的菜单中选择“命令提示符(管理员)”
-
打开的“命令提示符(管理员)”
备注:请不要使用Win+R,输入cmd的方式打开命令行:(此种方法打开的命令行没有管理员权限)此时权限依然不够,安装还是会有问题。必须要使用system权限,system是至高无上的管理者权限。 -
找到自己将要安装的程序路径,比如:我要安装的这个程序在D盘的Others文件夹下
-
点击路径那一栏,把路径复制出来,然后再复制程序名称
-
在“命令提示符(管理员)”中输入 msiexec /package 你将要安装的程序的完整路径及程序名 (注意空格),比如:我是要安装D盘Others文件夹下的msxml
-
然后按回车键,安装程序就会自动启动,此时,你在安装的过程中就不会碰到2502、2503的错误了