Kommandon för att installera 字由 utan frågor, ta bort programmet igen och identifiera det i distributionsverktyg. Ett kommando visas bara när det är säkert: från manifestet eller som installationsteknikens dokumenterade standard.
Relaterad guide: Parametrar för tyst installation: MSI, NSIS, Inno · Avinstallera program via registret eller PowerShell
Med winget
PowerShell
winget install --id Hellofont.Hellofont -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Hellofont.Hellofont -e --silentwinget uninstall --id Hellofont.Hellofont -e --silentPer installationsfil
64-bitars · EXE (NSIS) · Aktuell användare
Tyst installation
"字由 Setup 5.0.5.exe" /SEgen mapp
"字由 Setup 5.0.5.exe" /S /D=C:\Apps\hellofont-hellofont- Avinstallationsnyckel i registret
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\8f053ba5-859b-5478-9c49-deb6f1af94af
64-bitars · EXE (NSIS) · Alla användare
Tyst installation
"字由 Setup 5.0.5.exe" /SEgen mapp
"字由 Setup 5.0.5.exe" /S /D=C:\Apps\hellofont-hellofont- Avinstallationsnyckel i registret
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\8f053ba5-859b-5478-9c49-deb6f1af94af
PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-hellofont-hellofont.ps1
$url = 'https://download.hellofont.cn/Client/Release/channels/official/1-windows/字由%20Setup%205.0.5.exe'
$sha256 = '300FDF0E13E7EAC74DFABD9C72924F9B0A6402C5551F4C95074F4CCF594CE4C2'
$file = Join-Path $env:TEMP '字由 Setup 5.0.5.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 '/S' -Wait install-hellofont-hellofont.ps1
$url = 'https://download.hellofont.cn/Client/Release/channels/official/1-windows/字由%20Setup%205.0.5.exe'
$sha256 = '300FDF0E13E7EAC74DFABD9C72924F9B0A6402C5551F4C95074F4CCF594CE4C2'
$file = Join-Path $env:TEMP '字由 Setup 5.0.5.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 '/S' -Wait