You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This migration path hasnt been supported or used since pre-1.0 versions
of Chocolatey and is dead code.
Removing this now to simplify the install process somewhat and get the
old code out of the way as it's not used at all.
if ($alreadyInitializedNugetPath-and$alreadyInitializedNugetPath-ne$chocolateyPath-and ($allowInsecureRootInstall-or$alreadyInitializedNugetPath-ne$defaultChocolateyPathOld)) {
Write-Output"Attempting to upgrade `'$chocolateyPathOld`' to `'$chocolateyPath`'."
381
-
Write-ChocolateyWarning"Copying the contents of `'$chocolateyPathOld`' to `'$chocolateyPath`'. `n This step may fail if you have anything in this folder running or locked."
382
-
Write-Output'If it fails, just manually copy the rest of the items out and then delete the folder.'
383
-
Write-ChocolateyWarning"!!!! ATTN: YOU WILL NEED TO CLOSE AND REOPEN YOUR SHELL !!!!"
Write-ChocolateyWarning"Was not able to move `'$fileToMove`'. You may need to reinstall the shim"
421
-
}
422
-
}
423
-
}
424
-
}
425
-
}
426
-
427
-
functionRemove-OldChocolateyInstall {
428
-
param(
429
-
[string]$chocolateyPathOld="$sysDrive\Chocolatey"
430
-
)
431
-
Write-Debug"Remove-OldChocolateyInstall"
432
-
433
-
if (Test-Path$chocolateyPathOld) {
434
-
Write-ChocolateyWarning"This action will result in Log Errors, you can safely ignore those. `n You may need to finish removing '$chocolateyPathOld' manually."
0 commit comments