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 Apr 16, 2019
1 parent cab5a4d commit ed56eab
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
@@ -1 +1 @@
"da5aeeba82c3121221ab52cd41f5e5ea-14"|10.5.36.23506
"7bb86c8359cb6ae35f69f371c5d76b0b-14"|10.5.37.24524
2 changes: 1 addition & 1 deletion automatic/origin/origin.nuspec
Expand Up @@ -3,7 +3,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
<metadata>
<id>origin</id>
<version>10.5.36.23506</version>
<version>10.5.37.24524</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
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 = 'D66D848C59A6813AC45DDF6B2B9ED60112B344EACB7CD3A23D1E13C6E1AE0B0ABD275C127EAE7C2C65AE9D440638377512C8DF200C02FCD3391E08165439846E'
checksum = 'D9274036AA43E61ACF188BFF778467B71C3F0675015CC195827DAF0B815029AFFB65E17050657490A52516F26E76E08D1A03BF445667ECEC0B126ABFF6711FF2'
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.36.23506'))
if ([Version]::Parse($InstalledVersion) -ge [Version]::Parse('10.5.37.24524'))
{
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.36.23506'
CreateRegistrySettings -installPath $packageArgs['destination'] -autoUpdate $false -version '10.5.37.24524'
}
else {
CreateRegistrySettings -installPath $packageArgs['destination'] -autoUpdate $true -version '10.5.36.23506'
CreateRegistrySettings -installPath $packageArgs['destination'] -autoUpdate $true -version '10.5.37.24524'
}

Get-ChocolateyUnzip @packageArgs
Expand Down

0 comments on commit ed56eab

Please sign in to comment.