Skip to content
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

cChocoSource, cChocoFeature and others #99

Open
ferventcoder opened this issue Nov 29, 2017 · 0 comments
Open

cChocoSource, cChocoFeature and others #99

ferventcoder opened this issue Nov 29, 2017 · 0 comments

Comments

@ferventcoder
Copy link
Member

These would need to run choco -v one time to ensure that a config file exists. Otherwise when they hit a line like

$configfile = Get-ChildItem $configfolder | Where-Object {$_.Name -match "chocolatey.config$"}

And it doesn't return any files, so when they call the next line

$xml = [xml](Get-Content $configfile.FullName)

It errors on converting NULL into XML.

Workarounds

Run choco one time prior to setting configuration, perhaps just after the install in your installation script.

@ferventcoder ferventcoder added this to the 2.4.0 milestone Nov 29, 2017
@pauby pauby modified the milestones: 2.4.0, 2.5.0 Nov 9, 2018
@pauby pauby modified the milestones: 2.5.0, 2.5.1 Feb 9, 2021
@pauby pauby modified the milestones: 2.5.1, 2.6 Jul 16, 2021
@vexx32 vexx32 modified the milestones: 2.6.0, 2.x Oct 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants