-
Notifications
You must be signed in to change notification settings - Fork 372
/
chocolateyInstall.ps1
23 lines (21 loc) · 1001 Bytes
/
chocolateyInstall.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$ErrorActionPreference = 'Stop'
if ([System.Environment]::OSVersion.Version -lt (new-object 'Version' 10, 0, 14393)) {
$packageName = 'smartftp'
$errorMessage = 'Your Windows version is not suitable for this package. This package is only for Windows 10 Version 1607 or higher'
Write-Output $packageName $errorMessage
throw $errorMessage
}
$packageArgs = @{
packageName = 'smartftp'
fileType = 'msi'
url = 'https://www.smartftp.com/get/SmartFTP86.msi'
url64bit = 'https://www.smartftp.com/get/SmartFTP64.msi'
checksum = '9ad181aa760e5feaf19a653f29fae3b2b5e891a47b8a4ab8d6edb166351b00c1'
checksum64 = 'da8afc03096b7cae7c28f7eee2aca61276b81c16ab346d0daeb78f983389e9bc'
checksumType = 'sha256'
checksumType64 = 'sha256'
silentArgs = '/quiet'
validExitCodes = @(0)
softwareName = 'SmartFTP Client'
}
Install-ChocolateyPackage @packageArgs