oops
This commit is contained in:
@@ -20,7 +20,7 @@ Function Get-ProductKeys ([string]$ProductName) {
|
|||||||
Get-ChildItem -Path 'HKCR:Installer\Products' | ForEach-Object {
|
Get-ChildItem -Path 'HKCR:Installer\Products' | ForEach-Object {
|
||||||
If ( $(Get-ItemProperty -Path $_.PSPath -Name 'ProductName' -ErrorAction SilentlyContinue) -and ($(Get-ItemPropertyValue -Path $_.PSPath -Name 'ProductName' -ErrorAction SilentlyContinue) -eq $ProductName) ) {
|
If ( $(Get-ItemProperty -Path $_.PSPath -Name 'ProductName' -ErrorAction SilentlyContinue) -and ($(Get-ItemPropertyValue -Path $_.PSPath -Name 'ProductName' -ErrorAction SilentlyContinue) -eq $ProductName) ) {
|
||||||
$prod = $_.PSPath.Substring($_.PSPath.Length - 32)
|
$prod = $_.PSPath.Substring($_.PSPath.Length - 32)
|
||||||
CLogMsg = "Found : ${prod}"
|
CLogMsg "Found : ${prod}"
|
||||||
$ProductKeys.Add($prod) | Out-Null
|
$ProductKeys.Add($prod) | Out-Null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user