Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $Name = "WinZip"
- $detection = @()
- $detection = Get-ItemProperty HKLM:\software\microsoft\windows\currentversion\Uninstall\*,HKLM:\software\wow6432node\microsoft\windows\currentversion\Uninstall\* | Where-Object {($_.DisplayName -like "$Name*")}
- if (!($detection)) { write-host "Installed" }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement