This document provides a collection of instructions and scripts for installing various software on Windows using different methods such as Winget, Chocolatey, PowerShell, and Ninite.
Chocolatey is a software management solution for Windows. It allows you to manage software installations, updates, and configurations from the command line.
To install Chocolatey, open an administrative command prompt and run the following command:
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
To avoid being prompted for confirmation every time you install a package with Chocolatey, you can enable the allowGlobalConfirmation
feature. This will automatically confirm any prompts that come up during the installation process.
You can enable this feature by running the following command:
choco feature enable -n allowGlobalConfirmation
Please note that this will apply to all Chocolatey commands that require confirmation, not just installations. Use this feature with caution.
Chocolatey is a software management solution for Windows. Make sure you have it installed before running these commands.
# Install LyX. LyX is a document processor that encourages an approach to writing based on the structure of your documents (WYSIWYM) and not simply their appearance (WYSIWYG).
choco install lyx -y
# Install Sing-Box. Sing-Box is a universal proxy platform that uses JSON for configuration files.
choco install sing-box -y
# Install Telerik.Fiddler. We should also set a "Decrypt HTTPS traffic" exception for MSStore, AnyDesk, etc.
choco install fiddler -y
# Install Ghostscript. Ghostscript is an interpreter for the PostScript language and for PDF.
choco install ghostscript -y
# Install Poppler. Poppler is a PDF rendering library based on the xpdf-3.0 code base.
choco install poppler -y
Winget is a Windows package manager that simplifies software installation. Make sure you have it installed before running these commands.
# Security & Utilities
# ----------------------------------------
# Install Huorong Internet Security - Lightweight antivirus with minimal system impact
winget install huorong --accept-package-agreements
# Install 7-zip - Free and open-source file archiver with high compression ratio
winget install -e --id 7zip.7zip
# Install WinDirStat - Disk usage statistics viewer and cleanup tool
winget install -e --id WinDirStat.WinDirStat
# Install voidtools.Everything - Fast file search utility
winget install -e --id voidtools.Everything
# Install LinkShellExtension - Tool for creating hardlinks, junctions, and symbolic links
winget install -e --id HermannSchinagl.LinkShellExtension
# Install WinMerge - Open source differencing and merging tool
winget install -e --id WinMerge.WinMerge
# Install PDFtk Server - Command-line tool for working with PDF files
winget install -e --id PDFLabs.PDFtk.Server
# Productivity & Media
# ----------------------------------------
# Install Sumatra PDF - Fast, lightweight PDF and ebook reader
winget install -e --id SumatraPDF.SumatraPDF
# Install Media Player Classic - Compact media player with extensive format support
winget install -e --id MPC-HC.MPC-HC
# Install HandBrake - Open-source video transcoder
winget install -e --id HandBrake.HandBrake
# Install Plex Media Server - Media streaming server and organizer
winget install -e --id Plex.PlexMediaServer
# Install CherryStudio - Modern desktop client supporting multiple LLM providers
winget install -e --id kangfenmao.CherryStudio
# Development & Collaboration
# ----------------------------------------
# Install StartAllBack - Windows customization and enhancement tool
winget install -e --id startallback
# Install SparkleShare - Cross-platform collaboration and sharing tool
winget install -e --id SparkleShare.SparkleShare
# Install TortoiseGit - Git client integrated with Windows File Explorer
winget install -e --id TortoiseGit.TortoiseGit
Google Pinyin is an input method developed by Google to enter Chinese characters. You can download and install the Standard Version (V2) installer using PowerShell:
# https://argentolee.wordpress.com/tag/google-pinyin-chinese-input/
# Define the URL and the expected hash
$url = "http://dl.google.com/pinyin/v2/GooglePinyinInstaller.exe"
$expectedHash = "13DDCCC8FFC3392D5912C933851803E7EE7EEB126076DCABC4A77C0D99FC3B2C"
# Create a temporary folder
$tempFolder = [System.IO.Path]::GetTempPath()
$filePath = Join-Path -Path $tempFolder -ChildPath "GooglePinyinInstaller.exe"
# Check if the file exists and its hash matches the expected hash
if (!(Test-Path -Path $filePath) -or (Get-FileHash -Path $filePath -Algorithm SHA256).Hash -ne $expectedHash) {
# If the file does not exist or the hash of the existing file does not match the expected hash, download the file
Invoke-WebRequest -Uri $url -OutFile $filePath
}
# Calculate the hash of the downloaded file
$hash = Get-FileHash -Path $filePath -Algorithm SHA256
# Compare the hash of the downloaded file with the expected hash
if ($hash.Hash -eq $expectedHash) {
# Start the installer silently if the hashes match
Start-Process -FilePath $filePath -ArgumentList "-s" -Wait
# Add an entry to Programs and Features
$registryPath = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\GooglePinyin2"
New-Item -Path $registryPath -Force
Set-ItemProperty -Path $registryPath -Name "DisplayName" -Value "谷歌拼音输入法 2.7"
Set-ItemProperty -Path $registryPath -Name "UninstallString" -Value "C:\\Program Files (x86)\\Google\\Google Pinyin 2\\GooglePinyinUninstaller.exe -s"
Set-ItemProperty -Path $registryPath -Name "DisplayIcon" -Value "C:\\Windows\\SysWOW64\\GooglePinyin2.ime"
Set-ItemProperty -Path $registryPath -Name "Publisher" -Value "Google Inc."
} else {
Write-Output "The hash of the downloaded file does not match the expected hash."
}
After running the command, follow the on-screen instructions to complete the installation.
Please note that the official website is defunct, but the downloads of the installers are still up at the moment. You can also find the installers on Archive.org.
Ninite is a package management system offering that lets users automatically install popular applications for their Windows operating system. You can use Ninite to install multiple programs at once. It is not available directly via winget
but can be accessed through their website:
# https://ninite.com/
Visit the website to create a custom installer for multiple applications