解决vista安装msi文件错误(2869)问题
前两天装PetShop4.0的时候遇到了麻烦 ,安装时出现
‘未找到源,但未能搜索某些或全部事件日志。不可访问的日志:Security This installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2869。’
无法继续安装,后来从网上终于找出解决办法:
应该是权限问题,据说以administrator身份登陆可以解决,但还有一个比较方便的解决办法
写一个批处理文件:
打开记事本,键入 msiexec.exe /i [这里是msi文件路径,如d:/PetShop.msi]
保存为 .bat 这样批处理文件就完成了
最后在写好的bat文件上点右键 -> 以管理员身份运行 ok了.
注意:
bat 里面的路径中不能有空格,比如,d:/Pet Shop/PetShop.msi 这样是错误的,如果你的文件夹名字有空格,最好去掉. d:/PetShop/PetShop.msi。