Skip to content

Commit

Permalink
AU: 1 updated - origin
Browse files Browse the repository at this point in the history
  • Loading branch information
Chocolatey committed Jan 25, 2020
1 parent 839b19c commit b9ecd16
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 @@
"621733862a7c02a78434d49a897c0a89-29"|10.5.59.36848
"ded6d97e00666dbaf3bc885c9d6dbb46-29"|10.5.60.37244
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.59.36848</version>
<version>10.5.60.37244</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 = 'A264807C866B8ADBCB4460C2A884788F5FFEB77A697BB6470A058F656D2509A8651A72E0D1153D1111C8A2F45D45E77B67F0F4717B501BB0EA8976041DBF77D4'
checksum = '243F9A74F70A5BF1192CCE28A38791473F8791CDDCDA77814E842AEFC7262F54CDE91F24B7190BD0E0926A320885B69F28727242693CE9660C5E391B19E96274'
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.59.36848'))
if ([Version]::Parse($InstalledVersion) -ge [Version]::Parse('10.5.60.37244'))
{
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.59.36848'
CreateRegistrySettings -installPath $packageArgs['destination'] -autoUpdate $false -version '10.5.60.37244'
}
else {
CreateRegistrySettings -installPath $packageArgs['destination'] -autoUpdate $true -version '10.5.59.36848'
CreateRegistrySettings -installPath $packageArgs['destination'] -autoUpdate $true -version '10.5.60.37244'
}

Get-ChocolateyUnzip @packageArgs
Expand Down

0 comments on commit b9ecd16

Please sign in to comment.