Created
August 31, 2025 01:34
-
-
Save tsuyoshicho/6d08032ebc919e53b3f31ac5c2eadf07 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| setlocal | |
| REM need sudo call | |
| REM require | |
| REM choco | |
| REM note:self upgrade | |
| choco upgrade -y chocolatey | |
| REM note:specific upgrade for need pre upgrade pkg:git with args | |
| choco upgrade -y git --params "'/GitAndUnixToolsOnPath /WindowsTerminal /NoShellIntegration'" | |
| REM choco upgrade -y git.install --params "'/GitAndUnixToolsOnPath /WindowsTerminal /NoShellIntegration'" | |
| REM note:specific upgrade for need pre upgrade pkg:gpg4win | |
| choco upgrade -y gpg4win --params "/Config:%~dp0gpg4win.ini" | |
| REM note:specific upgrade with param; if params need package,upgrade unique | |
| REM some tools: enable if need(pandoc, cmake, languages: default enable) | |
| REM VirtualBox: home only add "/ExtensionPack" (Commercial use need fee) | |
| choco upgrade -y virtualbox --params "/NoDesktopShortcut /NoQuickLaunch /NoPath /ExtensionPack" | |
| REM choco upgrade -y fastcopy.install --params "'/NoSubs'" | |
| REM choco upgrade -y openssh --params "'/SSHServerFeature'" | |
| choco upgrade -y pandoc --ia "'ALLUSERS=1'" | |
| choco upgrade -y cmake --ia "'ADD_CMAKE_TO_PATH=System ALLUSERS=1'" | |
| REM choco upgrade -y cmake.install --ia "'ADD_CMAKE_TO_PATH=System ALLUSERS=1'" | |
| REM VisualStudio tool | |
| REM visualstudio2017-workload-nativedesktop called(no visualstudio2017buildtools called) | |
| REM choco upgrade -y visualstudio2017buildtools --params "'--allWorkloads --includeRecommended --includeOptional --passive --locale ja-JP'" | |
| REM PDF-XChange Editor | |
| REM choco upgrade -y pdfxchangeeditor --params "'/NoUpdater /NoViewInBrowsers /NoSetAsDefault'" | |
| REM msys2,perl,ruby | |
| choco upgrade -y msys2 --params '"/NoUpdate /InstallDir:C:\tools\msys2"' | |
| choco upgrade -y strawberryperl --ia "'INSTALLDIR=C:\tools\perl'" | |
| choco upgrade -y ruby --params '"/InstallDir:C:\tools\ruby"' | |
| REM choco upgrade -y ruby.install --params '"/InstallDir:C:\tools\ruby"' | |
| REM Python: current version | |
| REM Normally usage: First install the version specified version with an argument. Upgrade python3 OK(depend python3x use pre-installed argument value) | |
| REM choco install -y python3x --params '"/NoLockdown /InstallDir:C:\tools\python3"' | |
| choco upgrade -y python3 | |
| REM Python: version specific | |
| REM Use pyenv-win package for multi-version, see Windows/env.md | |
| REM vim | |
| REM choco upgrade -y vim-tux --params '"/InstallPopUp /RestartExplorer"' | |
| REM choco upgrade -y vim-tux.install --params '"/InstallPopUp /RestartExplorer"' | |
| choco upgrade -y vim --params '"/RestartExplorer /NoDefaultVimrc /InstallDir:C:\tools"' | |
| REM VSCode | |
| choco upgrade -y vscode --params "/NoQuicklaunchIcon /NoContextMenuFiles /NoContextMenuFolders /DontAssociateWithFiles" | |
| REM choco upgrade -y vscode.install --params "/NoQuicklaunchIcon /NoContextMenuFiles /NoContextMenuFolders /DontAssociateWithFiles" | |
| REM note:last all update | |
| choco upgrade -y all --except="'chocolatey,git,git.install,gpg4win,virtualbox,pandoc,cmake,cmake.install,msys2,strawberryperl,ruby,ruby.install,python3,python38,python39,python310,python311,python312,python313,vim,vscode,vscode.install'" | |
| :end | |
| endlocal | |
| REM wait for key or timeout (300sec), and no message | |
| %SYSTEMROOT%\system32\timeout.exe /t 300 > nul | |
| exit /b 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment