Kommandon för att installera Hamic 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 SweetScape.Hamic -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id SweetScape.Hamic -e --silentwinget uninstall --id SweetScape.Hamic -e --silentPer installationsfil
32-bitars · EXE (Inno Setup) · Alla användare
Tyst installation
hamic21.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Egen mapp
hamic21.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\hamic"- Avinstallationsnyckel i registret
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Hamic_is1
PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-hamic.ps1
$url = 'https://download.sweetscape.com/hamic21.exe'
$sha256 = 'E9240E6354016BF764C617759830D7E883B60DE0C4B2E9BF475334F21C20C953'
$file = Join-Path $env:TEMP 'hamic21.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