Skip to content

Test registry path before invoking Get-ChildItem - #95

Merged
maxim-lobanov merged 1 commit into
actions:mainfrom
ritchxu:ritchxu/remove-registry-best-effort
May 25, 2021
Merged

Test registry path before invoking Get-ChildItem#95
maxim-lobanov merged 1 commit into
actions:mainfrom
ritchxu:ritchxu/remove-registry-best-effort

Conversation

@ritchxu

@ritchxu ritchxu commented May 21, 2021

Copy link
Copy Markdown
Contributor

We discovered in a pristine Windows machine (e.g. using an image from Azure market place), some registry path will be non-existing. This broken the Remove-RegistryEntries function. This PR fixes that by checking if the registry paths actually exist, just like what is done with uninstallRegistrySections a few lines below.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

5 participants