chocolatey / choco

Chocolatey - the package manager for Windows
https://chocolatey.org
Other
10.26k stars 901 forks source link

Ask if dependent .install/.portable packages should be pinned #2523

Open gsscoder opened 2 years ago

gsscoder commented 2 years ago

What You Are Seeing?

choco command upgraded a pinned package. nodejspinned at version 12.13.0. Previous runs of choco upgrade all behavied correctly.

What is Expected?

I'm expecting this to not happen: pinned package NOT upgraded.

How Did You Get This To Happen? (Steps to Reproduce)

Previously:

choco install nodejs --version=12.13.0
choco pin add -n=nodejs

Now: choco upgrade all

Output Log

2022-01-14 08:36:18,292 968 [DEBUG] - Package 'nodejs' found on source 'https://community.chocolatey.org/api/v2/'
2022-01-14 08:36:18,294 968 [WARN ] - 
You have nodejs v12.13.0 installed. Version 17.3.1 is available based on your source(s).
2022-01-14 08:36:18,295 968 [WARN ] - nodejs is pinned. Skipping pinned package.
2022-01-14 08:36:18,314 968 [DEBUG] - Using 'https://community.chocolatey.org/api/v2/'.
2022-01-14 08:36:18,315 968 [DEBUG] - - Supports prereleases? 'True'.
2022-01-14 08:36:18,315 968 [DEBUG] - - Is ServiceBased? 'True'.
2022-01-14 08:36:19,393 968 [DEBUG] - Package 'nodejs.install' found on source 'https://community.chocolatey.org/api/v2/'
2022-01-14 08:36:19,394 968 [WARN ] - 
You have nodejs.install v12.13.0 installed. Version 17.3.1 is available based on your source(s).
2022-01-14 08:36:19,402 968 [DEBUG] - Backing up existing nodejs.install prior to operation.
2022-01-14 08:36:19,403 968 [DEBUG] - Moving 'C:\ProgramData\chocolatey\lib\nodejs.install'
 to 'C:\ProgramData\chocolatey\lib-bkp\nodejs.install'
2022-01-14 08:36:21,409 968 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\lib\nodejs.install".
2022-01-14 08:36:21,411 968 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\nodejs.install\nodejs.install.nupkg"
 to "C:\ProgramData\chocolatey\lib\nodejs.install\nodejs.install.nupkg".
2022-01-14 08:36:21,496 968 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\nodejs.install\nodejs.install.nuspec"
 to "C:\ProgramData\chocolatey\lib\nodejs.install\nodejs.install.nuspec".
2022-01-14 08:36:21,500 968 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\lib\nodejs.install\legal".
2022-01-14 08:36:21,502 968 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\nodejs.install\legal\LICENSE.txt"
 to "C:\ProgramData\chocolatey\lib\nodejs.install\legal\LICENSE.txt".
2022-01-14 08:36:21,507 968 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\nodejs.install\legal\VERIFICATION.txt"
 to "C:\ProgramData\chocolatey\lib\nodejs.install\legal\VERIFICATION.txt".
2022-01-14 08:36:21,512 968 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\lib\nodejs.install\tools".
2022-01-14 08:36:21,513 968 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\nodejs.install\tools\chocolateyInstall.ps1"
 to "C:\ProgramData\chocolatey\lib\nodejs.install\tools\chocolateyInstall.ps1".
2022-01-14 08:36:21,517 968 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\nodejs.install\tools\node-v12.13.0-x64.msi.ignore"
 to "C:\ProgramData\chocolatey\lib\nodejs.install\tools\node-v12.13.0-x64.msi.ignore".
2022-01-14 08:36:23,027 968 [DEBUG] - Deleting file C:\ProgramData\chocolatey\lib\nodejs.install\tools\chocolateyInstall.ps1
2022-01-14 08:36:23,029 968 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\lib\nodejs.install\tools\chocolateyInstall.ps1".
2022-01-14 08:36:23,032 968 [DEBUG] - Capturing package files in 'C:\ProgramData\chocolatey\lib\nodejs.install'
2022-01-14 08:36:23,163 968 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\nodejs.install\nodejs.install.nupkg'
  with checksum '6D1B94EBBF65CDE2163AF4DB7BA4BAA0'
2022-01-14 08:36:23,164 968 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\nodejs.install\nodejs.install.nuspec'
  with checksum '3EFC7A5F6F5618535BDDD13358343D32'
2022-01-14 08:36:23,165 968 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\nodejs.install\legal\LICENSE.txt'
  with checksum '637C5C82FC7332FC2F6A08E8DE0E3B52'
2022-01-14 08:36:23,167 968 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\nodejs.install\legal\VERIFICATION.txt'
  with checksum '055E8771F46723C78CE3DFB9E4F23278'
2022-01-14 08:36:23,168 968 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\nodejs.install\tools\node-v12.13.0-x64.msi.ignore'
  with checksum 'BEA07E6D2B8DCE396FE21BAA61B34956'
2022-01-14 08:36:23,169 968 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\lib\nodejs.install\tools\node-v12.13.0-x64.msi.ignore".
2022-01-14 08:36:56,322 968 [INFO ] - [NuGet] Uninstalling 'nodejs 12.13.0'.
2022-01-14 08:36:56,324 968 [DEBUG] - [NuGet] Removed file 'nodejs.nuspec' to folder 'C:\ProgramData\chocolatey\lib\nodejs'.
2022-01-14 08:36:56,326 968 [DEBUG] - [NuGet] Removed file 'nodejs.nupkg' to folder 'C:\ProgramData\chocolatey\lib\nodejs'.
2022-01-14 08:36:56,327 968 [DEBUG] - [NuGet] Removed folder 'C:\ProgramData\chocolatey\lib\nodejs'.
2022-01-14 08:36:56,328 968 [INFO ] - [NuGet] Successfully uninstalled 'nodejs 12.13.0'.
2022-01-14 08:36:56,329 968 [INFO ] - [NuGet] Uninstalling 'nodejs.install 12.13.0'.
2022-01-14 08:36:56,336 968 [DEBUG] - [NuGet] Removed file 'LICENSE.txt' to folder 'C:\ProgramData\chocolatey\lib\nodejs.install\legal'.
2022-01-14 08:36:56,338 968 [DEBUG] - [NuGet] Removed file 'VERIFICATION.txt' to folder 'C:\ProgramData\chocolatey\lib\nodejs.install\legal'.
2022-01-14 08:36:56,339 968 [DEBUG] - [NuGet] Removed folder 'C:\ProgramData\chocolatey\lib\nodejs.install\legal'.
2022-01-14 08:36:56,341 968 [DEBUG] - [NuGet] Removed folder 'C:\ProgramData\chocolatey\lib\nodejs.install\tools'.
2022-01-14 08:36:56,342 968 [DEBUG] - [NuGet] Removed file 'nodejs.install.nuspec' to folder 'C:\ProgramData\chocolatey\lib\nodejs.install'.
2022-01-14 08:36:56,346 968 [DEBUG] - [NuGet] Removed file 'nodejs.install.nupkg' to folder 'C:\ProgramData\chocolatey\lib\nodejs.install'.
2022-01-14 08:36:56,348 968 [DEBUG] - [NuGet] Removed folder 'C:\ProgramData\chocolatey\lib\nodejs.install'.
2022-01-14 08:36:56,349 968 [INFO ] - [NuGet] Successfully uninstalled 'nodejs.install 12.13.0'.
2022-01-14 08:36:56,372 968 [INFO ] - [NuGet] Installing 'nodejs 17.3.1'.
2022-01-14 08:36:56,376 968 [DEBUG] - [NuGet] Added file 'nodejs.nupkg' to folder 'nodejs'.
2022-01-14 08:36:56,614 968 [DEBUG] - [NuGet] Added file 'nodejs.nuspec' to folder 'nodejs'.
2022-01-14 08:36:56,615 968 [INFO ] - [NuGet] Successfully installed 'nodejs 17.3.1'.
2022-01-14 08:36:56,616 968 [INFO ] - 
nodejs v17.3.1 [Approved]
2022-01-14 08:36:56,618 968 [INFO ] - nodejs package files upgrade completed. Performing other installation steps.
2022-01-14 08:36:56,907 968 [DEBUG] - Capturing package files in 'C:\ProgramData\chocolatey\lib\nodejs'
2022-01-14 08:36:56,909 968 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\nodejs\nodejs.nupkg'
  with checksum '53DCCE9158C6A782D6E2F58D33AA8031'
2022-01-14 08:36:56,910 968 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\nodejs\nodejs.nuspec'
  with checksum '525D8F043B8383359169E55DE32FF86E'
2022-01-14 08:36:56,913 968 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\nodejs.17.3.1\.arguments".
2022-01-14 08:36:56,914 968 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\nodejs.17.3.1\.extra".
2022-01-14 08:36:56,915 968 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\nodejs.17.3.1\.version".
2022-01-14 08:36:56,916 968 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\nodejs.17.3.1\.sxs".
2022-01-14 08:36:56,917 968 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\nodejs.17.3.1\.pin".
2022-01-14 08:36:56,918 968 [DEBUG] - Sending message 'HandlePackageResultCompletedMessage' out if there are subscribers...
2022-01-14 08:36:56,919 968 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\lib\nodejs\.chocolateyPending".
2022-01-14 08:36:56,921 968 [DEBUG] - Attempting to delete directory "C:\ProgramData\chocolatey\lib-bkp\nodejs.install".
2022-01-14 08:36:56,926 968 [INFO ] -  The upgrade of nodejs was successful.
2022-01-14 08:36:56,927 968 [INFO ] -   Software install location not explicitly set, it could be in package or
  default install location of installer.
2022-01-14 08:36:56,948 968 [INFO ] - [NuGet] Installing 'nodejs.install 17.3.1'.
2022-01-14 08:36:56,950 968 [DEBUG] - [NuGet] Added file 'LICENSE.txt' to folder 'nodejs.install\legal'.
2022-01-14 08:36:56,952 968 [DEBUG] - [NuGet] Added file 'VERIFICATION.txt' to folder 'nodejs.install\legal'.
2022-01-14 08:36:56,954 968 [DEBUG] - [NuGet] Added file 'chocolateyInstall.ps1' to folder 'nodejs.install\tools'.
2022-01-14 08:36:56,975 968 [DEBUG] - [NuGet] Added file 'node-v17.3.1-x64.msi' to folder 'nodejs.install\tools'.
2022-01-14 08:36:56,996 968 [DEBUG] - [NuGet] Added file 'node-v17.3.1-x86.msi' to folder 'nodejs.install\tools'.
2022-01-14 08:36:57,042 968 [DEBUG] - [NuGet] Added file 'nodejs.install.nupkg' to folder 'nodejs.install'.
2022-01-14 08:36:57,251 968 [DEBUG] - [NuGet] Added file 'nodejs.install.nuspec' to folder 'nodejs.install'.
2022-01-14 08:36:57,256 968 [INFO ] - [NuGet] Successfully installed 'nodejs.install 17.3.1'.
2022-01-14 08:36:57,260 968 [INFO ] - 
nodejs.install v17.3.1 [Approved]
2022-01-14 08:36:57,269 968 [INFO ] - nodejs.install package files upgrade completed. Performing other installation steps.
2022-01-14 08:36:57,443 968 [DEBUG] - Setting installer args for nodejs.install
2022-01-14 08:36:57,444 968 [DEBUG] - Setting package parameters for nodejs.install
2022-01-14 08:36:57,445 968 [DEBUG] - Contents of 'C:\ProgramData\chocolatey\lib\nodejs.install\tools\chocolateyInstall.ps1':
2022-01-14 08:36:57,446 968 [DEBUG] - $ErrorActionPreference = 'Stop'

