Skip to content

Commit

Permalink
AU: 1 updated - origin
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
Chocolatey committed May 12, 2020
1 parent 6cdf4b8 commit ce06a8b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion automatic/origin/info
Original file line number Diff line number Diff line change
@@ -1 +1 @@
"879faa07d665462ed5913633c489dec1-29"|10.5.69.40136
"74582143acfcffe86a370f6b4876d73d-29"|10.5.70.40362
2 changes: 1 addition & 1 deletion automatic/origin/origin.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
<metadata>
<id>origin</id>
<version>10.5.69.40136</version>
<version>10.5.70.40362</version>
<packageSourceUrl>https://github.com/AdmiringWorm/chocolatey-packages/tree/master/automatic/origin</packageSourceUrl>
<owners>AdmiringWorm, thaiphan</owners>
<title>Origin</title>
Expand Down
8 changes: 4 additions & 4 deletions automatic/origin/tools/chocolateyInstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ $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 = '3F2A2588EEA43F81F404960FDAF161D7A3C8B7DA23FB270ABBDEB334A372320CA0C33F630E6797261CF73739C1A91E20571FC7EBA32A5C5C7B6BE11C81DE6C85'
checksum = '6C3FC31341A69BF347D65A14DF3C26D3D0D5E49A46FFF737E2EB19FB70BD02094553A5680B7B566F1E87658C7194F2B167FD00E60522ACEA1B03820A6A529E2C'
checksumType = 'sha512'
destination = Get-PackageCacheLocation
}
Expand All @@ -16,7 +16,7 @@ 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.69.40136'))
if ([Version]::Parse($InstalledVersion) -ge [Version]::Parse('10.5.70.40362'))
{
Write-Host "Skipping installation because version $InstalledVersion is already installed."
return
Expand All @@ -35,10 +35,10 @@ $packageArgs['file'] = $zipFile
$packageArgs['destination'] = GetInstallLocation $pp

if ($pp.NoAutoUpdate) {
CreateRegistrySettings -installPath $packageArgs['destination'] -autoUpdate $false -version '10.5.69.40136'
CreateRegistrySettings -installPath $packageArgs['destination'] -autoUpdate $false -version '10.5.70.40362'
}
else {
CreateRegistrySettings -installPath $packageArgs['destination'] -autoUpdate $true -version '10.5.69.40136'
CreateRegistrySettings -installPath $packageArgs['destination'] -autoUpdate $true -version '10.5.70.40362'
}

Get-ChocolateyUnzip @packageArgs
Expand Down

0 comments on commit ce06a8b

Please sign in to comment.