锐英源软件
第一信赖

精通

英语

开源

擅长

开发

培训

胸怀四海 

第一信赖

当前位置:锐英源 / 开源技术 / C++安装发布开源 / Windows8下安装卸载时2503和2502错误
服务方向
人工智能数据处理
人工智能培训
kaldi数据准备
小语种语音识别
语音识别标注
语音识别系统
语音识别转文字
kaldi开发技术服务
软件开发
运动控制卡上位机
机械加工软件
软件开发培训
Java 安卓移动开发
VC++
C#软件
汇编和破解
驱动开发
联系方式
固话:0371-63888850
手机:138-0381-0136
Q Q:396806883
微信:ryysoft

Windows8下安装卸载时2503和2502错误


背景

近期在win10 64位下测试软件,安装卸载遇到called Runscript when not marked in progress,搜索国内网站不行,找了个英文网页解决了问题,翻译给大家。

When you attempt to install or uninstall a program on Windows 8, you may get the following errors:?当您尝试在Windows 8上安装或卸载程序时,可能会出现以下错误:

  • The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. 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.
  • Called RunScript when not marked in progress
  • Called InstallFinalize when no install in progress.
  • 安装程序在安装此软件包时遇到意外错误。这可能表明此程序包有问题。错误代码为2503。
  • 安装程序在安装此软件包时遇到意外错误。这可能表明此程序包有问题。错误代码为2502。

This has been tested with Microsoft Games for Windows Live (GFWL) and XSplit Broadcaster but should work  with other installers/uninstallers that have the same problem.已经使用Microsoft Windows Live Live游戏(GFWL)和XSplit Broadcaster对它进行了测试,但是应该与存在相同问题的其他安装程序/卸载程序一起使用。

Solution 1 (uninstalling)解决方案1(卸载)

In order to uninstall a program with this issue, you need to identify the .msi file that it uses.为了卸载有此问题的程序,您需要确定其使用的.msi文件。

  1. Press the Windows key + R to bring up the Run dialog.
  2. Type in C:\Windows\Installer and press Enter.
  3. 按Windows键+ R调出“运行”对话框。
  4. 键入C:\ Windows \ Installer,然后按Enter。

Right click in a blank space and click View -> Details.右键单击空白处,然后单击查看->详细信息。

In the Details view, there are columns. Right click anywhere on the column bar and click More…在“详细信息”视图中,有一些列。右键单击列栏上的任意位置,然后单击“更多…”。

In the list, find Subject. Check it and click OK.在列表中,找到“主题”。检查它,然后单击确定。

Click the Subject column to sort the program names in alphabetical order. You should be able to identify which file is the correct one.单击“主题”列,以字母顺序对程序名称进行排序。您应该能够确定哪个文件是正确的文件。

右键看msi的信息,看是不是你要的卸载安装包。

以管理员身份运行cmd.exe

Type in C:\Windows\Installer\ followed by the file name of the program you want to uninstall and “.msi”.
In our example, the file is 54c55 so we would type in: C:\Windows\Installer\54c55.msi

  1. The uninstaller will now run and should complete successfully. You can close the Command Prompt when you are done.
  2. 键入C:\ Windows \ Installer \,然后输入要卸载的程序的文件名和“ .msi”。
    在我们的示例中,文件为54c55,因此我们将输入:C:\ Windows \ Installer \ 54c55.msi
  3. 注意:直接对msi获取管理员权限,再运行,不起作用。

Solution 2 (installing and uninstalling)解决方案2(安装和卸载)

1. Hold Ctrl+Shift and press Esc.

2. Locate “Windows Explorer” under “Windows processes”, now right click on it and click “End task”.

按住Ctrl + Shift并按Esc。

2.在“ Windows进程”下找到“ Windows资源管理器”,现在右键单击它,然后单击“结束任务”。

3. Now click on “File” at the top of the window and click “Run new task”.

4. Type “explorer.exe” without the quotes and tick the box labelled “Create this task with administrative privileges” and click “OK”.

You should now be able to install/uninstall without getting the error.

现在,单击窗口顶部的“文件”,然后单击“运行新任务”。

4.键入“ explorer.exe”(不带引号),然后勾选“使用管理权限创建此任务”框,然后单击“确定”。

Finally found the solution to this error. I was working around the problem by doing the “Run as Administrator” manually when trying to install programs. Trying to choose allow UAC prompt and trying with UAC turned off, it would still error.

The problem also showed itself with programs installed in non-trusted areas as well (clicking magnet links in a browser with utorrent as the registered client). It’s Windows 8 elevated UAC settings under:
gpedit.msc
Computer/Windows Settings/Security Settings/Local Policies/Security Options/User Account Control:
For me it was “Only elevate USAccess applications that are installed in secure locations” that was causing problems. Disabled that and it would work.

终于找到了解决该错误的方法。在尝试安装程序时,我通过手动执行“以管理员身份运行”来解决此问题。尝试选择允许UAC提示并尝试关闭UAC,仍然会出错。

该问题还通过在非受信任区域中安装的程序显示出来(在以utorrent为注册客户端的浏览器中单击磁力链接)。是Windows 8提升的UAC设置,位于:
gpedit.msc
计算机/ Windows设置/安全设置/本地策略/安全选项/用户帐户控制:
对我而言,“仅提升安装在安全位置的USAccess应用程序”引起了问题。禁用它,它将起作用。


I figured… After doing a lot of different tricks, all I did is went to .exe file in the folder (which would not start and gave me those errors) and right click gave me option to “run as administrator”. I think indeed, the problem is with permissions setting on Windows 8… Thanks everyone and good-luck.

我想出了……在做了很多不同的技巧之后,我所做的只是转到文件夹中的.exe文件(该文件不会启动并给我这些错误),然后右键单击为我提供了“以管理员身份运行”的选项。我认为确实是Windows 8的权限设置存在问题……谢谢大家,祝你好运。

If you have error 2503 and 2502 because you cannot run software as admin, just run “Command Prompt” as Administrator and install program from it… Worked for me…如果由于无法以管理员身份运行软件而出现错误2503和2502,请以管理员身份运行“命令提示符”并从中安装程序...对我有用...

Carl and Russel thanks a lot! That is a great article and it helped me to solve a very annoying problem. I totally understand Microsoft’s efforts to improve security in its operating systems but sometimes they sacrifice “ease of use” quality attribute. If you provide a feature to “Run as administrator” an installation then you should definitely provide a “Run as administrator” feature for uninstalling too.

卡尔和罗素非常感谢!那是一篇很棒的文章,它帮助我解决了一个非常烦人的问题。我完全理解Microsoft为提高其操作系统的安全性所做的努力,但有时他们会牺牲“易用性”质量属性。如果您提供“以管理员身份运行”安装的功能,那么您当然也应该提供“以管理员身份运行”功能以进行卸载。

友情链接
版权所有 Copyright(c)2004-2015 锐英源软件

公司注册号:410105000449586 豫ICP备08007559号 最佳分辨率 1024*768

地址:郑州市文化路47号院1号楼4层(47-1楼位于文化路和红专路十字路口东北角,郑州大学工学院招待所南边,工学院科技报告厅西边。)