kolibrios-gcc-toolchain/chocolatey/tools/chocolateyInstall.ps1

15 lines
666 B
PowerShell

#NOTE: Please remove any commented lines to tidy up prior to releasing the package, including this one
$packageName = 'kos32-gcc' # arbitrary name for the package, used in messages
$validExitCodes = @(0) #please insert other valid exit codes here, exit codes for ms http://msdn.microsoft.com/en-us/library/aa368542(VS.85).aspx
# main helpers - these have error handling tucked into them already
# installer, will assert administrative rights
Install-ChocolateyPackage "$packageName" -validExitCodes $validExitCodes
$INSTALL_PATH = Read-Host 'Path to install toolchain(Enter - default)'
.\install.ps1 -InstallPath $INSTALL_PATH
$env:KOS32GCCPATH = $INSTALL_PATH