无法在 Visual Studio 2013 中安装适用于 Apache Cordova CTP 3.1 的 Visual Studio Tools

本文可帮助你解决无法在 Microsoft Visual Studio 2013 中安装 Visual Studio Tools for Apache Cordova 社区技术预览版 (CTP) 3.1 的问题。

原始产品版本:Visual Studio 2013
原始 KB 编号: 3014133

症状

尝试安装适用于 Apache Cordova CTP 3.1 的 Visual Studio Tools 时,会收到以下错误消息:

在继续此安装之前,必须使用命令提示符手动卸载旧版适用于 Apache Cordova (多设备混合应用) 的 Visual Studio Tools。

此外,如果尝试使用控制面板中的程序和功能卸载 apache Cordova Visual Studio Tools,安装程序可能会报告已成功卸载。 但是,程序将保留在 “程序和功能” 中,并在硬盘上列出。

解决方案

若要解决此问题,请按照以下步骤卸载已安装的 Apache Cordova CTP 3.0 和任何早期版本 CTP 的工具:

  1. 以管理员身份打开命令提示符窗口。

  2. 按给定的顺序运行以下命令。

    重要

    如果未安装匹配的 CTP,命令将立即终止。

    "%ProgramData%\Package Cache\{f2f851cc-42a1-41f2-a2cd-a0e4627a60cb}\vs2013mda_0.1.exe" /uninstall /passive /force /burn.ignoredependencies={53d408db-eb91-43fb-9d8f-167681c19763};vsupdate_KB2829760
    "%ProgramData%\Package Cache\{dc616193-a63d-4e9f-9e09-31d7e01dd13b}\vs2013mda_0.1.exe" /uninstall /passive /force /burn.ignoredependencies={53d408db-eb91-43fb-9d8f-167681c19763};vsupdate_KB2829760
    "%ProgramData%\Package Cache\{f2f851cc-42a1-41f2-a2cd-a0e4627a60cb}\vs2013mda_0.1.exe" /uninstall /passive /force /burn.ignoredependencies={cf552a8c-484b-4e33-afe7-c81dfadb0cfc};vsupdate_KB2829760
    "%ProgramData%\Package Cache\{dc616193-a63d-4e9f-9e09-31d7e01dd13b}\vs2013mda_0.1.exe" /uninstall /passive /force /burn.ignoredependencies={cf552a8c-484b-4e33-afe7-c81dfadb0cfc};vsupdate_KB2829760
    "%ProgramData%\Package Cache\{f2f851cc-42a1-41f2-a2cd-a0e4627a60cb}\vs2013mda_0.1.exe" /uninstall /passive /force /burn.ignoredependencies={ee836379-0143-481a-97c9-d577d049e22a};vsupdate_KB2829760
    "%ProgramData%\Package Cache\{dc616193-a63d-4e9f-9e09-31d7e01dd13b}\vs2013mda_0.1.exe" /uninstall /passive /force /burn.ignoredependencies={ee836379-0143-481a-97c9-d577d049e22a};vsupdate_KB2829760
    "%ProgramData%\Package Cache\{dea88246-f74a-4171-ad6c-d9c978bf2973}\vs2013mda_0.1.exe" /uninstall /passive /force /burn.ignoredependencies={53d408db-eb91-43fb-9d8f-167681c19763};vsupdate_KB2829760
    "%ProgramData%\Package Cache\{38f367f1-1468-4f16-a4c4-29747084003b}\vs2013mda_0.1.exe" /uninstall /passive /force /burn.ignoredependencies={53d408db-eb91-43fb-9d8f-167681c19763};vsupdate_KB2829760
    "%ProgramData%\Package Cache\{f2f64182-6e0b-4aa2-a549-5e1ccb0bcb57}\vs2013mda_0.1.exe" /uninstall /passive /force /burn.ignoredependencies={53d408db-eb91-43fb-9d8f-167681c19763};vsupdate_KB2829760
    "%ProgramData%\Package Cache\{ba4644db-5579-4db0-9bed-df3bac7f293c}\vs2013mda_0.1.exe" /uninstall /passive /force /burn.ignoredependencies={53d408db-eb91-43fb-9d8f-167681c19763};vsupdate_KB2829760
    
  3. 再次运行 Vs2013mda_0.3.exe 以安装适用于 Apache Cordova CTP 3.1 的 Visual Studio Tools。