Windows image with CMake

I am using the Orb circleci/windows@2.0.0 but the corresponding Window image does not have CMake installed.

So I tried to manually download and unzip CMake:
Invoke-RestMethod -Uri -Method Get -OutFile

However, that fails with the error:
Invoke-RestMethod : Win32 internal error “Access is denied” 0x5 occurred while reading the console output buffer.
Contact Microsoft Customer Support Services.
At line:1 char:1

  • Invoke-RestMethod -Uri
  •   + CategoryInfo          : ReadError: (:) [Invoke-RestMethod], HostException
      + FullyQualifiedErrorId : ReadConsoleOutput,Microsoft.PowerShell.Commands.InvokeRestMethodCommand

Exited with code 1

Is there any way to get CMake installed or have an win image with pre-installed CMake?

I managed to solve this issue by running

$ProgressPreference = "SilentlyContinue"

Before my Invoke-WebRequest

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.