$toolsPath = Split-Path $MyInvocation.MyCommand.Definition

$filePath32 = "$toolsPath\node-v17.3.1-x86.msi"
$filePath64 = "$toolsPath\node-v17.3.1-x64.msi"
$installFile = if ((Get-OSArchitectureWidth 64) -and $env:chocolateyForceX86 -ne 'true') {
                      Write-Host "Installing 64 bit version"; $filePath64 }
               else { Write-Host "Installing 32 bit version"; $filePath32 }

$packageArgs = @{
  PackageName    = 'nodejs.install'
  FileType       = 'msi'
  SoftwareName   = 'Node.js'
  File           = $installFile
  SilentArgs     = '/quiet ADDLOCAL=ALL REMOVE=NodeEtwSupport'
  ValidExitCodes = @(0)
}
Install-ChocolateyInstallPackage @packageArgs

Remove-Item -Force $filePath32, $filePath64 -ea 0

2022-01-14 08:36:57,448 968 [DEBUG] - Calling built-in PowerShell host with ['[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.CurrentUICulture = ''; & import-module -name 'C:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1'; & 'C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1' -packageScript 'C:\ProgramData\chocolatey\lib\nodejs.install\tools\chocolateyInstall.ps1' -installArguments '' -packageParameters ''']
2022-01-14 08:36:57,458 968 [DEBUG] - Redirecting Microsoft.WSMan.Management.resources, Version=3.0.0.0, Culture=en-GB, PublicKeyToken=31bf3856ad364e35, requested by ''
2022-01-14 08:36:57,483 968 [DEBUG] - Host version is 5.1.19041.1, PowerShell Version is '5.1.19041.1320' and CLR Version is '4.0.30319.42000'.
2022-01-14 08:36:57,535 968 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'.
2022-01-14 08:36:57,536 968 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'.
2022-01-14 08:36:57,538 968 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
2022-01-14 08:36:57,538 968 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
2022-01-14 08:36:57,539 968 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariable'.
2022-01-14 08:36:57,540 968 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariableNames'.
2022-01-14 08:36:57,540 968 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'.
2022-01-14 08:36:57,541 968 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'.
2022-01-14 08:36:57,542 968 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
2022-01-14 08:36:57,542 968 [INFO ] - VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'.
2022-01-14 08:36:57,543 968 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'.
2022-01-14 08:36:57,544 968 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'.
2022-01-14 08:36:57,545 968 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
2022-01-14 08:36:57,546 968 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'.
2022-01-14 08:36:57,546 968 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'.
2022-01-14 08:36:57,547 968 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'.
2022-01-14 08:36:57,548 968 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'.
2022-01-14 08:36:57,549 968 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'.
2022-01-14 08:36:57,550 968 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyDesktopLink'.
2022-01-14 08:36:57,551 968 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
2022-01-14 08:36:57,551 968 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
2022-01-14 08:36:57,552 968 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
2022-01-14 08:36:57,553 968 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
2022-01-14 08:36:57,554 968 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'.
2022-01-14 08:36:57,554 968 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPath'.
2022-01-14 08:36:57,555 968 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
2022-01-14 08:36:57,556 968 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
2022-01-14 08:36:57,557 968 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
2022-01-14 08:36:57,558 968 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
2022-01-14 08:36:57,558 968 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
2022-01-14 08:36:57,559 968 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'.
2022-01-14 08:36:57,560 968 [INFO ] - VERBOSE: Exporting function 'Set-EnvironmentVariable'.
2022-01-14 08:36:57,561 968 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'.
2022-01-14 08:36:57,562 968 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
2022-01-14 08:36:57,563 968 [INFO ] - VERBOSE: Exporting function 'Test-ProcessAdminRights'.
2022-01-14 08:36:57,564 968 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'.
2022-01-14 08:36:57,565 968 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.
2022-01-14 08:36:57,566 968 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
2022-01-14 08:36:57,567 968 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.
2022-01-14 08:36:57,568 968 [INFO ] - VERBOSE: Exporting function 'Update-SessionEnvironment'.
2022-01-14 08:36:57,568 968 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateyFailure'.
2022-01-14 08:36:57,569 968 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateySuccess'.
2022-01-14 08:36:57,570 968 [INFO ] - VERBOSE: Exporting function 'Write-FileUpdateLog'.
2022-01-14 08:36:57,571 968 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'.
2022-01-14 08:36:57,571 968 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'.
2022-01-14 08:36:57,572 968 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'.
2022-01-14 08:36:57,573 968 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
2022-01-14 08:36:57,574 968 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'.
2022-01-14 08:36:57,574 968 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'.
2022-01-14 08:36:57,575 968 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'.
2022-01-14 08:36:57,576 968 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.
2022-01-14 08:36:57,577 968 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'.
2022-01-14 08:36:57,578 968 [INFO ] - VERBOSE: Exporting alias 'refreshenv'.
2022-01-14 08:36:57,580 968 [DEBUG] - Loading community extensions
2022-01-14 08:36:57,582 968 [DEBUG] - Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-core\chocolatey-core.psm1'
2022-01-14 08:36:57,584 968 [INFO ] - VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-core\chocolatey-core.psm1'.
2022-01-14 08:36:57,637 968 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
2022-01-14 08:36:57,638 968 [INFO ] - VERBOSE: Exporting function 'Get-AppInstallLocation'.
2022-01-14 08:36:57,639 968 [INFO ] - VERBOSE: Exporting function 'Get-AvailableDriveLetter'.
2022-01-14 08:36:57,641 968 [INFO ] - VERBOSE: Exporting function 'Get-EffectiveProxy'.
2022-01-14 08:36:57,643 968 [INFO ] - VERBOSE: Exporting function 'Get-PackageCacheLocation'.
2022-01-14 08:36:57,644 968 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
2022-01-14 08:36:57,645 968 [INFO ] - VERBOSE: Exporting function 'Get-WebContent'.
2022-01-14 08:36:57,646 968 [INFO ] - VERBOSE: Exporting function 'Register-Application'.
2022-01-14 08:36:57,647 968 [INFO ] - VERBOSE: Exporting function 'Remove-Process'.
2022-01-14 08:36:57,648 968 [INFO ] - VERBOSE: Importing function 'Get-AppInstallLocation'.
2022-01-14 08:36:57,649 968 [INFO ] - VERBOSE: Importing function 'Get-AvailableDriveLetter'.
2022-01-14 08:36:57,650 968 [INFO ] - VERBOSE: Importing function 'Get-EffectiveProxy'.
2022-01-14 08:36:57,650 968 [INFO ] - VERBOSE: Importing function 'Get-PackageCacheLocation'.
2022-01-14 08:36:57,651 968 [INFO ] - VERBOSE: Importing function 'Get-PackageParameters'.
2022-01-14 08:36:57,652 968 [INFO ] - VERBOSE: Importing function 'Get-UninstallRegistryKey'.
2022-01-14 08:36:57,653 968 [INFO ] - VERBOSE: Importing function 'Get-WebContent'.
2022-01-14 08:36:57,653 968 [INFO ] - VERBOSE: Importing function 'Register-Application'.
2022-01-14 08:36:57,654 968 [INFO ] - VERBOSE: Importing function 'Remove-Process'.
2022-01-14 08:36:57,655 968 [DEBUG] - Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-dotnetfx\chocolatey-dotnetfx.psm1'
2022-01-14 08:36:57,657 968 [INFO ] - VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-dotnetfx\chocolatey-dotnetfx.psm1'.
2022-01-14 08:36:57,677 968 [INFO ] - VERBOSE: Exporting function 'Install-DotNetFramework'.
2022-01-14 08:36:57,679 968 [INFO ] - VERBOSE: Exporting function 'Install-DotNetDevPack'.
2022-01-14 08:36:57,680 968 [INFO ] - VERBOSE: Importing function 'Install-DotNetDevPack'.
2022-01-14 08:36:57,680 968 [INFO ] - VERBOSE: Importing function 'Install-DotNetFramework'.
2022-01-14 08:36:57,682 968 [DEBUG] - Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-misc-helpers\chocolatey-misc-helpers.psm1'
2022-01-14 08:36:57,683 968 [INFO ] - VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-misc-helpers\chocolatey-misc-helpers.psm1'.
2022-01-14 08:36:57,695 968 [INFO ] - VERBOSE: Exporting function 'Enable-AutoPin'.
2022-01-14 08:36:57,696 968 [INFO ] - VERBOSE: Exporting function 'Show-Patreon'.
2022-01-14 08:36:57,697 968 [INFO ] - VERBOSE: Exporting function 'Show-PayPal'.
2022-01-14 08:36:57,698 968 [INFO ] - VERBOSE: Exporting function 'Show-ToastMessage'.
2022-01-14 08:36:57,699 968 [INFO ] - VERBOSE: Exporting function 'Start-CheckandStop'.
2022-01-14 08:36:57,699 968 [INFO ] - VERBOSE: Exporting function 'Start-CheckandThrow'.
2022-01-14 08:36:57,700 968 [INFO ] - VERBOSE: Exporting function 'Start-WaitandStop'.
2022-01-14 08:36:57,701 968 [INFO ] - VERBOSE: Exporting function 'Start-WaitandStopActual'.
2022-01-14 08:36:57,702 968 [INFO ] - VERBOSE: Exporting function 'Test-Dependency'.
2022-01-14 08:36:57,703 968 [INFO ] - VERBOSE: Exporting function 'Test-URL'.
2022-01-14 08:36:57,704 968 [INFO ] - VERBOSE: Importing function 'Enable-AutoPin'.
2022-01-14 08:36:57,705 968 [INFO ] - VERBOSE: Importing function 'Show-Patreon'.
2022-01-14 08:36:57,706 968 [INFO ] - VERBOSE: Importing function 'Show-PayPal'.
2022-01-14 08:36:57,707 968 [INFO ] - VERBOSE: Importing function 'Show-ToastMessage'.
2022-01-14 08:36:57,708 968 [INFO ] - VERBOSE: Importing function 'Start-CheckandStop'.
2022-01-14 08:36:57,708 968 [INFO ] - VERBOSE: Importing function 'Start-CheckandThrow'.
2022-01-14 08:36:57,709 968 [INFO ] - VERBOSE: Importing function 'Start-WaitandStop'.
2022-01-14 08:36:57,710 968 [INFO ] - VERBOSE: Importing function 'Start-WaitandStopActual'.
2022-01-14 08:36:57,711 968 [INFO ] - VERBOSE: Importing function 'Test-Dependency'.
2022-01-14 08:36:57,712 968 [INFO ] - VERBOSE: Importing function 'Test-URL'.
2022-01-14 08:36:57,713 968 [DEBUG] - Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-windowsupdate\chocolatey-windowsupdate.psm1'
2022-01-14 08:36:57,714 968 [INFO ] - VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-windowsupdate\chocolatey-windowsupdate.psm1'.
2022-01-14 08:36:57,726 968 [INFO ] - VERBOSE: Exporting function 'Install-WindowsUpdate'.
2022-01-14 08:36:57,727 968 [INFO ] - VERBOSE: Exporting function 'Test-WindowsUpdate'.
2022-01-14 08:36:57,728 968 [INFO ] - VERBOSE: Importing function 'Install-WindowsUpdate'.
2022-01-14 08:36:57,728 968 [INFO ] - VERBOSE: Importing function 'Test-WindowsUpdate'.
2022-01-14 08:36:57,730 968 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'.
2022-01-14 08:36:57,730 968 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'.
2022-01-14 08:36:57,731 968 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
2022-01-14 08:36:57,732 968 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
2022-01-14 08:36:57,732 968 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariable'.
2022-01-14 08:36:57,733 968 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariableNames'.
2022-01-14 08:36:57,734 968 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'.
2022-01-14 08:36:57,735 968 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'.
2022-01-14 08:36:57,736 968 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
2022-01-14 08:36:57,736 968 [INFO ] - VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'.
2022-01-14 08:36:57,737 968 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'.
2022-01-14 08:36:57,738 968 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'.
2022-01-14 08:36:57,739 968 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
2022-01-14 08:36:57,740 968 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'.
2022-01-14 08:36:57,741 968 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'.
2022-01-14 08:36:57,741 968 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'.
2022-01-14 08:36:57,742 968 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'.
2022-01-14 08:36:57,743 968 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'.
2022-01-14 08:36:57,744 968 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyDesktopLink'.
2022-01-14 08:36:57,744 968 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
2022-01-14 08:36:57,745 968 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
2022-01-14 08:36:57,746 968 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
2022-01-14 08:36:57,747 968 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
2022-01-14 08:36:57,747 968 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'.
2022-01-14 08:36:57,748 968 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPath'.
2022-01-14 08:36:57,749 968 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
2022-01-14 08:36:57,750 968 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
2022-01-14 08:36:57,751 968 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
2022-01-14 08:36:57,752 968 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
2022-01-14 08:36:57,753 968 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
2022-01-14 08:36:57,754 968 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'.
2022-01-14 08:36:57,755 968 [INFO ] - VERBOSE: Exporting function 'Set-EnvironmentVariable'.
2022-01-14 08:36:57,755 968 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'.
2022-01-14 08:36:57,756 968 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
2022-01-14 08:36:57,757 968 [INFO ] - VERBOSE: Exporting function 'Test-ProcessAdminRights'.
2022-01-14 08:36:57,758 968 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'.
2022-01-14 08:36:57,759 968 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.
2022-01-14 08:36:57,760 968 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
2022-01-14 08:36:57,760 968 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.
2022-01-14 08:36:57,761 968 [INFO ] - VERBOSE: Exporting function 'Update-SessionEnvironment'.
2022-01-14 08:36:57,762 968 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateyFailure'.
2022-01-14 08:36:57,762 968 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateySuccess'.
2022-01-14 08:36:57,763 968 [INFO ] - VERBOSE: Exporting function 'Write-FileUpdateLog'.
2022-01-14 08:36:57,764 968 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'.
2022-01-14 08:36:57,765 968 [INFO ] - VERBOSE: Exporting function 'Get-AppInstallLocation'.
2022-01-14 08:36:57,765 968 [INFO ] - VERBOSE: Exporting function 'Get-AvailableDriveLetter'.
2022-01-14 08:36:57,766 968 [INFO ] - VERBOSE: Exporting function 'Get-EffectiveProxy'.
2022-01-14 08:36:57,768 968 [INFO ] - VERBOSE: Exporting function 'Get-PackageCacheLocation'.
2022-01-14 08:36:57,769 968 [INFO ] - VERBOSE: Exporting function 'Get-WebContent'.
2022-01-14 08:36:57,770 968 [INFO ] - VERBOSE: Exporting function 'Register-Application'.
2022-01-14 08:36:57,771 968 [INFO ] - VERBOSE: Exporting function 'Remove-Process'.
2022-01-14 08:36:57,772 968 [INFO ] - VERBOSE: Exporting function 'Install-DotNetDevPack'.
2022-01-14 08:36:57,773 968 [INFO ] - VERBOSE: Exporting function 'Install-DotNetFramework'.
2022-01-14 08:36:57,773 968 [INFO ] - VERBOSE: Exporting function 'Enable-AutoPin'.
2022-01-14 08:36:57,774 968 [INFO ] - VERBOSE: Exporting function 'Show-Patreon'.
2022-01-14 08:36:57,775 968 [INFO ] - VERBOSE: Exporting function 'Show-PayPal'.
2022-01-14 08:36:57,776 968 [INFO ] - VERBOSE: Exporting function 'Show-ToastMessage'.
2022-01-14 08:36:57,777 968 [INFO ] - VERBOSE: Exporting function 'Start-CheckandStop'.
2022-01-14 08:36:57,778 968 [INFO ] - VERBOSE: Exporting function 'Start-CheckandThrow'.
2022-01-14 08:36:57,778 968 [INFO ] - VERBOSE: Exporting function 'Start-WaitandStop'.
2022-01-14 08:36:57,779 968 [INFO ] - VERBOSE: Exporting function 'Start-WaitandStopActual'.
2022-01-14 08:36:57,780 968 [INFO ] - VERBOSE: Exporting function 'Test-Dependency'.
2022-01-14 08:36:57,781 968 [INFO ] - VERBOSE: Exporting function 'Test-URL'.
2022-01-14 08:36:57,782 968 [INFO ] - VERBOSE: Exporting function 'Install-WindowsUpdate'.
2022-01-14 08:36:57,783 968 [INFO ] - VERBOSE: Exporting function 'Test-WindowsUpdate'.
2022-01-14 08:36:57,784 968 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'.
2022-01-14 08:36:57,784 968 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'.
2022-01-14 08:36:57,785 968 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
2022-01-14 08:36:57,786 968 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'.
2022-01-14 08:36:57,787 968 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'.
2022-01-14 08:36:57,788 968 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'.
2022-01-14 08:36:57,788 968 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.
2022-01-14 08:36:57,789 968 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'.
2022-01-14 08:36:57,790 968 [INFO ] - VERBOSE: Exporting alias 'refreshenv'.
2022-01-14 08:36:57,791 968 [INFO ] - VERBOSE: Importing function 'Enable-AutoPin'.
2022-01-14 08:36:57,792 968 [INFO ] - VERBOSE: Importing function 'Format-FileSize'.
2022-01-14 08:36:57,792 968 [INFO ] - VERBOSE: Importing function 'Get-AppInstallLocation'.
2022-01-14 08:36:57,793 968 [INFO ] - VERBOSE: Importing function 'Get-AvailableDriveLetter'.
2022-01-14 08:36:57,794 968 [INFO ] - VERBOSE: Importing function 'Get-ChecksumValid'.
2022-01-14 08:36:57,795 968 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyUnzip'.
2022-01-14 08:36:57,796 968 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyWebFile'.
2022-01-14 08:36:57,796 968 [INFO ] - VERBOSE: Importing function 'Get-EffectiveProxy'.
2022-01-14 08:36:57,797 968 [INFO ] - VERBOSE: Importing function 'Get-EnvironmentVariable'.
2022-01-14 08:36:57,798 968 [INFO ] - VERBOSE: Importing function 'Get-EnvironmentVariableNames'.
2022-01-14 08:36:57,799 968 [INFO ] - VERBOSE: Importing function 'Get-FtpFile'.
2022-01-14 08:36:57,800 968 [INFO ] - VERBOSE: Importing function 'Get-OSArchitectureWidth'.
2022-01-14 08:36:57,800 968 [INFO ] - VERBOSE: Importing function 'Get-PackageCacheLocation'.
2022-01-14 08:36:57,801 968 [INFO ] - VERBOSE: Importing function 'Get-PackageParameters'.
2022-01-14 08:36:57,802 968 [INFO ] - VERBOSE: Importing function 'Get-PackageParametersBuiltIn'.
2022-01-14 08:36:57,803 968 [INFO ] - VERBOSE: Importing function 'Get-ToolsLocation'.
2022-01-14 08:36:57,804 968 [INFO ] - VERBOSE: Importing function 'Get-UACEnabled'.
2022-01-14 08:36:57,805 968 [INFO ] - VERBOSE: Importing function 'Get-UninstallRegistryKey'.
2022-01-14 08:36:57,805 968 [INFO ] - VERBOSE: Importing function 'Get-VirusCheckValid'.
2022-01-14 08:36:57,806 968 [INFO ] - VERBOSE: Importing function 'Get-WebContent'.
2022-01-14 08:36:57,807 968 [INFO ] - VERBOSE: Importing function 'Get-WebFile'.
2022-01-14 08:36:57,808 968 [INFO ] - VERBOSE: Importing function 'Get-WebFileName'.
2022-01-14 08:36:57,808 968 [INFO ] - VERBOSE: Importing function 'Get-WebHeaders'.
2022-01-14 08:36:57,809 968 [INFO ] - VERBOSE: Importing function 'Install-BinFile'.
2022-01-14 08:36:57,810 968 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyDesktopLink'.
2022-01-14 08:36:57,811 968 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyEnvironmentVariable'.
2022-01-14 08:36:57,812 968 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyExplorerMenuItem'.
2022-01-14 08:36:57,813 968 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyFileAssociation'.
2022-01-14 08:36:57,813 968 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyInstallPackage'.
2022-01-14 08:36:57,815 968 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPackage'.
2022-01-14 08:36:57,816 968 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPath'.
2022-01-14 08:36:57,817 968 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPinnedTaskBarItem'.
2022-01-14 08:36:57,817 968 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPowershellCommand'.
2022-01-14 08:36:57,818 968 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyShortcut'.
2022-01-14 08:36:57,819 968 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyVsixPackage'.
2022-01-14 08:36:57,820 968 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyZipPackage'.
2022-01-14 08:36:57,821 968 [INFO ] - VERBOSE: Importing function 'Install-DotNetDevPack'.
2022-01-14 08:36:57,822 968 [INFO ] - VERBOSE: Importing function 'Install-DotNetFramework'.
2022-01-14 08:36:57,822 968 [INFO ] - VERBOSE: Importing function 'Install-Vsix'.
2022-01-14 08:36:57,823 968 [INFO ] - VERBOSE: Importing function 'Install-WindowsUpdate'.
2022-01-14 08:36:57,824 968 [INFO ] - VERBOSE: Importing function 'Register-Application'.
2022-01-14 08:36:57,825 968 [INFO ] - VERBOSE: Importing function 'Remove-Process'.
2022-01-14 08:36:57,825 968 [INFO ] - VERBOSE: Importing function 'Set-EnvironmentVariable'.
2022-01-14 08:36:57,826 968 [INFO ] - VERBOSE: Importing function 'Set-PowerShellExitCode'.
2022-01-14 08:36:57,827 968 [INFO ] - VERBOSE: Importing function 'Show-Patreon'.
2022-01-14 08:36:57,828 968 [INFO ] - VERBOSE: Importing function 'Show-PayPal'.
2022-01-14 08:36:57,828 968 [INFO ] - VERBOSE: Importing function 'Show-ToastMessage'.
2022-01-14 08:36:57,829 968 [INFO ] - VERBOSE: Importing function 'Start-CheckandStop'.
2022-01-14 08:36:57,830 968 [INFO ] - VERBOSE: Importing function 'Start-CheckandThrow'.
2022-01-14 08:36:57,831 968 [INFO ] - VERBOSE: Importing function 'Start-ChocolateyProcessAsAdmin'.
2022-01-14 08:36:57,832 968 [INFO ] - VERBOSE: Importing function 'Start-WaitandStop'.
2022-01-14 08:36:57,832 968 [INFO ] - VERBOSE: Importing function 'Start-WaitandStopActual'.
2022-01-14 08:36:57,833 968 [INFO ] - VERBOSE: Importing function 'Test-Dependency'.
2022-01-14 08:36:57,834 968 [INFO ] - VERBOSE: Importing function 'Test-ProcessAdminRights'.
2022-01-14 08:36:57,835 968 [INFO ] - VERBOSE: Importing function 'Test-URL'.
2022-01-14 08:36:57,836 968 [INFO ] - VERBOSE: Importing function 'Test-WindowsUpdate'.
2022-01-14 08:36:57,837 968 [INFO ] - VERBOSE: Importing function 'Uninstall-BinFile'.
2022-01-14 08:36:57,837 968 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyEnvironmentVariable'.
2022-01-14 08:36:57,838 968 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyPackage'.
2022-01-14 08:36:57,839 968 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyZipPackage'.
2022-01-14 08:36:57,840 968 [INFO ] - VERBOSE: Importing function 'Update-SessionEnvironment'.
2022-01-14 08:36:57,841 968 [INFO ] - VERBOSE: Importing function 'Write-ChocolateyFailure'.
2022-01-14 08:36:57,841 968 [INFO ] - VERBOSE: Importing function 'Write-ChocolateySuccess'.
2022-01-14 08:36:57,842 968 [INFO ] - VERBOSE: Importing function 'Write-FileUpdateLog'.
2022-01-14 08:36:57,843 968 [INFO ] - VERBOSE: Importing function 'Write-FunctionCallLogMessage'.
2022-01-14 08:36:57,844 968 [INFO ] - VERBOSE: Importing alias 'Add-BinFile'.
2022-01-14 08:36:57,845 968 [INFO ] - VERBOSE: Importing alias 'Generate-BinFile'.
2022-01-14 08:36:57,846 968 [INFO ] - VERBOSE: Importing alias 'Get-InstallRegistryKey'.
2022-01-14 08:36:57,847 968 [INFO ] - VERBOSE: Importing alias 'Get-OSBitness'.
2022-01-14 08:36:57,848 968 [INFO ] - VERBOSE: Importing alias 'Get-ProcessorBits'.
2022-01-14 08:36:57,849 968 [INFO ] - VERBOSE: Importing alias 'Invoke-ChocolateyProcess'.
2022-01-14 08:36:57,850 968 [INFO ] - VERBOSE: Importing alias 'refreshenv'.
2022-01-14 08:36:57,850 968 [INFO ] - VERBOSE: Importing alias 'Remove-BinFile'.
2022-01-14 08:36:57,851 968 [INFO ] - VERBOSE: Importing alias 'Start-ChocolateyProcess'.
2022-01-14 08:36:57,853 968 [DEBUG] - ---------------------------Script Execution---------------------------
2022-01-14 08:36:57,854 968 [DEBUG] - Running 'ChocolateyScriptRunner' for nodejs.install v17.3.1 with packageScript 'C:\ProgramData\chocolatey\lib\nodejs.install\tools\chocolateyInstall.ps1', packageFolder:'C:\ProgramData\chocolatey\lib\nodejs.install', installArguments: '', packageParameters: '',
2022-01-14 08:36:57,856 968 [DEBUG] - Running 'C:\ProgramData\chocolatey\lib\nodejs.install\tools\chocolateyInstall.ps1'
2022-01-14 08:36:57,875 968 [DEBUG] - Running Get-OSArchitectureWidth -compare '64' 
2022-01-14 08:36:57,879 968 [INFO ] - Installing 64 bit version
2022-01-14 08:36:57,881 968 [DEBUG] - Running Install-ChocolateyInstallPackage -silentArgs '/quiet ADDLOCAL=ALL REMOVE=NodeEtwSupport' -file 'C:\ProgramData\chocolatey\lib\nodejs.install\tools\node-v17.3.1-x64.msi' -fileType 'msi' -validExitCodes '0' -packageName 'nodejs.install' 
2022-01-14 08:36:57,883 968 [DEBUG] - Running Get-ProcessorBits -compare '32' 
2022-01-14 08:36:57,886 968 [INFO ] - Installing nodejs.install...
2022-01-14 08:36:57,901 968 [DEBUG] - Running Start-ChocolateyProcessAsAdmin -validExitCodes '0' -workingDirectory 'C:\ProgramData\chocolatey\lib\nodejs.install\tools' -statements '/i "C:\ProgramData\chocolatey\lib\nodejs.install\tools\node-v17.3.1-x64.msi" /quiet ADDLOCAL=ALL REMOVE=NodeEtwSupport ' -exeToRun 'C:\Windows\System32\msiexec.exe' 
2022-01-14 08:36:57,903 968 [DEBUG] - Test-ProcessAdminRights: returning True
2022-01-14 08:36:57,904 968 [DEBUG] - Elevating permissions and running ["C:\Windows\System32\msiexec.exe" /i "C:\ProgramData\chocolatey\lib\nodejs.install\tools\node-v17.3.1-x64.msi" /quiet ADDLOCAL=ALL REMOVE=NodeEtwSupport ]. This may take a while, depending on the statements.
2022-01-14 08:38:31,260 968 [DEBUG] - Command ["C:\Windows\System32\msiexec.exe" /i "C:\ProgramData\chocolatey\lib\nodejs.install\tools\node-v17.3.1-x64.msi" /quiet ADDLOCAL=ALL REMOVE=NodeEtwSupport ] exited with '0'.
2022-01-14 08:38:31,262 968 [DEBUG] - Finishing 'Start-ChocolateyProcessAsAdmin'
2022-01-14 08:38:31,266 968 [INFO ] - nodejs.install has been installed.
2022-01-14 08:38:31,282 968 [DEBUG] - ----------------------------------------------------------------------
2022-01-14 08:38:31,285 968 [DEBUG] - Built-in PowerShell host called with ['[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.CurrentUICulture = ''; & import-module -name 'C:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1'; & 'C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1' -packageScript 'C:\ProgramData\chocolatey\lib\nodejs.install\tools\chocolateyInstall.ps1' -installArguments '' -packageParameters '''] exited with '0'.
2022-01-14 08:38:31,286 968 [DEBUG] - Calling command ['"C:\Windows\System32\shutdown.exe" /a']
2022-01-14 08:38:31,334 968 [DEBUG] - Command ['"C:\Windows\System32\shutdown.exe" /a'] exited with '1116'
2022-01-14 08:38:31,480 968 [INFO ] -   nodejs.install may be able to be automatically uninstalled.
2022-01-14 08:38:31,484 968 [DEBUG] - Capturing package files in 'C:\ProgramData\chocolatey\lib\nodejs.install'
2022-01-14 08:38:31,638 968 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\nodejs.install\nodejs.install.nupkg'
  with checksum '34B5258B2DFA67DFCC97288F58A84971'
