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

(GH-1304) Wrapping HashTable calls inside parenthesis #1305

Closed
wants to merge 1 commit into from
Closed

(GH-1304) Wrapping HashTable calls inside parenthesis #1305

wants to merge 1 commit into from

Conversation

AdmiringWorm
Copy link
Member

@AdmiringWorm AdmiringWorm commented May 20, 2017

Previously when running choco new the generated uninstall script would
create a elseif statement which would output several warnings to the
user if more than the expected registry keys was found.
These warnings contains an incorrect use when calling properties
on a hashtable and would instead output the full registry key and their
subkeys instead of the number of keys found, and their display name.

With this change the uninstall template will correctly generate the
use of such properties and output the actual number of keys found
and their display name.

Closes #1304

@AdmiringWorm
Copy link
Member Author

@ferventcoder is there a problem with the appveyor build?
It looks like it doesn't restore the needed nuget packages

Previously when running choco new the generated uninstall script would
create a elseif statement which would output several warnings to the
user if more than the expected registry keys was found.
These warnings contains an incorrect use when calling properties
on a hashtable and would instead output the full registry key and their
subkeys instead of the number of keys found, and their display name.

With this change the uninstall template will correctly generate the
use of such properties and output the actual number of keys found
and their display name.

fixes #1304
@ferventcoder
Copy link
Member

Thanks!

Copy link
Member

@ferventcoder ferventcoder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@ferventcoder
Copy link
Member

Rebased and merged into stable at 326a8ae. Thanks for the contribution!

@ferventcoder ferventcoder self-assigned this May 30, 2017
@AdmiringWorm AdmiringWorm deleted the hotfix/incorrect-template-vars branch May 30, 2017 05:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants