Skip to content

Commit da345e3

Browse files
Update for latest chocolatey release
The current chocolatey release has removed the long-deprecated `Write-ChocolateySuccess` and `Write-ChocolateyFailure` functions. chocolatey/choco#2469
1 parent 8c98337 commit da345e3

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,10 @@
11
$package = 'AWSTools.Powershell'
22

3-
try {
4-
$params = @{
5-
packageName = $package;
6-
fileType = 'msi';
7-
silentArgs = '/quiet';
8-
url = 'http://sdk-for-net.amazonwebservices.com/latest/AWSToolsAndSDKForNet.msi';
9-
}
10-
11-
Install-ChocolateyPackage @params
12-
Write-ChocolateySuccess $package
13-
} catch {
14-
Write-ChocolateyFailure $package "$($_.Exception.Message)"
15-
throw
3+
$params = @{
4+
packageName = $package;
5+
fileType = 'msi';
6+
silentArgs = '/quiet';
7+
url = 'http://sdk-for-net.amazonwebservices.com/latest/AWSToolsAndSDKForNet.msi';
168
}
9+
10+
Install-ChocolateyPackage @params

0 commit comments

Comments
 (0)