在Windows上安装Github-"价值不在预期范围内"

vma*_*zur 8 windows github

我正在尝试在我的Windows 7笔记本电脑上安装Github,每次运行GitHubSetup.exe时都会出错,说"无法启动应用程序.请联系应用程序供应商.".当我点击详细信息时,这是显示的文字:

PLATFORM VERSION INFO
Windows             : 6.1.7601.65536 (Win32NT)
Common Language Runtime     : 4.0.30319.18444
System.Deployment.dll       : 4.0.30319.34244 built by: FX452RTMGDR
clr.dll             : 4.0.30319.18444 built by: FX451RTMGDR
dfdll.dll           : 4.0.30319.34244 built by: FX452RTMGDR
dfshim.dll          : 4.0.41209.0 (Main.041209-0000)

SOURCES
Deployment url          : http://github-windows.s3.amazonaws.com/GitHub.application
                    Server      : AmazonS3

IDENTITIES
Deployment Identity     : GitHub.application, Version=2.4.1.2, Culture=neutral, PublicKeyToken=317444273a93ac29, processorArchitecture=x86

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:
    + Value does not fall within the expected range.

COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.

WARNINGS
There were no warnings during this operation.

OPERATION PROGRESS STATUS
* [10/17/2014 5:20:08 PM] : Activation of http://github-windows.s3.amazonaws.com/GitHub.application has started.
* [10/17/2014 5:20:09 PM] : Processing of deployment manifest has successfully completed.

ERROR DETAILS
Following errors were detected during this operation.
* [10/17/2014 5:20:09 PM] System.ArgumentException
    - Value does not fall within the expected range.
    - Source: System.Deployment
    - Stack trace:
        at System.Deployment.Application.NativeMethods.CorLaunchApplication(UInt32 hostType, String applicationFullName, Int32 manifestPathsCount, String[] manifestPaths, Int32 activationDataCount, String[] activationData, PROCESS_INFORMATION processInformation)
        at System.Deployment.Application.ComponentStore.ActivateApplication(DefinitionAppId appId, String activationParameter, Boolean useActivationParameter)
        at System.Deployment.Application.SubscriptionStore.ActivateApplication(DefinitionAppId appId, String activationParameter, Boolean useActivationParameter)
        at System.Deployment.Application.ApplicationActivator.Activate(DefinitionAppId appId, AssemblyManifest appManifest, String activationParameter, Boolean useActivationParameter)
        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
* Transaction at [10/17/2014 5:20:09 PM]
    + System.Deployment.Internal.Isolation.StoreOperationSetDeploymentMetadata
        - Status: Set
        - HRESULT: 0x0
    + System.Deployment.Internal.Isolation.StoreTransactionOperationType (27)
        - HRESULT: 0x0
Run Code Online (Sandbox Code Playgroud)

我很困惑,并且对这一切都很陌生,所以我很感激任何帮助以找出安装它.谢谢!

Von*_*onC 9

您可以尝试这个问题的一些解决方案:

  • 确保未安装或卸载应用程序(控制面板)
  • 跑" rundll32 %windir%\system32\dfshim.dll CleanOnlineAppCache"

  • 如果这还不够,请在重新启动后再试一次

  • 删除注册表中的任何引用(但这还不够),然后清除 %user%\AppData\Local\Apps
  • 再次尝试使用其他用户帐户

OP vmazur 在评论中证实:

通过转到%LocalAppData%\Apps删除名为" 2.0" 的文件夹解决了我的问题.

bkribbs 在评论中提醒:

2.0文件夹包含来自多个应用程序的数据,我假设所有clickonce数据.
值得进入该文件夹,扩展名称,只删除文件夹名称中具有应用程序名称的名称.否则你也有可能失去其他应用程序.

  • 该2.0文件夹包含来自多个应用程序的数据,我假设所有clickonce文件.值得进入该文件夹,扩展名称,只删除文件夹名称中具有应用程序名称的名称.否则你也有可能失去其他应用程序. (3认同)
  • 通过转到%LocalAppData%\ Apps并删除名为"2.0"的文件夹解决了我的问题,但谢谢:) (2认同)