Notices: This section not yet converted to new layout. Download stats are rolling back out.

This is not the latest version of Origin available.

Origin

10.5.35.22222

Package test results are passing.

This package was approved as a trusted package on 2/26/2019.

Origin is an online gaming, digital distribution and digital rights management (DRM) platform developed by Electronic Arts that allows users to purchase games on the internet for PC and mobile platforms, and download them with the Origin client (formerly EA Download Manager, EA Downloader and EA Link).

Origin contains social features such as profile management, networking with friends with chat and direct game joining along with an in-game overlay, streaming via TwitchTV and sharing of game library and community integration with networking sites like Facebook, Xbox Live, PlayStation Network, and Nintendo Network.

Package Parameters

  • /NoAutoUpdate - Disable the auto updating of the origin client. NOTE: May also disable auto updating of installed games, but that is not tested
  • /InstallDir: - Select the location to where the origin client should be installed (Defaults to C:\Program Files\Origin (32bit), C:\Program Files (x86)\Origin (64bit), or the previously installed location)
  • /LaunchOrigin - Start Origin Client after installation
  • /StartOrigin - Alias for /LaunchOrigin
  • /NoStartMenuIcon - Don't create a shortcut on the start menu
  • /DesktopIcon - Create a shortcut on the desktop

To install Origin, run the following command from the command line or from PowerShell:

C:\> choco install origin --version 10.5.35.22222

To upgrade Origin, run the following command from the command line or from PowerShell:

C:\> choco upgrade origin --version 10.5.35.22222

Files

