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 Jul 12, 2018
1 parent 7dc4478 commit 1492b05
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 @@
"e999a22d84df76b37fc9ea9fc0d2eec1-28"|10.5.20.63112
"12bb6d5731bf518fd5d48f48f970a8be-14"|10.5.22.1331
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.20.63112</version>
<version>10.5.22.1331</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 = '307E26FADDAC47BC3364C39974B09E571F4962988EC37A3C265919BA7DAB5425A54B79BB91A0A83EAFC2783D1DA49F56270096F6CBA479086F0510FB7F90259E'
checksum = 'F1CB0020DA0C8D9CD56F2B2CF65BF430E6DB861CD80546CC46F3E5BA9616B35A7BC3A0154EFF9B9162A337B2E376D9024CE6770A8DBD78DFEA89FC61C4BEE63C'
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.20.63112'))
if ([Version]::Parse($InstalledVersion) -ge [Version]::Parse('10.5.22.1331'))
{
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.20.63112'
CreateRegistrySettings -installPath $packageArgs['destination'] -autoUpdate $false -version '10.5.22.1331'
}
else {
CreateRegistrySettings -installPath $packageArgs['destination'] -autoUpdate $true -version '10.5.20.63112'
CreateRegistrySettings -installPath $packageArgs['destination'] -autoUpdate $true -version '10.5.22.1331'
}

Get-ChocolateyUnzip @packageArgs
Expand Down

0 comments on commit 1492b05

Please sign in to comment.