カテゴリー: Chocolatey

  • Dart install, setting

    C:\Users\user>choco install dart-sdk

    Chocolatey v2.2.2

    3 validations performed. 2 success(es), 1 warning(s), and 0 error(s).

    Validation Warnings:

     – A pending system reboot request has been detected, however, this is

       being ignored due to the current Chocolatey configuration.  If you

       want to halt when this occurs, then either set the global feature

       using:

         choco feature enable –name=”exitOnRebootDetected”

       or pass the option –exit-when-reboot-detected.

    Installing the following packages:

    dart-sdk

    By installing, you accept licenses for the packages.

    Progress: Downloading dart-sdk 3.1.2… 100%

    dart-sdk v3.1.2 [Approved]

    dart-sdk package files install completed. Performing other installation steps.

    The package dart-sdk wants to run ‘chocolateyInstall.ps1’.

    Note: If you don’t run this script, the installation will fail.

    Note: To confirm automatically next time, use ‘-y’ or consider:

    choco feature enable -n allowGlobalConfirmation

    Do you want to run the script?([Y]es/[A]ll – yes to all/[N]o/[P]rint): y

    PATH environment variable does not have C:\tools\dart-sdk\bin in it. Adding…

    PATH environment variable does not have C:\Users\user\AppData\Local\Pub\Cache\bin in it. Adding…

    Downloading dart-sdk 64 bit

      from ‘https://storage.googleapis.com/dart-archive/channels/stable/release/3.1.2/sdk/dartsdk-windows-x64-release.zip’

    Progress: 100% – Completed download of C:\Users\user\AppData\Local\Temp\dart-sdk\3.1.2\dartsdk-windows-x64-release.zip (196.46 MB).

    Download of dartsdk-windows-x64-release.zip (196.46 MB) completed.

    Hashes match.

    Extracting C:\Users\user\AppData\Local\Temp\dart-sdk\3.1.2\dartsdk-windows-x64-release.zip to C:\tools…

    C:\tools

    Environment Vars (like PATH) have changed. Close/reopen your shell to

     see the changes (or in powershell/cmd.exe just type `refreshenv`).

     The install of dart-sdk was successful.

      Software installed to ‘C:\tools’

    Chocolatey installed 1/1 packages.

     See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

    C:\Users\user>

    PS C:\Users\user> dart –version
    Dart SDK version: 3.1.2 (stable) (Tue Sep 12 16:26:23 2023 +0000) on “windows_x64”

  • chocolatey v1.3.1 installed. Version 2.2.2 is available

    PS C:\Users\user> choco upgrade chocolatey
    Chocolatey v1.3.1
    2 validations performed. 1 success(es), 1 warning(s), and 0 error(s).

    Validation Warnings:

    • A pending system reboot request has been detected, however, this is
      being ignored due to the current Chocolatey configuration. If you
      want to halt when this occurs, then either set the global feature
      using:
      choco feature enable -name=exitOnRebootDetected
      or pass the option –exit-when-reboot-detected.

    Upgrading the following packages:
    chocolatey
    By upgrading, you accept licenses for the packages.

    You have chocolatey v1.3.1 installed. Version 2.2.2 is available based on your source(s).
    Progress: Downloading chocolatey 2.2.2… 100%

    chocolatey v2.2.2
    chocolatey package files upgrade completed. Performing other installation steps.
    The package chocolatey wants to run ‘chocolateyInstall.ps1’.
    Note: If you don’t run this script, the installation will fail.
    Note: To confirm automatically next time, use ‘-y’ or consider:
    choco feature enable -n allowGlobalConfirmation
    Do you want to run the script?([Y]es/[A]ll – yes to all/[N]o/[P]rint): y

    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.

    Removing shim C:\ProgramData\chocolatey\redirects\chocolatey.exe
    Removing shim C:\ProgramData\chocolatey\redirects\cinst.exe
    Removing shim C:\ProgramData\chocolatey\redirects\clist.exe
    Removing shim C:\ProgramData\chocolatey\redirects\cpush.exe
    Removing shim C:\ProgramData\chocolatey\redirects\cuninst.exe
    Removing shim C:\ProgramData\chocolatey\redirects\cup.exe
    Adding Chocolatey to the profile. This will provide tab completion, refreshenv, etc.
    WARNING: Chocolatey profile installed. Reload your profile – type . $profile
    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.
    Removing shim C:\ProgramData\chocolatey\bin\chocolatey.exe
    Removing shim C:\ProgramData\chocolatey\bin\cinst.exe
    Removing shim C:\ProgramData\chocolatey\bin\clist.exe
    Removing shim C:\ProgramData\chocolatey\bin\cpush.exe
    Removing shim C:\ProgramData\chocolatey\bin\cuninst.exe
    Removing shim C:\ProgramData\chocolatey\bin\cup.exe
    Environment Vars (like PATH) have changed. Close/reopen your shell to
    see the changes (or in powershell/cmd.exe just type refreshenv).
    The upgrade of chocolatey was successful.
    Software install location not explicitly set, it could be in package or
    default install location of installer.

    Chocolatey upgraded 1/1 packages.
    See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
    PS C:\Users\user>

    PS C:\Users\user> choco
    Chocolatey v2.2.2
    Please run ‘choco -?’ or ‘choco -?’ for help menu.