1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
Write-Host Did not detect Kodi install start-sleep -s 5 cls Write-host Running script for the first time -ForegroundColor Yellow -BackgroundColor Black start-sleep -s 5 cls Write-Host Elevating Script Window -ForegroundColor Yellow -BackgroundColor Black start-sleep -s 5 #Main Script Write-Host Unblock the PS1 file -ForegroundColor Yellow -BackgroundColor Black unblock-file \\newton\NETLOGON\Scripts\Chocolatey_Install.ps1 Start-Sleep -s 5 clear write-Host Killing Explorer.exe -foregroundColor Yellow -BackgroundColor Black cmd /c taskkill /IM explorer.exe /f start-sleep -s 5 clear write-host Start install Chocolatey/ Check to see if there are any updates -ForegroundColor Yellow -BackgroundColor Black iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1')) start-sleep -s 5 clear Write-Host ~~~~~~~~~~~~~~~ -ForegroundColor Black -BackgroundColor Green Write-Host ~~ Completed ~~ -ForegroundColor Black -BackgroundColor Green Write-Host ~~~~~~~~~~~~~~~ -ForegroundColor Black -BackgroundColor Green start-sleep -s 5 #Install required Mediacenter Apps Write-Host Installing MediaCenter applications -ForegroundColor Yellow -BackgroundColor Black Start-Sleep -s 5 Write-Host Kodi -ForegroundColor Yellow -BackgroundColor Black start-sleep -s 2 choco install kodi --force -y Clear Write-Host K-Lite Codec -ForegroundColor Yellow -BackgroundColor Black Start-Sleep -s 2 #choco install k-litecodecpackfull --force -y Clear Write-Host VLC -ForegroundColor Yellow -BackgroundColor Black Start-Sleep -s 2 #choco install vlc --force -y Clear Write-Host ~~~~~~~~~~~~~~~ -ForegroundColor Black -BackgroundColor Green Write-Host ~~ Completed ~~ -ForegroundColor Black -BackgroundColor Green Write-Host ~~~~~~~~~~~~~~~ -ForegroundColor Black -BackgroundColor Green Start-Sleep -s 5 cls #Starting Kodi Write-Host Initial script has been installed -ForegroundColor Yellow -BackgroundColor Black start-sleep -s 3 cls Write-Host Running Kodi -ForegroundColor Yellow -BackgroundColor Black Start-Sleep -s 2 start-process "C:\Program Files (x86)\Kodi\Kodi.exe" Clear Write-Host Waiting 5 seconds before exit -ForegroundColor Yellow -BackgroundColor Black exit |