Verify if a Chocolatey package is installed

(choco list –lo | % { $_ -match “winmerge” }).contains($true)
(choco list –lo | % { $_ -match “sdfsdfds” }).contains($true)

Install Powershell 4 on Windows 7 Home Premium


The only option that worked for me was by using chocolatey.
The other options found on the net, using the command prompt and installing required Windows packages didn’t give the desired result.

So, if you don’t have chocolatey installed, run the install command found on, under PowerShell 2 console, as administrator:

iex ((new-object net.webclient).DownloadString(” “))

Before that, you need to also have script execution set to Bypass, or Unrestricted

Set-ExecutionPolicy Unrestricted -f

If you don’t have PowerShell 2, run the install command for standard command prompt, found on the website.

After that, the install command is the one from

choco install powershell -version 4.0.20141001

%d bloggers like this: