Browse Source

Fix repeating chocolatey cache location

master
GoFish 5 years ago
parent
commit
fdd8adba87
  1. 27
      windows_to_go.ps1

27
windows_to_go.ps1

@ -1,36 +1,39 @@
# Boxstarter script for my portable Windows To Go install # Boxstarter script for my portable Windows To Go install
# Workaround for https://github.com/chocolatey/boxstarter/issues/241
$cache = "--cacheLocation=`"$env:userprofile\AppData\Local\ChocoCache`""
# We don't have to always validate UAC during this script run # We don't have to always validate UAC during this script run
Disable-UAC Disable-UAC
# Ensure installing powershell modules don't prompt on needed dependencies # Ensure installing powershell modules don't prompt on needed dependencies
$ConfirmPreference = "None" $ConfirmPreference = "None"
# Upgrade chocolatey itself # Upgrade chocolatey itself
choco upgrade -y chocolatey choco upgrade -y $cache chocolatey
# Common dependencies # Common dependencies
choco upgrade -y dotnet3.5 choco upgrade -y $cache dotnet3.5
# Drivers # Drivers
choco upgrade -y nvidia-display-driver --version=425.31 --params "'/HDAudio'" # Latest version supporting the 670MX choco upgrade -y $cache nvidia-display-driver --version=425.31 --params "'/HDAudio'" # Latest version supporting the 670MX
# Utilities # Utilities
choco upgrade -y 7zip.install choco upgrade -y $cache 7zip.install
choco upgrade -y k-litecodecpackbasic choco upgrade -y $cache k-litecodecpackbasic
choco upgrade -y wiztree choco upgrade -y $cache wiztree
choco upgrade -y gnupg choco upgrade -y $cache gnupg
choco upgrade -y qtpass choco upgrade -y $cache qtpass
# Browser # Browser
choco upgrade -y firefox --params "/l:en-US /NoTaskbarShortcut /NoDesktopShortcut" choco upgrade -y $cache firefox --params "/l:en-US /NoTaskbarShortcut /NoDesktopShortcut"
choco upgrade -y setdefaultbrowser choco upgrade -y $cache setdefaultbrowser
SetDefaultBrowser HKLM Firefox-308046B0AF4A39CB SetDefaultBrowser HKLM Firefox-308046B0AF4A39CB
# Chat # Chat
choco upgrade -y discord choco upgrade -y $cache discord
# Games # Games
#choco upgrade -y leagueoflegendseuw --ignore-checksum #choco upgrade -y $cache leagueoflegendseuw --ignore-checksum
#Note: Battle.net needs to be manually installed! #Note: Battle.net needs to be manually installed!
# Install Microsoft updates # Install Microsoft updates

Loading…
Cancel
Save