2022-01-14 08:38:31,640 968 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\nodejs.install\nodejs.install.nuspec'
  with checksum 'FC706A142033C0E90665FF4F5AB0E4F8'
2022-01-14 08:38:31,642 968 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\nodejs.install\legal\LICENSE.txt'
  with checksum '637C5C82FC7332FC2F6A08E8DE0E3B52'
2022-01-14 08:38:31,644 968 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\nodejs.install\legal\VERIFICATION.txt'
  with checksum '6BE0AA2DAFCA682624B2CAEAE5CB0A6F'
2022-01-14 08:38:31,645 968 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\nodejs.install\tools\chocolateyInstall.ps1'
  with checksum '61D66EE90D1D93ED585D2E377BDAADA3'
2022-01-14 08:38:31,647 968 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\nodejs.install\tools\node-v17.3.1-x64.msi.ignore'
  with checksum 'BEA07E6D2B8DCE396FE21BAA61B34956'
2022-01-14 08:38:31,652 968 [DEBUG] - Attempting to replace "C:\ProgramData\chocolatey\.chocolatey\nodejs.install.17.3.1\.registry"
 with "C:\ProgramData\chocolatey\.chocolatey\nodejs.install.17.3.1\.registry.968.update".
 Backup placed at "C:\ProgramData\chocolatey\.chocolatey\nodejs.install.17.3.1\.registry.backup".
