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

Origin

10.5.36.23506

Package test results are passing.

This package was approved as a trusted package on 3/19/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

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

C:\> choco upgrade origin

Files

Hide
  • 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     = 'D66D848C59A6813AC45DDF6B2B9ED60112B344EACB7CD3A23D1E13C6E1AE0B0ABD275C127EAE7C2C65AE9D440638377512C8DF200C02FCD3391E08165439846E'
      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.36.23506'))
        {
          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.36.23506'
    }
    else {
      CreateRegistrySettings -installPath $packageArgs['destination'] -autoUpdate $true -version '10.5.36.23506'
    }
    
    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" }
      }
    }
    
  • tools\chocolateyBeforeModify.ps1 Show
    $ErrorActionPreference = 'Stop'
    
    Get-Process -Name 'OriginWebHelperService' -ErrorAction SilentlyContinue | Stop-Process -Force
  • tools\.skipAutoUninstaller

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.35.22222 1463 Tuesday, February 26, 2019 approved
Origin 10.5.34.21025 2874 Thursday, January 24, 2019 approved
Origin 10.5.34.20908 154 Wednesday, January 23, 2019 approved
Origin 10.5.33.19463 905 Tuesday, January 8, 2019 approved
Origin 10.5.32.18460 1565 Wednesday, December 12, 2018 approved
Origin 10.5.31.17411 840 Wednesday, November 28, 2018 approved
Origin 10.5.30.15625 1113 Tuesday, October 30, 2018 approved
Origin 10.5.29.14153 697 Tuesday, October 16, 2018 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