diff --git a/automatic/ocenaudio.install/ocenaudio.install.nuspec b/automatic/ocenaudio.install/ocenaudio.install.nuspec index 9bad9326c9..84eedc0faa 100644 --- a/automatic/ocenaudio.install/ocenaudio.install.nuspec +++ b/automatic/ocenaudio.install/ocenaudio.install.nuspec @@ -3,7 +3,7 @@ ocenaudio.install - 3.14.11 + 3.16.0 https://github.com/chtof/chocolatey-packages/tree/master/automatic/ocenaudio.install chtof Ocenaudio (Install) diff --git a/automatic/ocenaudio.install/tools/chocolateyinstall.ps1 b/automatic/ocenaudio.install/tools/chocolateyinstall.ps1 index 35a2f4c228..5fb8453a40 100644 --- a/automatic/ocenaudio.install/tools/chocolateyinstall.ps1 +++ b/automatic/ocenaudio.install/tools/chocolateyinstall.ps1 @@ -4,10 +4,9 @@ $packageArgs = @{ packageName = $env:ChocolateyPackageName url64 = 'https://www.ocenaudio.com/downloads/index.php/ocenaudio_windows64.exe' - checksum64 = '3a8d80a904b37103ec03d0226acfa75addc287201e02def009cd0c7f32b57586' + checksum64 = '2CB8837B784A1F09127BE38D66B6C30F6E083CD00C68FAC76EDB90867E22A52F' checksumType64 = 'sha256' - - silentArgs = "/S" + silentArgs = "/allusers /S" } Install-ChocolateyPackage @packageArgs diff --git a/automatic/ocenaudio.install/tools/chocolateyuninstall.ps1 b/automatic/ocenaudio.install/tools/chocolateyuninstall.ps1 index 0b220d090a..be0d3c0c8d 100644 --- a/automatic/ocenaudio.install/tools/chocolateyuninstall.ps1 +++ b/automatic/ocenaudio.install/tools/chocolateyuninstall.ps1 @@ -4,15 +4,16 @@ $packageArgs = @{ packageName = $env:ChocolateyPackageName softwareName = 'ocenaudio' fileType = 'exe' - silentArgs = "/S" + silentArgs = "/AllUsers /S" } -$uninstalled = $false [array]$key = Get-UninstallRegistryKey -SoftwareName $packageArgs['softwareName'] if ($key.Count -eq 1) { $key | % { - $packageArgs['file'] = "$($_.UninstallString)" + $UninstallString = $key.UninstallString -split '"\s+' + $UninstallString[0] = $UninstallString[0] -replace '"','' + $packageArgs['file'] = "$($UninstallString[0])" Uninstall-ChocolateyPackage @packageArgs } } elseif ($key.Count -eq 0) { diff --git a/automatic/ocenaudio/ocenaudio.nuspec b/automatic/ocenaudio/ocenaudio.nuspec index 4d8c1ed352..46ddaf90a0 100644 --- a/automatic/ocenaudio/ocenaudio.nuspec +++ b/automatic/ocenaudio/ocenaudio.nuspec @@ -3,7 +3,7 @@ ocenaudio - 3.14.11 + 3.16.0 https://github.com/chtof/chocolatey-packages/tree/master/automatic/ocenaudio chtof Ocenaudio @@ -51,7 +51,7 @@ Advanced users will be surprised to find that the spectrogram settings are appli ![screenshot](https://cdn.jsdelivr.net/gh/chtof/chocolatey-packages/automatic/ocenaudio/screenshot.png) ]]> - +