Skip to content

(#1480) Fix desktop shortcut in Chocolatey - #1481

Merged
clairernovotny merged 1 commit into
NuGetPackageExplorer:mainfrom
steviecoaster:gh1480
Apr 25, 2022
Merged

clairernovotny merged 1 commit into
NuGetPackageExplorer:mainfrom
steviecoaster:gh1480

Conversation

@steviecoaster

Copy link
Copy Markdown
Contributor

Prior to version 1.0.0 of Chocolatey the Install-DesktopLink helper function
could be used to create shortcuts. This function has been deprecated and now
removed from Chocolatey as of version 1.0.0

This commit refactors the chocolateyInstall.ps1 script to use the supported
Install-ChocolateyShortcut function to provide the functionality.

Additionally, package parameters have been introduced to allow folks installing
from the chocolatey package to opt-out of having a desktop icon created for them.

This additional functionality, including usage, has been documented in the nuspec
file description, so that it is available for people looking at the package on the
Chocolatey Community Repository.

Fixes #1480

Prior to version 1.0.0 of Chocolatey the Install-DesktopLink helper function
could be used to create shortcuts. This function has been deprecated and now
removed from Chocolatey as of version 1.0.0

This commit refactors the chocolateyInstall.ps1 script to use the supported
Install-ChocolateyShortcut function to provide the functionality.

Additionally, package parameters have been introduced to allow folks installing
from the chocolatey package to opt-out of having a desktop icon created for them.

This additional functionality, including usage, has been documented in the nuspec
file description, so that it is available for people looking at the package on the
Chocolatey Community Repository.
@dnfadmin

dnfadmin commented Mar 29, 2022 •

Copy link
Copy Markdown
Contributor

CLA assistant check
All CLA requirements met.

@steviecoaster
steviecoaster marked this pull request as draft March 29, 2022 17:39
@steviecoaster

Copy link
Copy Markdown
Contributor Author

Marking this draft so I can thoroughly test the changes here and make sure I've got everything right. Once I'm happy I'll remove draft status so it can go through review.

@steviecoaster

Copy link
Copy Markdown
Contributor Author

Tested, and working. Marking ready for review

@steviecoaster
steviecoaster marked this pull request as ready for review March 29, 2022 17:55
@clairernovotny
clairernovotny merged commit 2fea324 into NuGetPackageExplorer:main Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

3 participants