Skip to content

Commit bb32746

Browse files
committed
Fixes #19
1 parent c65aa10 commit bb32746

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

Public/SoftwareProduct.ps1

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,9 @@ function SoftwareProduct {
3636
[scriptblock]$Should
3737
)
3838

39-
$name = Split-Path -Path $Target -Leaf
40-
4139
$expression = {Get-ItemProperty -Path hklm:\\Software\Microsoft\Windows\CurrentVersion\Uninstall\* | Where-Object DisplayName -Match '$Target'}
4240

43-
$params = Get-PoshspecParam -TestName SoftwareProduct -TestExpression $expression -FriendlyName $name @PSBoundParameters
41+
$params = Get-PoshspecParam -TestName SoftwareProduct -TestExpression $expression @PSBoundParameters
4442

4543
Invoke-PoshspecExpression @params
4644
}

poshspec.psd1

2 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)