Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

powershell check if software is installed

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

If(-Not $installed) {
	Write-Host "'$software' is NOT installed.";
} else {
	Write-Host "'$software' is installed."
}
Comment

PREVIOUS NEXT
Code Example
Shell :: android create keystore command line 
Shell :: git cherry pick 
Shell :: swagger installation 
Shell :: aac anticheat 
Shell :: bash make directory 
Shell :: apt-key export import 
Shell :: install fdupes duplicate content finder on linux 
Shell :: error commit is a merge but "no -m" option 
Shell :: install sqlite in ubuntu 
Shell :: link folder to github repo 
Shell :: public key generate 
Shell :: bash for loop string array 
Shell :: shell script get branch name 
Shell :: powershell pc battery command 
Shell :: grep from file 
Shell :: vscode kali linux 
Shell :: how to remove empty directories 
Shell :: git add -p 
Shell :: git diff show only files 
Shell :: blackeye bash 
Shell :: linux mint 20 dark mode 
Shell :: uvicorn ERROR: [Errno 98] Address already in use 
Shell :: setup wordpress on ubuntu 
Shell :: moving files in terminal 
Shell :: poetry python install 
Shell :: debian terminal paste 
Shell :: julia install linux 
Shell :: download google chrome linux command line rpm 
Shell :: how to install julia on ubuntu 
Shell :: No package mongodb-org available. 
ADD CONTENT
Topic
Content
Source link
Name
8+8 =