Answers for "powershell check if software is installed"

0

powershell check if software is installed

$software = "Microsoft .NET Core Runtime - 3.1.0 (x64)";
$installed = (Get-ItemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* | Where { $_.DisplayName -eq $software }) -ne $null

If(-Not $installed) {
	Write-Host "'$software' is NOT installed.";
} else {
	Write-Host "'$software' is installed."
}
Posted by: Guest on March-28-2020

Code answers related to "powershell check if software is installed"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language