Commands for installing Charles Proxy without prompts, removing it again and detecting it from deployment tools. A command is shown only when it is certain: from the manifest or the installer technology’s documented default.
Related guide: Silent install switches: MSI, NSIS, Inno Setup · Uninstall a program with the registry or PowerShell
With winget
PowerShell
winget install --id XK72.Charles -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id XK72.Charles -e --silentwinget uninstall --id XK72.Charles -e --silentBy installer
64-bit · APPX
Silent install
Add-AppxPackage -Path charles-proxy-5.2.3-win-x86_64.appxUninstall
Get-AppxPackage -Name XK72.Charles | Remove-AppxPackagePowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-charles-proxy.ps1
$url = 'https://www.charlesproxy.com/assets/release/5.2.3/charles-proxy-5.2.3-win-x86_64.appx'
$sha256 = '89ED75B878C5D5DA3229BF50995E10C4CE93435C60F9CDC9F87167FC6A2A399D'
$file = Join-Path $env:TEMP 'charles-proxy-5.2.3-win-x86_64.appx'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Add-AppxPackage -Path $file