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