GitHub for Windows安装错误“应用程序无法启动”

3

当我尝试重新安装GitHub for Windows时,出现了一个错误。我已经尝试使用Firefox和Chrome下载安装文件。我也删除了$USER \ Local Settings \ Apps中的2.0文件夹。以下是日志。

PLATFORM VERSION INFO
    Windows             : 5.1.2600.196608 (Win32NT)
    Common Language Runtime     : 4.0.30319.1008
    System.Deployment.dll       : 4.0.30319.1 (RTMRel.030319-0100)
    clr.dll             : 4.0.30319.1008 (RTMGDR.030319-1000)
    dfdll.dll           : 4.0.30319.1 (RTMRel.030319-0100)
    dfshim.dll          : 4.0.31106.0 (Main.031106-0000)

SOURCES
    Deployment url          : http://github-windows.s3.amazonaws.com/GitHub.application
                        Server      : AmazonS3
    Application url         : http://github-windows.s3.amazonaws.com/Application%20Files/GitHub_1_0_52_0/GitHub.exe.manifest
                        Server      : AmazonS3

IDENTITIES
    Deployment Identity     : GitHub.application, Version=1.0.52.0, Culture=neutral, PublicKeyToken=, processorArchitecture=x86
    Application Identity        : GitHub.exe, Version=1.0.52.0, Culture=neutral, PublicKeyToken=, processorArchitecture=x86, type=win32

APPLICATION SUMMARY
    * Installable application.
    * Trust url parameter is set.
ERROR SUMMARY
    Below is a summary of the errors, details of these errors are listed later in the log.
    * Activation of http://github-windows.s3.amazonaws.com/GitHub.application resulted in exception. Following failure messages were detected:
        + Failed to load the runtime. (Exception from HRESULT: 0x80131700)

COMPONENT STORE TRANSACTION FAILURE SUMMARY
    No transaction error was detected.

WARNINGS
    There were no warnings during this operation.

OPERATION PROGRESS STATUS
    * [7/24/2013 4:25:30 PM] : Activation of http://github-windows.s3.amazonaws.com/GitHub.application has started.
    * [7/24/2013 4:25:31 PM] : Processing of deployment manifest has successfully completed.
    * [7/24/2013 4:25:31 PM] : Installation of the application has started.
    * [7/24/2013 4:25:32 PM] : Processing of application manifest has successfully completed.
    * [7/24/2013 4:25:33 PM] : Found compatible runtime version 4.0.30319.
    * [7/24/2013 4:25:33 PM] : Request of trust and detection of platform is complete.
    * [7/24/2013 4:28:57 PM] : Downloading of subscription dependencies is complete.
    * [7/24/2013 4:28:57 PM] : Commit of the downloaded application has started.

ERROR DETAILS
    Following errors were detected during this operation.
    * [7/24/2013 4:28:57 PM] System.Runtime.InteropServices.COMException
        - Failed to load the runtime. (Exception from HRESULT: 0x80131700)
        - Source: System.Deployment
        - Stack trace:
            at System.Deployment.Application.NativeMethods.GetRequestedRuntimeInfo(String pExe, String pwszVersion, String pConfigurationFile, UInt32 startupFlags, UInt32 runtimeInfoFlags, StringBuilder pDirectory, UInt32 dwDirectory, UInt32& dwDirectoryLength, StringBuilder pVersion, UInt32 cchBuffer, UInt32& dwLength)
            at System.Deployment.Application.Win32InterOp.SystemUtils.CheckSupportedImageAndCLRVersions(String path)
            at System.Deployment.Application.SubscriptionStore.CheckApplicationPayload(CommitApplicationParams commitParams)
            at System.Deployment.Application.SubscriptionStore.CommitApplication(SubscriptionState& subState, CommitApplicationParams commitParams)
            at System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState& subState, ActivationDescription actDesc)
            at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
            at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)

COMPONENT STORE TRANSACTION DETAILS
    No transaction information is available.

你解决了这个问题吗? - Dano007
4个回答

2

删除2.0文件夹将会移除使用ClickOnce部署的所有应用程序,而不仅仅是GitHub for Windows。这就像建议删除Program Files,因为一个应用程序无法工作... - Thomas Levesque
我删除了2.0文件夹...但是在我的情况下,我仍然无法安装Github...每当我尝试安装它时,2.0文件夹会再次被创建。 - Dimitris Papageorgiou

1
我在更新后遇到了类似的问题。我去控制面板卸载了该应用,然后你可以恢复到之前工作的版本。

你知道更新出了什么问题吗?这已经是我第二次遇到这个问题了。 - Severino Lorilla Jr.

0

我知道这篇文章已经有几年了,但是发布它是为了让其他人可能使用它并看看是否有帮助。

最近我遇到了这个问题,但是建议的所有清理方法都对我没有用。我清理了clickonce缓存,删除了2.0文件夹。像某些人建议的那样使用IE而不是Chrome等等。

最终我找到了问题所在。获取对C:/Windows/Temp/Deployment的访问权限。获取对Temp文件夹的访问权限解决了我的问题。


0

临时内存清理解决方案对我不起作用。我通过以下步骤解决了我的问题:

  1. 原来在Windows任务管理器的进程选项卡中,有一个ClickOnce进程dfsvc.exe正在运行。这个进程是在打开Visual Studio作为VS实例时启动的。它需要作为GitHub Desktop实例启动。

  2. 诀窍是关闭所有的Visual Studio并从任务管理器中停止dfsvc.exe进程。

  3. 然后点击GitHub for Desktop EXE,你会看到一个dfsvc.exe进程。dfsvc.exe需要作为GitHub Desktop安装过程的一部分启动,然后就可以完美地安装了。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接