From 0d4a17285ebd5232d8ff074355486bb25d9a9ecd Mon Sep 17 00:00:00 2001 From: Cory Knox Date: Thu, 26 Sep 2024 13:52:48 -0700 Subject: [PATCH] (#3520) Deprecate Install-ChocolateyPinnedTaskBarItem Deprecate the Install-ChocolateyPinnedTaskBarItem command to prepare for it to be removed in v3. --- .../helpers/functions/Install-ChocolateyPinnedTaskBarItem.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/chocolatey.resources/helpers/functions/Install-ChocolateyPinnedTaskBarItem.ps1 b/src/chocolatey.resources/helpers/functions/Install-ChocolateyPinnedTaskBarItem.ps1 index 13f98a25a..50ec9d2b4 100644 --- a/src/chocolatey.resources/helpers/functions/Install-ChocolateyPinnedTaskBarItem.ps1 +++ b/src/chocolatey.resources/helpers/functions/Install-ChocolateyPinnedTaskBarItem.ps1 @@ -21,7 +21,7 @@ Creates an item in the task bar linking to the provided path. .NOTES Does not work with SYSTEM, but does not error. It warns with the error -message. +message. This command is deprecated and will be removed in version 3.0.0. .INPUTS None @@ -53,6 +53,7 @@ Install-ChocolateyExplorerMenuItem ) Write-FunctionCallLogMessage -Invocation $MyInvocation -Parameters $PSBoundParameters + Write-Warning "Install-ChocolateyPinnedTaskBarItem has been deprecated in v2.4.0 and will be removed in v3.0.0." try { if (Test-Path($targetFilePath)) {