Coder Social home page Coder Social logo

vsget's Introduction

๐Ÿ‘ฟ @reksarka

vsget's People

Contributors

reksar avatar

Stargazers

 avatar  avatar

Watchers

 avatar

vsget's Issues

Cannot open the file as archive

Getting Windows SDK

  • Downloading Windows SDK ISO ... OK
  • Extracting SDK Installers ... ERROR: d:\WINSDK\SDK\tmp\sdk.iso
    Cannot open the file as archive

Invoke-WebRequest in download.bat - very slow (solution inside)

Original file:

@echo off

rem  --------------------------------------------------------------------------
rem  Downloads content from [URL] to [OUTFILE] (must be an abs path).
rem
rem  Using:
rem
rem    download [URL] [OUTFILE]
rem
rem  --------------------------------------------------------------------------

setlocal

set url=%~1
set outfile=%~2

call powershell -command ^
  "Invoke-WebRequest -UseBasicParsing -Uri '%url%' -OutFile '%outfile%'"

endlocal

modify to:

@echo off

rem  --------------------------------------------------------------------------
rem  Downloads content from [URL] to [OUTFILE] (must be an abs path).
rem
rem  Using:
rem
rem    download [URL] [OUTFILE]
rem
rem  --------------------------------------------------------------------------

setlocal

set url=%~1
set outfile=%~2

call powershell -command ^
  "Set-Variable ProgressPreference SilentlyContinue ; Invoke-WebRequest -UseBasicParsing -Uri '%url%' -OutFile '%outfile%'"

endlocal

Problem with very slow Invoke-WebRequest explained here: https://stackoverflow.com/questions/28682642/powershell-why-is-using-invoke-webrequest-much-slower-than-a-browser-download

Or PowerShell/PowerShell#2138

i.e. in powershells 5.1 (default for windows 10)
This command because of progress bar 50x-100x times slower than other alternatives or without the bar (on fast connections).

Why is it a problem?
Because of Win10 sdk download.

[ERR][get-sdk] Failed to get Windows SDK!

D:\Desktop\vsget>vsget.bat my_portable_compiler

Getting 7-zip archiver
- Ensuring destination path exists ... OK
- Ensuring destination path empty ... OK
- Getting 7-zip self-extracting archive ... OK
- Getting util archiver ... OK
- Extracting 7-zip with util ... OK

Getting vc-x64-x64.14.33.31629
- Getting Microsoft.VC.14.33.17.3.CRT.Headers.base
-   Downloading ... OK
-   Extracting ... OK
- Getting Microsoft.VC.14.32.17.2.CRT.Redist.X64.base
-   Downloading ... OK
-   Extracting ... OK
- Getting Microsoft.VC.14.33.17.3.CRT.Source.base
-   Downloading ... OK
-   Extracting ... OK
- Getting Microsoft.VC.14.33.17.3.CRT.x64.Desktop.base
-   Downloading ... OK
-   Extracting ... OK
- Getting Microsoft.VC.14.33.17.3.CRT.x64.Store.base
-   Downloading ... OK
-   Extracting ... OK
- Getting Microsoft.VC.14.33.17.3.Tools.HostX64.TargetX64.base
-   Downloading ... OK
-   Extracting ... OK
- Getting Microsoft.VC.14.33.17.3.Tools.HostX64.TargetX64.Res.base.enu
-   Downloading ... OK
-   Extracting ... OK

Getting msbuild-x64.17.3.1.2241501
- Getting Microsoft.Build
-   Downloading ... OK
-   Extracting ... OK
- Getting b98a3e4
-   Downloading ... OK
-   Extracting ... OK
- Getting fbb74fe
-   Downloading ... OK
-   Extracting ... OK
- Getting e17b4f9
-   Downloading ... OK
-   Extracting ... OK
- Getting c03dd5e
-   Downloading ... OK
-   Extracting ... OK

Getting Windows SDK
- Downloading Windows SDK ISO ... OK
- Extracting SDK Installers ... OK
- Extracting SDK Components

- Collecting SDK components
[ERR][get-sdk] Failed to get Windows SDK!

steps to reproduce:

  1. git clone latest repo (0.1.4)
  2. run cmd as admin
  3. go to folder (cd vsget D:\vsget)
  4. vsget.bat my_portable_compiler
  5. -> error happened.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.