$ChocoInstallPath = "$env:SystemDrive\Chocolatey\bin" # Put chocolatey on the MACHINE path, vagrant does not have access to user environment variables $envPath = $env:PATH if (!$envPath.ToLower().Contains($ChocoInstallPath.ToLower())) { Write-Host "PATH environment variable does not have `'$ChocoInstallPath`' in it. Adding..." $ActualPath = [Environment]::GetEnvironmentVariable('Path', [System.EnvironmentVariableTarget]::Machine) $StatementTerminator = ";" $HasStatementTerminator = $ActualPath -ne $null -and $ActualPath.EndsWith($StatementTerminator) If (!$HasStatementTerminator -and $ActualPath -ne $null) {$ChocoInstallPath = $StatementTerminator + $ChocoInstallPath} if (!$ChocoInstallPath.EndsWith($StatementTerminator)) {$ChocoInstallPath += $StatementTerminator} [Environment]::SetEnvironmentVariable('Path', $ActualPath + $ChocoInstallPath, [System.EnvironmentVariableTarget]::Machine) } $env:Path += ";$ChocoInstallPath" if (!(Test-Path $ChocoInstallPath)) { # Install chocolatey iex ((new-object net.webclient).DownloadString('http://chocolatey.org/install.ps1')) } # cinst wget java.jdk # cinst java.jdk -params 'x64=false' # $resourcesPath = 'c:\vagrantshared\resources' # $chocoPkgFile = get-childitem $resourcesPath -recurse -include 'chocolatey.*.nupkg' | select -First 1 # if ($chocoPkgFile -ne $null) { # cinst chocolatey -pre -force -source "$resourcesPath" # } else { # cinst chocolatey -pre # }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#5 | 25620 | Jen Bottom | Copy up from dev to main | ||
#4 | 25032 | Jen Bottom | Creating the 'moddern_ie' folder, for the Microsoft created Vagrant box | ||
#3 | 25031 | Jen Bottom | Resorecting older versions of the Windows boxes based on Microsoft Vagrant images, to see if they resolve the audio issue | ||
#2 | 24911 | Jen Bottom |
Integrating changes to Windows10 setup from dev to main. Currently Audio is very choppy with NVDA. Unsure if this is a issue with drivers, VirtualBox, my environment... |
||
#1 | 24041 | Jen Bottom | Integrating changes to Windows scripts layout and Windows box changes to main | ||
//guest/jen_bottom/vagrant/windows/install_chocolatey.ps1 | |||||
#1 | 18706 | jenbottom | Moving some files aroudn to make things less messy and hopefully easier to find | ||
//guest/jen_bottom/vagrant/install_chocolatey.ps1 | |||||
#1 | 18023 | jenbottom | Adding the scripts to install chocolaty on the windows VM |