Kommandon för att installera Closure 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 AoharuCat.Closure -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id AoharuCat.Closure -e --silentwinget uninstall --id AoharuCat.Closure -e --silentPer installationsfil
64-bitars · EXE (NSIS) · Aktuell användare
Tyst installation
Closure-Setup-0.4.0.exe /SEgen mapp
Closure-Setup-0.4.0.exe /S /D=C:\Apps\closure- Avinstallationsnyckel i registret
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\cad38deb-e266-5206-9024-911d924cd898
- Installationsmapp
- %LocalAppData%\Programs\Closure
64-bitars · EXE (NSIS) · Alla användare
Tyst installation
Closure-Setup-0.4.0.exe /SEgen mapp
Closure-Setup-0.4.0.exe /S /D=C:\Apps\closure- Avinstallationsnyckel i registret
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\cad38deb-e266-5206-9024-911d924cd898
- Installationsmapp
- %LocalAppData%\Programs\Closure
PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-closure.ps1
$url = 'https://github.com/AoharuCat/Closure/releases/download/v0.4.0/Closure-Setup-0.4.0.exe'
$sha256 = 'C924964B6128EC7A0A4329DB2357DCDE914C1CABDFB7BEA562C136158735E72B'
$file = Join-Path $env:TEMP 'Closure-Setup-0.4.0.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-closure.ps1
$url = 'https://github.com/AoharuCat/Closure/releases/download/v0.4.0/Closure-Setup-0.4.0.exe'
$sha256 = 'C924964B6128EC7A0A4329DB2357DCDE914C1CABDFB7BEA562C136158735E72B'
$file = Join-Path $env:TEMP 'Closure-Setup-0.4.0.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