Skip to content

Commit

Permalink
Fixes #19
Browse files Browse the repository at this point in the history
  • Loading branch information
cdhunt committed Jul 26, 2016
1 parent c65aa10 commit bb32746
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Public/SoftwareProduct.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,9 @@ function SoftwareProduct {
[scriptblock]$Should
)

$name = Split-Path -Path $Target -Leaf

$expression = {Get-ItemProperty -Path hklm:\\Software\Microsoft\Windows\CurrentVersion\Uninstall\* | Where-Object DisplayName -Match '$Target'}

$params = Get-PoshspecParam -TestName SoftwareProduct -TestExpression $expression -FriendlyName $name @PSBoundParameters
$params = Get-PoshspecParam -TestName SoftwareProduct -TestExpression $expression @PSBoundParameters

Invoke-PoshspecExpression @params
}
Binary file modified poshspec.psd1
Binary file not shown.

0 comments on commit bb32746

Please sign in to comment.