amidaware / community-scripts

A curated list of powershell, python, and batch scripts for use in TacticalRMM or anywhere!
MIT License
122 stars 84 forks source link

Little improvement #184

Closed somzoli closed 9 months ago

silversword411 commented 1 year ago

Can Choco be installed in different locations?

I never like hard coding paths.

Yes, there are times Choco fails because it needs an environment reload to get new path data after install and the windows path bugs don't help either.

silversword411 commented 9 months ago

Thank you for this PR, it made us rework and improve the choco path to be not reliant on the choco env var that is part of the agent install.

Script has been significantly reworked since then, so it's no longer in a mergable state. If you think the current script can still be improved, please update against current prod version.