Commands for installing 中文Git 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 DuckStudio.ChineseGit -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id DuckStudio.ChineseGit -e --silentwinget uninstall --id DuckStudio.ChineseGit -e --silentBy installer
64-bit · EXE (Inno Setup) · All users · zh-CN
Silent install
Chinese_git_Setup_v3.4.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Custom folder
Chinese_git_Setup_v3.4.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\git-duckstudio"- Install folder
- %ProgramFiles%\Chinese_git
ARM64 · EXE (Inno Setup) · All users · zh-CN
Silent install
Chinese_git_Setup_v3.4.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Custom folder
Chinese_git_Setup_v3.4.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\git-duckstudio"- Install folder
- %ProgramFiles%\Chinese_git
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-git-duckstudio.ps1
$url = 'https://github.com/DuckDuckStudio/Chinese_git/releases/download/v3.4/Chinese_git_Setup_v3.4.exe'
$sha256 = 'CB1AE14FD5D0AFF81CE67FB22CA53A4F1AAE7146BFECD21EEEB365A422DD3AFC'
$file = Join-Path $env:TEMP 'Chinese_git_Setup_v3.4.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait install-git-duckstudio.ps1
$url = 'https://github.com/DuckDuckStudio/Chinese_git/releases/download/v3.4/Chinese_git_Setup_v3.4.exe'
$sha256 = 'CB1AE14FD5D0AFF81CE67FB22CA53A4F1AAE7146BFECD21EEEB365A422DD3AFC'
$file = Join-Path $env:TEMP 'Chinese_git_Setup_v3.4.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait