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 Sep 9, 2020
1 parent ef6bca7 commit f9c63aa
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 @@
"48a371c74c7807681c727cd2486a5dfc-29"|10.5.82.43225
"419e4a0cf1cc0be741e81ae21000cb69-29"|10.5.83.43781
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.82.43225</version>
<version>10.5.83.43781</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 = '70A6423A2B8CB8B3671AAF0550915C032DE0F9EF0FBC06FE1EF8B043C3E46443FF22DFB761D7EB3BCF3F34858BD5E69560E88217DD3CD26B9786611570DFD48E'
checksum = 'FA5FFED972FCBAD11C7E79852DAC5DD8D6A10A1F3C903DFC8211EDEDA3BD448308BC2E9220CEAFBB4825DDDCE11A87EE5A7C162132F37FAD9B9093F2E0EE1870'
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.82.43225'))
if ([Version]::Parse($InstalledVersion) -ge [Version]::Parse('10.5.83.43781'))
{
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.82.43225'
CreateRegistrySettings -installPath $packageArgs['destination'] -autoUpdate $false -version '10.5.83.43781'
}
else {
CreateRegistrySettings -installPath $packageArgs['destination'] -autoUpdate $true -version '10.5.82.43225'
CreateRegistrySettings -installPath $packageArgs['destination'] -autoUpdate $true -version '10.5.83.43781'
}

Get-ChocolateyUnzip @packageArgs
Expand Down

0 comments on commit f9c63aa

Please sign in to comment.