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

GitHub for Windows安装错误“;“无法启动应用程序”;,github,windows-xp,Github,Windows Xp,尝试重新安装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

尝试重新安装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.

您可以删除2.0文件夹::%userprofile%\AppData\Local\Apps(例如C:\users\Username\AppData\Local\Apps)

它对我有用。
更多详细信息:

更新后,我遇到了类似的问题。我从控制面板上卸载了这个应用程序,从这里你可以恢复到以前的工作版本。

我知道这篇文章已经有几年的历史了,但是发布它是为了让其他人可以使用它,看看它是否有用

所以我最近遇到了这个问题,所有建议的清理工作都不适合我。我清理了clickonce缓存,删除了2.0文件夹。按照某人的建议使用IE代替chrome等等


我终于找到了问题所在。访问C:/Windows/Temp/Deployment的权限。访问临时文件夹为我解决了问题。

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

  • 事实证明,在Windows任务管理器的“进程”选项卡中,一个ClickOnce进程dfsvc.exe正在运行。此过程在Visual Studio作为VS实例打开时启动。它需要作为GitHub桌面实例启动

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

  • 然后单击GitHub for Desktop EXE,您将看到一个dfsvc.EXE进程。dfsvc.exe需要启动GitHub桌面安装过程和Wala!它安装得很好


  • 你解决过这个问题吗?-1。删除2.0文件夹将删除使用ClickOnce部署的所有应用,而不仅仅是GitHub for Windows。这就像是建议删除程序文件,因为某个应用程序无法运行…我删除了2.0文件夹…但在我的情况下,尽管我仍然无法安装github…每当我尝试安装它时,2.0文件夹就会再次创建。你知道更新发生了什么吗?这是我第二次得到这个。