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 Oct 10, 2018
1 parent 9767087 commit 758606f
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 @@
"34c78d3e28f7bab7288e0ac3983c392f-28"|10.5.27.11381
"a94dffefbda5808fcc5a1636abdd8791-28"|10.5.28.13288
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.27.11381</version>
<version>10.5.28.13288</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 = '6DBA9A87A7F02C8430B0D79438F4473FF04D0A724EE9105A1B518343D2330BEF5528FE0A22B89DC622E2B6232F52B03F6D3CF60D8377D78AE6A7A80F7174AEFC'
checksum = 'A1BED7EC3748093C6C31E1082C5441684A2AB766F253EF20DB56426505CBF189BF459C0DB794EE553B5296A7D1443C3FD1CA6CE6FBEBCDBEC94562C0C423282C'
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.27.11381'))
if ([Version]::Parse($InstalledVersion) -ge [Version]::Parse('10.5.28.13288'))
{
Write-Host "Skipping installation because version $InstalledVersion is already installed."
return
Expand All @@ -34,10 +34,10 @@ $packageArgs['file'] = $zipFile
$packageArgs['destination'] = GetInstallLocation $pp

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

Get-ChocolateyUnzip @packageArgs
Expand Down

0 comments on commit 758606f

Please sign in to comment.