[PR #236] [CLOSED] Remove hardcoded path to choco.exe and use %ChocolateyInstall% / $env:ChocolateyInstall env variable to find it. #550

Closed
opened 2026-03-14 01:28:00 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/amidaware/community-scripts/pull/236
Author: @bcurran3
Created: 5/20/2024
Status: Closed

Base: mainHead: patch-1


📝 Commits (4)

  • c1cf6a1 Update Win_Chocolatey_List_Installed.bat
  • 1ff44d6 Update Win_Chocolatey_Manage_Apps_Bulk.ps1
  • 079c3b9 Update Win_Chocolatey_List_Installed.bat
  • 91b8ed2 Update 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.

## 📋 Pull Request Information **Original PR:** https://github.com/amidaware/community-scripts/pull/236 **Author:** [@bcurran3](https://github.com/bcurran3) **Created:** 5/20/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `patch-1` --- ### 📝 Commits (4) - [`c1cf6a1`](https://github.com/amidaware/community-scripts/commit/c1cf6a1717716d0b10832f6a23233d8dd36994ea) Update Win_Chocolatey_List_Installed.bat - [`1ff44d6`](https://github.com/amidaware/community-scripts/commit/1ff44d61a5890793e6182551085de31b5e34ece4) Update Win_Chocolatey_Manage_Apps_Bulk.ps1 - [`079c3b9`](https://github.com/amidaware/community-scripts/commit/079c3b99aab6ca7b16c68133bfa04eb2e7a9d2d2) Update Win_Chocolatey_List_Installed.bat - [`91b8ed2`](https://github.com/amidaware/community-scripts/commit/91b8ed2886a11eb5608eaad99b138cdcf7f96180) Update Win_Chocolatey_Manage_Apps_Bulk.ps1 ### 📊 Changes **2 files changed** (+3 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `scripts/Win_Chocolatey_List_Installed.bat` (+2 -5) 📝 `scripts/Win_Chocolatey_Manage_Apps_Bulk.ps1` (+1 -1) </details> ### 📄 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-14 01:28:00 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/community-scripts#550
No description provided.