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

Get-UninstallRegistryKey doesn't work with keys that have bracket characters(`[]`) #1788

alFReD-NSH opened this issue Apr 3, 2019 · 1 comment


None yet
3 participants
Copy link

commented Apr 3, 2019

What You Are Seeing?

Get-UninstallRegistryKey showing registry keys contains some characters(eg [ or ]) as bad keys because where Get-ItemProperty -Path wouldn't accept that in the path.

What is Expected?

It should work even if the registry keys contain [] characters

How Did You Get This To Happen? (Steps to Reproduce)

Call Get-UninstallRegistryKey $softwareName when you have a $softwareName that represents your software which contains [].

Output Log

alFReD-NSH added a commit to alFReD-NSH/choco that referenced this issue Apr 3, 2019

Use LiteralPath in Get-UninstallRegistryKey
This fixes cases where registry keys contains some characters(eg `[` or `]`) where `Get-ItemProperty -Path` wouldn't accept.

Fixes chocolatey#1788

@gep13 gep13 added the Bug label Apr 4, 2019


This comment has been minimized.

Copy link

commented Apr 4, 2019

Thanks for adding the issue.

@ferventcoder ferventcoder added this to the 0.10.14 milestone Apr 4, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.