* Disables Verbose progress during install and upgrade (#175). #178
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description Of Changes
Disables the PowerShell verbose progress when installing or updating a package. Fixes #175
Fixes an issue that may occur if Chocolatey is installed in the same session that this resource is run in. The PowerShell Environment variable $env:ChocolateyInstall may be null. If this happens then assign it the value from the System environment variable ChocolateyInstall. Fixes #174
Motivation and Context
Disabling the PowerShell Verbose progress stops the log being filled with unnecessary information.
Fixing the environment variable prevents this provider crashing when the Chocolatey appliction is installed in the same session.
Testing
Disabling progress was tested by running an installation on a server with Verbose logging enabled. The excessive logging was not disaplyed with the change.
The provider crash was seen when running on a new server intermittently.
With this change the provider did not crash in 4 runs.
No changes have been made to the Pester tests.
Operating Systems Testing
Server 2022
Change Types Made
Change Checklist
Related Issue
#175, #174
Fixes #