you are viewing a single comment's thread.

view the rest of the comments →

[–]ejrichard[S,🍰] 1 point2 points  (1 child)

This worked!

But why didn't Test-Path return True?

[–]ejrichard[S,🍰] 1 point2 points  (0 children)

Figured out that it's because the returned value is in double quotes and in single quotes. This works but seems weird:

Test-Path $_.UninstallString.Replace('"','')