Skip to content

Chocolatey Package uses deprecated function for Desktop Link when Chocolatey Version >= 1.0.0 #1480

Closed

Description

@steviecoaster

Hi! Thanks for reporting this feature/bug/question!

Please keep / fill in the relevant info from this template so that we can help you as best as possible.

Type (choose one):

  • Bug

NPE version: (e.g. 5.x) (see Help -> about)

OS version: (Windows 7, 10 - 1803/17134, etc)

Windows 10
Installed from: Microsoft Store / Chocolatey.org / Zip on GitHub / CI channel

In case of a BUG:

  • What is the current result? Chocolatey version 1.0.0 fails to install because Install-ChocolateyDesktopLink has been removed.
  • What is the expected result? The package installs correctly, with a desktop link
  • Please post full exception details in case of an Exception (message, stacktrace, inner exceptions).
PS C:\choco-setup\files> choco install nugetpackageexplorer -y
Chocolatey v1.0.0 Business
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.

Installing the following packages:
nugetpackageexplorer
By installing, you accept licenses for the packages.
Progress: Downloading NugetPackageExplorer 6.0.27... 100%

NugetPackageExplorer v6.0.27 [Approved]
nugetpackageexplorer package files install completed. Performing other installation steps.
ERROR: The term 'Install-ChocolateyDesktopLink' 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.
The install of nugetpackageexplorer was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\NugetPackageExplorer\ChocolateyInstall.ps1'.
 See log for details.

Chocolatey installed 0/1 packages. 1 packages failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Failures
 - nugetpackageexplorer (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\NugetPackageExplorer\ChocolateyInstall.ps1'.
 See log for details.
PS C:\choco-setup\files>
  • Are there any workarounds? yes/no
  • Is there a version in which it did work?
  • Is there a package on Nuget.org which shows the bug?

In case of a FEATURE REQUEST:

  • Why do we need it?
  • Please provide an use case.

Activity

  1. added a commit that references this issue on Mar 29, 2022
  2. added a commit that references this issue on Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions