Kommandon för att installera Codey 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 SuperGness.Codey -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id SuperGness.Codey -e --silentwinget uninstall --id SuperGness.Codey -e --silentPer installationsfil
64-bitars · EXE (NSIS) · Aktuell användare
Tyst installation
Codey-1.3.7-windows-x64-setup.exe /SEgen mapp
Codey-1.3.7-windows-x64-setup.exe /S /D=C:\Apps\codey- Avinstallationsnyckel i registret
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Codey
- Installationsmapp
- %LocalAppData%\Programs\Codey
PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-codey.ps1
$url = 'https://github.com/SuperGness/codey/releases/download/v1.3.7/Codey-1.3.7-windows-x64-setup.exe'
$sha256 = 'B28C521D5E09C8B655EFFC2023482F8D16A5F98AB30FA1A768F1E7CC0C454478'
$file = Join-Path $env:TEMP 'Codey-1.3.7-windows-x64-setup.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