Hide
  • tools\.skipAutoUninstaller
  • tools\chocolateyBeforeModify.ps1 Show
    $ErrorActionPreference = 'Stop'
    
    Get-Process -Name 'OriginWebHelperService' -ErrorAction SilentlyContinue | Stop-Process -Force
  • tools\chocolateyInstall.ps1 Show
    $ErrorActionPreference = 'Stop'
    
    $toolsDir = Split-Path -Parent $MyInvocation.MyCommand.Definition
    . "$toolsDir\helpers.ps1"
    
    $packageArgs = @{
      packageName  = $env:ChocolateyPackageName
      url          = 'https://download.dm.origin.com/origin/live/OriginSetup.exe'
      softwareName = 'Origin*' # Probably not needed, but we add registry keys so we keep it
      checksum     = '261FABF7A1E56DC9F8280C6A6C87C5A48B1D02D3D665FF3416104F44C8A903EBE804609F406F7CB53ACE968E1CB3D46667492F6F77AA95692C14D3D54F53C1AA'
      checksumType = 'sha512'
      destination  = Get-PackageCacheLocation
    }
    
    if ($env:ChocolateyForce -ne $true) {
      try {
        $InstalledVersion = Get-UninstallRegistryKey $packageArgs['softwareName'] | Select-Object -First 1 -Expand 'DisplayVersion'
    
        if ([Version]::Parse($InstalledVersion) -ge [Version]::Parse('10.5.35.22222'))
        {
          Write-Host "Skipping installation because version $InstalledVersion is already installed."
          return
        }
      } catch {
        # Installed version couldn't be checked, attempt installation
      }
    }
    
    Install-ChocolateyZipPackage @packageArgs
    
    $pp = Get-PackageParameters
    $zipFile = Get-ChildItem "$($packageArgs['destination'])" "*.zip" -Recurse | Select-Object -first 1 -expand FullName
    $packageArgs['file'] = $zipFile
    $packageArgs['destination'] = GetInstallLocation $pp
    
    if ($pp.NoAutoUpdate) {
      CreateRegistrySettings -installPath $packageArgs['destination'] -autoUpdate $false -version '10.5.35.22222'
    }
    else {
      CreateRegistrySettings -installPath $packageArgs['destination'] -autoUpdate $true -version '10.5.35.22222'
    }
    
    Get-ChocolateyUnzip @packageArgs
    
    CreateShortcuts -pp $pp -installDir $packageArgs['destination']
    
    if ($pp.LaunchOrigin -or $pp.StartOrigin) {
      $exe = "$($packageArgs["destination"])\Origin.exe"
      Start-Process $exe
    }
    
  • tools\chocolateyUninstall.ps1 Show
    $ErrorActionPreference = 'Stop'
    $toolsDir = Split-Path -Parent $MyInvocation.MyCommand.Definition
    . "$toolsDir\helpers.ps1"
    
    $packageArgs = @{
      packageName    = $env:ChocolateyPackageName
      softwareName   = 'Origin*'
      fileType       = 'exe'
      silentArgs     = '/noUpdate /uninstall /silent'
      validExitCodes = @(0)
    }
    
    $uninstalled = $false
    
    [array]$key = Get-UninstallRegistryKey @packageArgs
    
    if ($key.Count -eq 1) {
      $key | ForEach-Object {
        $packageArgs['file'] = "$($_.UninstallString)"
    
        Uninstall-ChocolateyPackage @packageArgs
      }
    }
    elseif ($key.Count -eq 0) {
      Write-Warning "$packageName has already been uninstalled by other means."
    }
    elseif ($key.Count -gt 1) {
      Write-Warning "$($key.Count) matches found!"
      Write-Warning "To prevent accidental data loss, no programs will be uninstalled."
      Write-Warning "Please alert the package maintainer that the following keys were matched:"
      $key | ForEach-Object { Write-Warning "- $($_.DisplayName)" }
    }
    
    RemoveShortcuts
    
  • tools\helpers.ps1 Show
    function GetInstallLocation() {
      param($pp)
    
      # First check if origin is already installed
      $installPath = GetInstallLocationFromRegistry
    
      if ($installPath) { return $installPath }
      elseif ($pp.InstallDir) { return $pp.InstallDir }
      elseif (Get-OSArchitectureWidth -Compare 32) { return "C:\Program Files\Origin" }
      else { return "C:\Program Files (x86)\Origin" }
    }
    
    function GetInstallLocationFromRegistry() {
      $key = Get-UninstallRegistryKey -SoftwareName 'Origin' | Select-Object -first 1
    
      if ($key) {
        return $key.InstallLocation
      }
    }
    
    function CreateRegistrySettings() {
      param([string]$installPath, [bool]$autoUpdate, [string]$version)
      if ($installPath.EndsWith('\')) {
        $installPath = $installPath.TrimEnd('\')
      }
    
      $originSettings = @{
        AutopatchGlobal   = 'true'
        Autoupdate        = if ($autoUpdate) { 'true' } else { 'false' }
        ClientPath        = "$installPath\Origin.exe"
        ClientVersion     = $version
        InstallSuccesfull = 'true'
        IsBeta            = 'false'
        TelemOO           = 'false'
      }
    
      $uninstallSettings = @{
        DisplayIcon     = "$installPath\OriginUninstall.exe"
        DisplayName     = 'Origin'
        DisplayVersion  = $version
        InstallLocation = $installPath
        Publisher       = 'Electronic Arts, Inc.'
        UninstallString = "$installPath\OriginUninstall.exe"
        URLInfoAbout    = 'http://www.ea.com'
      }
    
      if (Get-OSArchitectureWidth -Compare 32) {
        $originRegPath = 'HKLM:\SOFTWARE\Origin'
        $uninstallRegPath = 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Origin'
      }
      else {
        $originRegPath = 'HKLM:\SOFTWARE\WOW6432Node\Origin'
        $uninstallRegPath = 'HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Origin'
      }
    
      if (!(Test-Path $originRegPath)) {
        New-Item -Path $originRegPath -Force | Out-Null
      }
      if (!(Test-Path $uninstallRegPath)) {
        New-Item -Path $uninstallRegPath -Force | Out-Null
      }
    
      Write-Host "Creating/Updating Origin Client registry settings..."
      $originSettings.Keys | ForEach-Object {
        New-ItemProperty -Path $originRegPath -Name $_ -Value $originSettings[$_] -Force | Out-Null
      }
    
      Write-Host "Creating/Updating Origin Client uninstall registry settings..."
      $uninstallSettings.Keys | ForEach-Object {
        New-ItemProperty -Path $uninstallRegPath -Name $_ -Value $uninstallSettings[$_] -Force | Out-Null
      }
    }
    
    function CreateShortcuts() {
      param($pp, $installDir)
    
      $originExec = Resolve-Path "$installDir/origin.exe"
    
      if (!($pp.NoStartMenuIcon)) {
        $startMenu = [System.Environment]::GetFolderPath('CommonPrograms')
        $link = "$startMenu\Origin.lnk"
    
        Write-Host "Creating Origin Start Menu shortcut..."
        Install-ChocolateyShortcut -ShortcutFilePath $link -TargetPath $originExec
      }
    
      if ($pp.DesktopIcon) {
        $desktop = [System.Environment]::GetFolderPath("CommonDesktop")
        $link = "$desktop\Origin.lnk"
    
        Write-Host "Creating Origin Desktop shortcut..."
        Install-ChocolateyShortcut -ShortcutFilePath $link -TargetPath $originExec
      }
    }
    
    function RemoveShortcuts() {
      @(
        [System.Environment]::GetFolderPath('CommonPrograms')
        [System.Environment]::GetFolderPath('CommonDesktop')
      ) | ForEach-Object {
        if (Test-Path "$_\Origin.lnk") { Remove-Item -Force "$_\Origin.lnk" }
      }
    }
    

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)

  • Electronic Arts

Copyright

© 2017 Electronic Arts Inc.

Tags

Release Notes

Package Changelog

Version History

Version Downloads Last updated Status
Origin 10.5.45.29542 1778 Tuesday, August 20, 2019 approved
Origin 10.5.44.29072 1161 Thursday, August 8, 2019 approved
Origin 10.5.43.28287 868 Tuesday, July 16, 2019 approved
Origin 10.5.42.27950 2072 Tuesday, July 9, 2019 approved
Origin 10.5.41.27263 1442 Tuesday, June 18, 2019 approved
Origin 10.5.40.26928 1078 Saturday, June 1, 2019 approved
Origin 10.5.39.26720 1428 Thursday, May 30, 2019 approved
Origin 10.5.38.26728 314 Tuesday, May 28, 2019 approved
Origin 10.5.38.25027 2046 Wednesday, April 24, 2019 approved
Show More

Discussion for the Origin Package

Ground rules:

  • This discussion is only about Origin and the Origin 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 Origin, 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