mirror of
https://github.com/amidaware/community-scripts.git
synced 2026-04-26 06:25:54 +03:00
[PR #236] [CLOSED] Remove hardcoded path to choco.exe and use %ChocolateyInstall% / $env:ChocolateyInstall env variable to find it. #550
Labels
No labels
enhancement
good first issue
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/community-scripts#550
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/amidaware/community-scripts/pull/236
Author: @bcurran3
Created: 5/20/2024
Status: ❌ Closed
Base:
main← Head:patch-1📝 Commits (4)
c1cf6a1Update Win_Chocolatey_List_Installed.bat1ff44d6Update Win_Chocolatey_Manage_Apps_Bulk.ps1079c3b9Update Win_Chocolatey_List_Installed.bat91b8ed2Update Win_Chocolatey_Manage_Apps_Bulk.ps1📊 Changes
2 files changed (+3 additions, -6 deletions)
View changed files
📝
scripts/Win_Chocolatey_List_Installed.bat(+2 -5)📝
scripts/Win_Chocolatey_Manage_Apps_Bulk.ps1(+1 -1)📄 Description
It should not be assumed that Chocolatey choco.exe is found in c:\programdata\chocolatey as it can be installed elsewhere.
Upon install, Chocolatey sets a system environmental variable pointing to where it was installed, this is %ChocolateyInstall%/$env:ChocolateyInstall and that environmental variable is best practice to find the location of choco.exe. v0.98(?) and before used c:\chocolatey
Also, Chocolatey doesn't install apps, it installs packages which in turn are most likely programs.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.