2022-01-14 08:38:31,655 968 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\nodejs.install.17.3.1\.registry.backup".
2022-01-14 08:38:31,658 968 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\.chocolatey\nodejs.install.17.3.1\.registry.968.update"
 to "C:\ProgramData\chocolatey\.chocolatey\nodejs.install.17.3.1\.registry".
2022-01-14 08:38:31,662 968 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\nodejs.install.17.3.1\.registry.968.update".
2022-01-14 08:38:31,665 968 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\nodejs.install.17.3.1\.arguments".
2022-01-14 08:38:31,667 968 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\nodejs.install.17.3.1\.extra".
2022-01-14 08:38:31,668 968 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\nodejs.install.17.3.1\.version".
2022-01-14 08:38:31,669 968 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\nodejs.install.17.3.1\.sxs".
2022-01-14 08:38:31,669 968 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\nodejs.install.17.3.1\.pin".
2022-01-14 08:38:31,674 968 [DEBUG] - Sending message 'HandlePackageResultCompletedMessage' out if there are subscribers...
2022-01-14 08:38:31,675 968 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\lib\nodejs.install\.chocolateyPending".
2022-01-14 08:38:31,677 968 [INFO ] -  The upgrade of nodejs.install was successful.
2022-01-14 08:38:31,678 968 [INFO ] -   Software installed as 'msi', install location is likely default.
2022-01-14 08:38:31,678 968 [DEBUG] - Attempting to delete file "C:\Users\Coder\AppData\Local\NuGet\Cache\nodejs.install.17.3.1.nupkg".
pauby commented 2 years ago

@gsscoder Can you go back and complete the issue template rather than using freeform?

gsscoder commented 2 years ago

Analyzing things better I see that the package upgraded is nodejs.install and not nodejs. Anyway it seems impossible to pin it.

Tried with:

choco pin add -n="nodejs.install"
choco pin add -n="'nodejs.install'"

I'm able to skipt it using: choco upgrade all --except="'nodejs.install'"

Feel free to close the issue.

Best regards

gep13 commented 2 years ago

@gsscoder What error did you get when trying to pin the package? I have just tried, and it worked fine for me.

vexx32 commented 2 years ago

From looking at that I wonder if we should have choco warn about pinning packages that have a corresponding .install package that isn't being pinned. 🤔

corbob commented 2 years ago

From looking at that I wonder if we should have choco warn about pinning packages that have a corresponding .install package that isn't being pinned. 🤔

Or perhaps a new option that also pins dependencies?

gep13 commented 2 years ago

There is a precedence for this type of logic during the uninstall of a package. For example, if I attempt to uninstall notepadplusplus I get the following:

image

I think it would be a good addition to do the same with the pin operation is attempted.

lowesalex commented 9 months ago

I had the same went to C:\ProgramData\chocolatey\lib\nodejs.install\ and removed nodejs.install.nupkg file then the choco commands started to work