Installing GitHub for Windows

后端 未结 15 1108
深忆病人
深忆病人 2020-12-24 12:49

I\'m trying to install GitHub for Windows. I tried installing it the normal way and got this error:

Application installation did not succeed. Cannot locate a

相关标签:
15条回答
  • 2020-12-24 13:17

    If you're using Kaspersky, disable Protection and Control first. Kaspersky Antivirus deletes all deploy files silently, giving erros like this (from install.log):

    Launching Application.
    URLDownloadToCacheFile failed with HRESULT '-2146697211'
    Error: An error occurred trying to download 'http://github-windows.s3.amazonaws.com/GitHub.application'.
    

    Or like this (downloading http://github-windows.s3.amazonaws.com/GitHub.application and launching manually):

    * [15/09/2015 11:58:50] System.Deployment.Application.DeploymentDownloadException (Unknown subtype)
        - Unsuccessfull download at file:///C:/Users/user/Downloads/Application Files/GitHub_3_0_5_2/GitHub.exe.manifest.
        - Source: System.Deployment
        - Stack trace:
            in System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
            in  System.Deployment.Application.SystemNetDownloader.DownloadAllFiles()
            in System.Deployment.Application.FileDownloader.Download(SubscriptionState subState)
            in System.Deployment.Application.DownloadManager.DownloadManifestAsRawFile(Uri& sourceUri, String targetPath, IDownloadNotification notification, DownloadOptions options, ServerInformation& serverInformation)
            in System.Deployment.Application.DownloadManager.DownloadApplicationManifest(AssemblyManifest deploymentManifest, String targetDir, Uri deploymentUri, IDownloadNotification notification, DownloadOptions options, Uri& appSourceUri, String& appManifestPath)
            in System.Deployment.Application.ApplicationActivator.DownloadApplication(SubscriptionState subState, ActivationDescription actDesc, Int64 transactionId, TempDirectory& downloadTemp)
            in System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState& subState, ActivationDescription actDesc)
            in System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
            in System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
        --- Internal exception ---
    
    0 讨论(0)
  • 2020-12-24 13:18

    Thanks to this post, I just used Internet Explorer and navigated to:

    https://github-windows.s3.amazonaws.com/GitHub.application

    And it completely installed Github for Windows (I have Windows 8.1).

    Prior to this, with the installer I downloaded using Chrome I couldn't install Github for Windows (I used to get the above "did not succeed" error).

    0 讨论(0)
  • 2020-12-24 13:19

    Introduction

    I have had a similar problem: after 75% of the file was downloaded, it just got stuck. Then 5 minutes later or so, I've received the exact same error message you did.

    How I've fixed it

    As Geogrgios mentioned above, you need to add an exception to the firewall.

    1. Go to "Control Panel" and click on "System and Security" (make sure that "View by:" is set to "Category" and not to "Large icons" or "Small icons").
    2. Choose Windows Firewall (the second option in the right menu). Then, "Allow a program or a feature through Windows Firewall" in the left menu will be displayed, please click on it.
    3. Click on "Change settings" to add exceptions.
    4. Click on "Allow another program ..", which has gotten enabled, and in the new window click on "Browse..".
    5. Choose the "GithubSetup.exe" file, press "Open" and then "Add" and "OK".
    6. Run "GithubSetup.exe" and hope for the best.

    Better instructions (with screenshots) can be found here

    0 讨论(0)
  • 2020-12-24 13:19

    If you use Windows 10:

    1. Kill dfsvc.exe
    2. Delete this folder: %LocalAppData%\Apps\2.0
    3. Type in Internet Explorer: https://github-windows.s3.amazonaws.com/GitHub.application
    0 讨论(0)
  • 2020-12-24 13:20

    A little more elaboration on the previous answers:

    1- Open Windows Explorer (press "Windows+E")

    2- Type %LocalAppData%\Apps in its address bar and press Enter.

    3- It should find a folder "2". Delete the Folder "2".

    4- Open Task Manager (Start menu, then type Task manager and select it. Alternatively press Ctrl+Alt+Delete and select Task Manager).

    5- Click on "Details" tab.

    6- Kill all the files named dfsvc.exe (for me there were two).

    7- Open Internet Explorer (IE)

    8- Paste this address in the address bar and press Enter:

    https://github-windows.s3.amazonaws.com/GitHub.application

    9- It will start installing Github for Wiindows.

    0 讨论(0)
  • 2020-12-24 13:21

    I too faced the same issue when I tried to install it. Even though I'm using VPN I couldn't install it because of network configuration matters. So I turned off the firewall and tried installing it. It didn't work for me in one go coz of some vendor issues and I tried reinstalling it. Finally, it worked for me.

    0 讨论(0)
提交回复
热议问题