Skip to content

Windows usage example fails in Windows 10 #72

@Wihmajster

Description

@Wihmajster

Example usage for windows works neither in PowerShell nor in command prompt (tested in Windows 10 sandbox).

curl -LJO "https://github.com/aminya/setup-cpp/releases/download/v0.14.0/setup_cpp_windows.exe"

That works in command prompt. However, it fails in PowerShell. Curl is an alias for Invoke-WebRequest in PowerShell. Replacing curl with curl.exe should work:

curl.exe -LJO "https://github.com/aminya/setup-cpp/releases/download/v0.14.0/setup_cpp_windows.exe"

./setup_cpp_windows --compiler llvm --cmake true --ninja true --ccache true --vcpkg true

That works in PowerShell but fails in the command prompt. Replacing Forward Slash with Backslash should work:

.\setup_cpp_windows --compiler llvm --cmake true --ninja true --ccache true --vcpkg true

Moreover, RefreshEnv.cmd fails If chocolatey has just been installed by setup_cpp. I am not sure what is the best solution in this case.

\ProgramData\chocolatey\bin\RefreshEnv.cmd

The above command works unless you have changed chocolatey default install location. However, both fails when you don't have choco installed, and setup_cpp does not install it either.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions