-
Notifications
You must be signed in to change notification settings - Fork 1
choco batch install or upgrade
Atiq Rahman edited this page Oct 1, 2025
·
23 revisions
- Remember updating Vars,
$Env:ChocolateyToolsLocation, remove cpe_client and add chocolatey URL - Set choco install dir (might be)
- now, taken care of by (prev: Init-App choco)
StartX pwshpowershell upgrade,
- open legacy powershell and run,
.\Init-App.ps1 chocochoco install powershell-core --install-args "'INSTALLFOLDER=C:\PFiles_x64\choco\pwsh`
ADD_FILE_CONTEXT_MENU_RUNPOWERSHELL=0 ADD_EXPLORER_CONTEXT_MENU_OPENPOWERSHELL=0 REGISTER_MANIFEST=1`
ENABLE_PSREMOTING=0'"`
--packageparameters '"/CleanUpPath"' --confirmcmds in batch,
# additionally, supports following args,
# --verbose, --force etc.
# Install
# dotnetcore-sdk: tried and failed /D, /DIR, /TargetDir
# check non-choco custom install
# Most Frequent List
# VS Codium Stable
choco upgrade vscodium.install --params "/NoDesktopIcon /NoQuicklaunchIcon /DontAddToPath`
/NoContextMenuFiles /NoContextMenuFolders" --install-args "'/DIR=C:\PFiles_x64\choco\Codium'"`
--confirm
AppPathReg Update Codium "$PFilesX64Dir\Codium\VSCodium.exe"
# VS Code Insiders, for ref
# choco upgrade vscode-insiders --params "/NoDesktopIcon /NoQuicklaunchIcon /DontAddToPath`
/NoContextMenuFiles /NoContextMenuFolders" --install-args "'/DIR=C:\PFiles_x64\choco\VSCode'"`
--confirm
# AppPathReg Update Code "$PFilesX64Dir\VSCode\Code - Insiders.exe"
choco upgrade git.install --params="'/NoAutoCrlf /WindowsTerminal /NoShellIntegration`
/NoGuiHereIntegration /SChannel /NoCredentialManager'" --installarguments `
"'/DIR=C:\PFiles_x64\choco\git'" --confirm
# sysinternals: contains both 32 bit and 64 bit binaries
choco upgrade sysinternals --params "/InstallDir:C:\PFiles_x86\choco\SysInt" --confirm
# golang
choco install --install-arguments="INSTALLDIR=C:\PFiles_x64\choco\go" golang
choco upgrade keepass --install-args "'/DIR=C:\PFiles_x64\choco\keepass'" --confirm
# still 32 bit, check dropbox paper
choco upgrade mediainfo-cli --install-args "'/D=C:\PFiles_x86\choco\MediaInfo'" --confirm
choco upgrade mediainfo --install-args "'/D=C:\PFiles_x86\choco\MediaInfo'" --confirm
# teams (exe created by the msi, no custom install dir arg works)
choco install microsoft-teams --confirm
# fixed by Ginko, http://disq.us/p/24sbtr5 now it's 64 bit
# Open Source on github; regularly updated, supersedes DiffMerge
choco upgrade winmerge --install-args "'/DIR=C:\PFiles_x64\choco\winmerge'" --confirm
# check https://github.com/atiq-cs/PwshScripts/wiki/App-Path-Registry-Database for registry update this app
choco upgrade 7zip --install-args "'/S /D=C:\PFiles_x64\choco\7z'" --confirm
choco upgrade filezilla --install-args "'/D=C:\PFiles_x64\choco\FZilla'" --confirm
choco upgrade pdftk --install-args "'/DIR=C:\PFiles_x86\choco\pdftk'" --confirm
choco upgrade skype --install-args "'/DIR=C:\PFiles_x86\choco\Skype'" --confirm
choco upgrade jdk10 -params 'installdir=D:\\PFiles_x64\\choco\\jdk10'
choco upgrade teamviewer --install-args "'/D=C:\PFiles_x86\choco\TeamViewer'" --confirm
choco upgrade nodejs.install --install-args "'INSTALLDIR=C:\PFiles_x64\choco\Node'" --confirm
# Legacy Tools
# SVN, ref: https://community.chocolatey.org/packages/sliksvn
choco install sliksvn --package-parameters="/InstallDir=C:\PFiles_x64\choco\silk" --confirm
# deprecated by 7zip
choco upgrade winrar --install-args "'/DC:\PFiles_x64\choco\winrar'" --confirm
# it does install to correct location
choco upgrade putty.install --install-args "'INSTALLDIR=C:\PFiles_x64\choco\Putty'" --confirm
# python more info on choco doc, choco package still fails to create required Registry Entries, please refer to 'Chocolatey Cmd Cache' for fix
choco upgrade python3 --install-args "'/quiet InstallAllUsers=0 PrependPath=0 TargetDir=C:\PFiles_x64\choco\python3'" --override-arguments --confirm
# previous version tried
choco install python3 --install-args "'/quiet InstallAllUsers=0 PrependPath=0 TargetDir=C:\PFiles_x64\choco\python3'" --params "/InstallDir:C:\PFiles_x64\choco\python3"
# rest for which worked
choco install adobereader --install-args "'INSTALLDIR=C:\PFiles_x86\choco\adobe'" --confirm
choco install adobereader-update --install-args "'INSTALLDIR=C:\PFiles_x86\choco\adobe'" --confirm
## Markdown monster
choco upgrade markdownmonster --install-args "'/DIR=C:\PFiles_x64\choco\mdmonster'" --confirm
## It installs but please be aware installer is not good, might as well be lagging on version,
choco install mysql --install-args "'INSTALLDIR=C:\PFiles_x64\choco\MySQL' DATADIR=C:\PFiles_x64\choco\MySQL\Data"
## Putty
choco install putty.install --install-args "'INSTALLDIR=C:\PFiles_x64\choco\Putty'" --confirm
choco install pidgin --install-args "'/D=C:\PFiles_x86\choco\pidgin'" --confirm
# says it failed but it actually worked
# caution!! data loss!!
# choco upgrade notepadplusplus --install-args "'/D=C:\PFiles_x64\choco\npp'" --confirm --force
notepadplusplus.install has been installed.
WARNING: Can't find notepadplusplus.install install location
The install of notepadplusplus.install was successful.
Software installed as 'exe', install location is likely default.uninstall syntax
choco uninstall AppName --confirm$ signal-desktop-beta-win-1.40.1-beta.1.exe /NoShortcut /NoAutoUpdate /D=C:\PFiles_x64\choco\signal
// TODO: Test
choco install viber --install-args "'/DIR=D:\PFiles_x86\choco\Viber'" --confirm