Verify if a Chocolatey package is installed

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

Install Powershell 4 on Windows 7 Home Premium

2015/10/06

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 www.chocolatey.org, under PowerShell 2 console, as administrator:

iex ((new-object net.webclient).DownloadString(” https://chocolatey.org/install.ps1 “))

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 https://chocolatey.org/packages/PowerShell/4.0.20141001

choco install powershell -version 4.0.20141001

%d bloggers like this: