-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Turn off installation progress for cChocoPackageInstall to stop it filling the verbose log output #175
Comments
@rcarpenter79 have you by chance tested this change? I didn't know Chocolatey picked up the ProgressPreference from the invoking PowerShell session. If you've confirmed it works, would you be interested in creating a Pull Request for this change? If it doesn't work, then you can likely fix it with passing |
Assigns $env:ChocolateyInstall from the System environment variable if $env:ChocolateyInstal is $null (chocolatey#174)
@corbob I have updated my fork with the upstream changes and merged my changes. |
@rcarpenter79 no need to open a new pr, just updating the existing one is sufficient. |
@rcarpenter79 apologies for the delays in getting to look at this. I was looking at the PR today to hopefully merge it, but I'm not able to reproduce the initial issue. When I run in a test environment, the output explicitly says it's calling cChoco/DSCResources/cChocoPackageInstall/cChocoPackageInstall.psm1 Lines 288 to 290 in f583fee
|
Checklist
Is Your Feature Request Related To A Problem? Please describe.
Yes. Verbose output is a mess when logging installation progress.
Describe The Solution. Why is it needed?
Set $ProgressPreferences to 'SilentlyContinue' in InstallPackage before running 'choco install'
Example:
I also corrected a typo in $packageInstallOutput.
Additional Context
No response
Related Issues
No response
The text was updated successfully, but these errors were encountered: