Chocolatey Fest - Chocolatey's inaugural conference on Windows Automation (WinOps) is coming - Learn more!

Patch my PC

4.1.0.1

Package test results are passing.

Private CDN cached downloads available for licensed customers. Never experience 404 breakages again! Learn more...

This package was approved as a trusted package on 9/14/2018.

A key component of staying safe online is keeping your computer up-to-date. Hackers and virus writers love outdated software. It might contain a security vulnerability or "hole" that can provide them with access to your computer. Outdated software can also be buggy, or have performance issues, which is usually fixed with a newer version of the software. These are two of the main reasons why it is important to keep the software on your computer updated (or "patched").

Patch My PC Updater is a free, easy-to-use program that keeps over 100 programs up-to-date on your computer. It is also an easy way to install any of these programs on to your computer.When you open Patch My PC Updater, it will scan your system for outdated programs.

Whether you are a computer novice, semi-tech savvy, the go-to tech person for your family and friends, or an IT professional, Patch My PC Updater will make patching your PC easy.

Features

  • Easy to use User Interface
  • Outdated software will show in Red
  • Up to date will show in Green
  • Not installed software will show up as Black
  • Patches many common third party products e.g. Reader, Flash, Java, Quicktime and More
  • Portable and very small around 500 Kb.
  • Scan and install needed Windows updates
  • Quickly uninstall multiple programs
  • Enable or disable programs
  • Set updates to happen on a schedule

Notes

  • Link to start menu is no longer working. Looking for a package writer who can fix this.

To install Patch my PC, run the following command from the command line or from PowerShell:

C:\> choco install patch-my-pc

To upgrade Patch my PC, run the following command from the command line or from PowerShell:

C:\> choco upgrade patch-my-pc

Files

Hide
  • tools\chocolateyInstall.ps1 Show
    $ErrorActionPreference = 'Stop';
    
    $toolsDir = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)"
    
    # Combatibility - This function has not been merged
    if (!(Get-Command Install-ChocolateyPinnedItem -errorAction SilentlyContinue)) {
      . "$toolsDir\helpers.ps1"
    }
    
    $packageArgs = @{
      packageName    = 'patch-my-pc'
      file           = "$toolsDir\PatchMyPC.exe"
      url            = 'https://patchmypc.net/freeupdater/PatchMyPC.exe'
      checksum       = '72c5cfe89a908d01066235775017206a94b6a2a2b5f08ee3925b712c1375d9ef'
      checksumType   = 'sha256'
    }
    
    Get-ChocolateyWebFile @packageArgs
    
    Install-ChocolateyPinnedItem $packageArgs.file
    
  • tools\helpers.ps1 Show
    function Install-ChocolateyPinnedItem {
      param(
        [Parameter(Mandatory = $true)]
        [ValidateNotNullOrEmpty()]
        [string]$target,
        [string]$taskbar
      )
    
      # We need to know the translation for the Explorer context-menu item for pinning an item to the start-menu or taskbar.
      # Be careful. Commands vary from Windows version to version. E.g. Win7 -> Startmenu; Win8 -> Start;
      # We need loose matching. So we want to match the action (Pin) and the target (Start(menu) or Task(bar)) separately.
    
      # Translations
      # PLEASE ADD LANGUAGES
      # or even better, figure out a way to pin items to start without using this MONSTROUS trick.
    
      # Pin (to start)
      $verbPin = @{}
      $verbPin['da-DK'] = "Fastgør"
      $verbPin['en-US'] = "Pin"
      $verbPin['fi-FI'] = "Kiinnitä"
      $verbPin['nb-NO'] = "Fest"
      $verbPin['nl-NL'] = "Vastmaken"
      $verbPin['sv-SE'] = "Fäst"
    
      # (Pin to) Start
      $verbStart = @{}
      $verbStart['da-DK'] = "Start"
      $verbStart['en-US'] = "Start"
      $verbStart['fi-FI'] = "Käynnistä"
      $verbStart['nb-NO'] = "Start"
      $verbStart['nl-NL'] = "Start"
      $verbStart['sv-SE'] = "Start"
    
      # (Pin to) Taskbar
      $verbTask = @{}
      $verbTask['da-DK'] = "Proceslinje"
      $verbTask['en-US'] = "Task"
      $verbTask['fi-FI'] = "Tehtävälkkiin"
      $verbTask['nb-NO'] = "Oppgavelinjen"
      $verbTask['nl-NL'] = "Taak"
      $verbTask['sv-SE'] = "Aktivitetsfältet"
    
      # Get Locale
      $locale = (get-culture).Name
      # Not sure if get-culture < Windows 8, better not use
    
      # Switch for Taskbar instead of Start
      if ($taskbar -eq "") {
        $verbAction = $verbStart
      } else {
        $verbAction = $verbTask
      }
    
      # Path exists?
      if (-not (test-path "$target")) {
        Write-Output "No such file: '$target'";
        exit
      }
    
      $pinned   = $false
      $path     = split-path "$target"
      $file     = split-path "$target" -leaf
      $explorer = new-object -com "Shell.Application"
      $folder   = $explorer.nameSpace($path)
      $item     = $folder.parseName($file)
      $options  = $item.Verbs()	# > $null # This will still output irrelevant warnings for certain context menu items such as github. How to I hide these?
    
      foreach ($option in $options) {
        $oName = $option.Name.Replace("&","")
    
        # Be careful. Commands vary from Windows version to version. E.g. Win7 -> Startmenu; Win8 -> Start;
        # We need loose matching.
        # WARNING - This trick might also cause UNpinning if $file was already pinned!
    
        # First, match Pin
        foreach ($vPin in $verbPin.values) {
          if ($oName -imatch $vPin) {
            # Second, match action (either Start or Task(bar))
            foreach ($vAction in $verbAction.values) {
              if ($oName -imatch $vAction) {
                # Write-Output "Locale detected: $($vAction.key)" # Don't know key in values-foreach
                Write-Output "Command detected: $oName"
                Write-Output "Executing '$oName' for '$target'"
                $option.DoIt()
                $pinned = $true
                break
              }
            }
            if ($pinned) { break }
          }
        }
      }
      if ($pinned) { Write-Output "Succesfully Pinned '$file'" }
      else { Write-Output "Could not pin '$file'" }
    }
    
  • tools\PatchMyPC.exe.GUI

Virus Scan Results

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Dependencies

Package Maintainer(s)

Software Author(s)

  • Patch My PC

Copyright

© 2017 Patch My PC

Tags

Release Notes

https://patchmypc.net/release-notes

Version History

Version Downloads Last updated Status
Patch my PC 4.1.0.0 170 Tuesday, August 21, 2018 approved
Patch my PC 4.0.1.5 484 Tuesday, April 10, 2018 approved
Patch my PC 4.0.1.4 204 Sunday, March 25, 2018 approved
Patch my PC 4.0.1.3 133 Thursday, March 22, 2018 approved
Patch my PC 4.0.0.7 531 Friday, March 9, 2018 approved
Patch my PC 4.0.0.6 164 Saturday, March 3, 2018 approved
Patch my PC 4.0.0.5 137 Wednesday, February 28, 2018 approved
Patch my PC 4.0.0.4 138 Sunday, February 25, 2018 approved
Patch my PC 4.0.0.3 97 Saturday, February 24, 2018 approved
Show More

Discussion for the Patch my PC Package

Ground rules:

  • This discussion is only about Patch my PC and the Patch my PC package. If you have feedback for Chocolatey, please contact the google group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or Patch my PC, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.

comments powered by Disqus
Chocolatey.org uses cookies to enhance the user experience of the site.
Ok