-
Notifications
You must be signed in to change notification settings - Fork 371
/
chocolateyInstall.ps1
22 lines (18 loc) · 1.05 KB
/
chocolateyInstall.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$ErrorActionPreference = 'Stop'
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$packageArgs = @{
packageName = 'mattermost-desktop'
fileType = 'msi'
file = "$toolsDir\mattermost-desktop-5.0.3-x86.msi"
file64 = "$toolsDir\mattermost-desktop-5.0.3-x64.msi"
checksum = 'E721013B9D4DAD8BFB5C746CEAAB5EAE0667C4841488EEB08E92DF2611D41C45'
checksum64 = '40FC234CBA9898E583F44563DE3B48292872CC8D9AE843C3876A0576A1D2C7BC'
checksumType = 'sha256'
checksumType64 = 'sha256'
silentArgs = "/qn /norestart /l*v `"$($env:TEMP)\$($packageName).$($env:chocolateyPackageVersion).MsiInstall.log`""
validExitCodes = @(0, 3010, 1641)
softwareName = 'Mattermost*'
}
Install-ChocolateyInstallPackage @packageArgs
# Lets remove the installer and ignore files as there is no more need for them
Get-ChildItem $toolsDir\*.msi | ForEach-Object { Remove-Item $_ -ea 0; if (Test-Path $_) { Set-Content "$_.ignore" '' } }