Ordres per instal·lar 字由 sense preguntes, desinstal·lar-lo i detectar-lo des d’eines de desplegament. Només es mostra una ordre quan és segura: la que indica el manifest o el valor per defecte documentat de la tecnologia de l’instal·lador.
Guia relacionada: Instal·lació silenciosa: MSI, NSIS, Inno Setup · Desinstal·lar un programa amb el registre o PowerShell
Amb 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 instal·lador
64 bits · EXE (NSIS) · Usuari actual
Instal·lació silenciosa
"字由 Setup 5.0.5.exe" /SUna altra carpeta
"字由 Setup 5.0.5.exe" /S /D=C:\Apps\hellofont-hellofont- Clau de desinstal·lació al registre
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\8f053ba5-859b-5478-9c49-deb6f1af94af
64 bits · EXE (NSIS) · Tots els usuaris
Instal·lació silenciosa
"字由 Setup 5.0.5.exe" /SUna altra carpeta
"字由 Setup 5.0.5.exe" /S /D=C:\Apps\hellofont-hellofont- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\8f053ba5-859b-5478-9c49-deb6f1af94af
PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
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