This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

I can't install the tool chain. The thing is telling me to install some thing called chocolatey. I can't install this

I can't install the tool chain.

Looks like I have to install something called chocolatey?

I can't install chocolatey. I tried the chocolatey website for help and was baffelled by the complexity and install options for this.

Please send me the toolchain as a file that I can install without the chocolatey thing.

I have the nRF52840dk to evaluate your bluetooth devices, but can't even get past this stage:

If I can't install the toolchain then the kit is useless and will go in the bin.

Parents
  • I will show you, step by step how to do it:

    • Go to the search bar (press windows button)
    • Type in "windows powershell"
    • It will show up. Then right-click on it and click on "Run as administrator". 

    • Click on yes and the shell will open:

    • If you run choco, you can see that it's not installed:

    PS C:\WINDOWS\system32> choco
    choco : The term 'choco' is not recognized as the name of a cmdlet, function, script file, or operable program. Check
    the spelling of the name, or if a path was included, verify that the path is correct and try again.
    At line:1 char:1
    + choco
    + ~~~~~
        + CategoryInfo          : ObjectNotFound: (choco:String) [], CommandNotFoundException
        + FullyQualifiedErrorId : CommandNotFoundException
    

    • Run Get-ExecutionPolicy:

    PS C:\WINDOWS\system32> Get-ExecutionPolicy
    RemoteSigned

    In this case, I did not get "Restricted" in return, but if you do, please tell me and I will look into it.

    • Run: Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('chocolatey.org/install.ps1'))

    PS C:\WINDOWS\system32> Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
    Set-ExecutionPolicy : Windows PowerShell updated your execution policy successfully, but the setting is overridden by
    a policy defined at a more specific scope.  Due to the override, your shell will retain its current effective
    execution policy of RemoteSigned. Type "Get-ExecutionPolicy -List" to view your execution policy settings. For more
    information please see "Get-Help Set-ExecutionPolicy".
    At line:1 char:1
    + Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.Service ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : PermissionDenied: (:) [Set-ExecutionPolicy], SecurityException
        + FullyQualifiedErrorId : ExecutionPolicyOverride,Microsoft.PowerShell.Commands.SetExecutionPolicyCommand
    Getting latest version of the Chocolatey package for download.
    Getting Chocolatey from https://chocolatey.org/api/v2/package/chocolatey/0.10.15.
    Extracting C:\Users\siiv\AppData\Local\Temp\chocolatey\chocInstall\chocolatey.zip to C:\Users\siiv\AppData\Local\Temp\chocolatey\chocInstall...
    Installing chocolatey on this machine
    Creating ChocolateyInstall as an environment variable (targeting 'Machine')
      Setting ChocolateyInstall to 'C:\ProgramData\chocolatey'
    WARNING: It's very likely you will need to close and reopen your shell
      before you can use choco.
    Restricting write permissions to Administrators
    We are setting up the Chocolatey package repository.
    The packages themselves go to 'C:\ProgramData\chocolatey\lib'
      (i.e. C:\ProgramData\chocolatey\lib\yourPackageName).
    A shim file for the command line goes to 'C:\ProgramData\chocolatey\bin'
      and points to an executable in 'C:\ProgramData\chocolatey\lib\yourPackageName'.
    
    Creating Chocolatey folders if they do not already exist.
    
    WARNING: You can safely ignore errors related to missing log files when
      upgrading from a version of Chocolatey less than 0.9.9.
      'Batch file could not be found' is also safe to ignore.
      'The system cannot find the file specified' - also safe.
    chocolatey.nupkg file not installed in lib.
     Attempting to locate it from bootstrapper.
    WARNING: Not setting tab completion: Profile file does not exist at
    'C:\Users\siiv\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1'.
    Chocolatey (choco.exe) is now ready.
    You can call choco from anywhere, command line or powershell by typing choco.
    Run choco /? for a list of functions.
    You may need to shut down and restart powershell and/or consoles
     first prior to using choco.
    Ensuring chocolatey commands are on the path
    Ensuring chocolatey.nupkg is in the lib folder

    • Then type in choco to verify that it installed correctly:

    PS C:\WINDOWS\system32> choco
    Chocolatey v0.10.15
    Please run 'choco -?' or 'choco <command> -?' for help menu.

    Best regards,

    Simon

Reply
  • I will show you, step by step how to do it:

    • Go to the search bar (press windows button)
    • Type in "windows powershell"
    • It will show up. Then right-click on it and click on "Run as administrator". 

    • Click on yes and the shell will open:

    • If you run choco, you can see that it's not installed:

    PS C:\WINDOWS\system32> choco
    choco : The term 'choco' is not recognized as the name of a cmdlet, function, script file, or operable program. Check
    the spelling of the name, or if a path was included, verify that the path is correct and try again.
    At line:1 char:1
    + choco
    + ~~~~~
        + CategoryInfo          : ObjectNotFound: (choco:String) [], CommandNotFoundException
        + FullyQualifiedErrorId : CommandNotFoundException
    

    • Run Get-ExecutionPolicy:

    PS C:\WINDOWS\system32> Get-ExecutionPolicy
    RemoteSigned

    In this case, I did not get "Restricted" in return, but if you do, please tell me and I will look into it.

    • Run: Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('chocolatey.org/install.ps1'))

    PS C:\WINDOWS\system32> Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
    Set-ExecutionPolicy : Windows PowerShell updated your execution policy successfully, but the setting is overridden by
    a policy defined at a more specific scope.  Due to the override, your shell will retain its current effective
    execution policy of RemoteSigned. Type "Get-ExecutionPolicy -List" to view your execution policy settings. For more
    information please see "Get-Help Set-ExecutionPolicy".
    At line:1 char:1
    + Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.Service ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : PermissionDenied: (:) [Set-ExecutionPolicy], SecurityException
        + FullyQualifiedErrorId : ExecutionPolicyOverride,Microsoft.PowerShell.Commands.SetExecutionPolicyCommand
    Getting latest version of the Chocolatey package for download.
    Getting Chocolatey from https://chocolatey.org/api/v2/package/chocolatey/0.10.15.
    Extracting C:\Users\siiv\AppData\Local\Temp\chocolatey\chocInstall\chocolatey.zip to C:\Users\siiv\AppData\Local\Temp\chocolatey\chocInstall...
    Installing chocolatey on this machine
    Creating ChocolateyInstall as an environment variable (targeting 'Machine')
      Setting ChocolateyInstall to 'C:\ProgramData\chocolatey'
    WARNING: It's very likely you will need to close and reopen your shell
      before you can use choco.
    Restricting write permissions to Administrators
    We are setting up the Chocolatey package repository.
    The packages themselves go to 'C:\ProgramData\chocolatey\lib'
      (i.e. C:\ProgramData\chocolatey\lib\yourPackageName).
    A shim file for the command line goes to 'C:\ProgramData\chocolatey\bin'
      and points to an executable in 'C:\ProgramData\chocolatey\lib\yourPackageName'.
    
    Creating Chocolatey folders if they do not already exist.
    
    WARNING: You can safely ignore errors related to missing log files when
      upgrading from a version of Chocolatey less than 0.9.9.
      'Batch file could not be found' is also safe to ignore.
      'The system cannot find the file specified' - also safe.
    chocolatey.nupkg file not installed in lib.
     Attempting to locate it from bootstrapper.
    WARNING: Not setting tab completion: Profile file does not exist at
    'C:\Users\siiv\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1'.
    Chocolatey (choco.exe) is now ready.
    You can call choco from anywhere, command line or powershell by typing choco.
    Run choco /? for a list of functions.
    You may need to shut down and restart powershell and/or consoles
     first prior to using choco.
    Ensuring chocolatey commands are on the path
    Ensuring chocolatey.nupkg is in the lib folder

    • Then type in choco to verify that it installed correctly:

    PS C:\WINDOWS\system32> choco
    Chocolatey v0.10.15
    Please run 'choco -?' or 'choco <command> -?' for help menu.

    Best regards,

    Simon

Children
No Data
Related