GnuWin32: GetText programını soru sormadan kurmak, kaldırmak ve dağıtım araçlarında algılamak için komutlar. Bir komut yalnızca kesinse gösterilir: manifestteki anahtar ya da kurulum teknolojisinin belgelenmiş varsayılanı.
İlgili rehber: Sessiz kurulum parametreleri: MSI, NSIS, Inno Setup · Kayıt defteri veya PowerShell ile program kaldırma
winget ile
PowerShell
winget install --id GnuWin32.GetText -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id GnuWin32.GetText -e --silentwinget uninstall --id GnuWin32.GetText -e --silentKurulum dosyasına göre
32 bit · EXE (Inno Setup) · Tüm kullanıcılar
Sessiz kurulum
download /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Farklı klasör
download /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\gnuwin32-gettext"PowerShell: indir, doğrula, kur
Resmî dosyayı indirir, SHA256 değerini doğrular ve sessizce kurar.
install-gnuwin32-gettext.ps1
$url = 'https://sourceforge.net/projects/gnuwin32/files/gettext/0.14.4/gettext-0.14.4.exe/download'
$sha256 = 'F123930B8407FDCF1407ED3E9FF95CC3DC89B1D45418D5F0A2A5FB053D28449C'
$file = Join-Path $env:TEMP 'download'
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