Skip to content

Instantly share code, notes, and snippets.

@steelcowboy
Last active June 23, 2017 17:34
Show Gist options
  • Save steelcowboy/4897883fb25082248d64b2f64c782d0d to your computer and use it in GitHub Desktop.
Save steelcowboy/4897883fb25082248d64b2f64c782d0d to your computer and use it in GitHub Desktop.
Vivado chocolateyinstall.ps1
$ErrorActionPreference = 'Stop';
$packageName= $env:ChocolateyPackageName
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$fileLocation = '\\129.65.138.9\Software$\Xilinx\Xilinx Vivado\Xilinx_Vivado_SDK_2016.2\Xilinx_Vivado_SDK_2016.2_0605_1\Xilinx_Vivado_SDK_2016.2_0605_1\xsetup.exe'
$configFile = Join-Path $toolsDir 'install_config.txt'
$installOptions = "--agree XilinxEULA,3rdPartyEULA,WebTalkTerms --batch Install --config $configFile"
$packageArgs = @{
packageName = $packageName
unzipLocation = $toolsDir
fileType = 'EXE'
file = $fileLocation
softwareName = 'Vivado*'
checksum = '396DDAF8A140D982FED727BC71594E74B2FF6E239ADFB81BB6A4FE83ACFE8BAF'
checksumType = 'sha256'
validExitCodes= @(0, 3010, 1641)
silentArgs = $installOptions
}
Install-ChocolateyInstallPackage @packageArgs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment