Kommandon för att installera Moosync 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 Ovenoboyo.Moosync -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Ovenoboyo.Moosync -e --silentwinget uninstall --id Ovenoboyo.Moosync -e --silentPer installationsfil
64-bitars · EXE (NSIS) · en-US
Tyst installation
Moosync_11.0.2_x64-setup.exe /SEgen mapp
Moosync_11.0.2_x64-setup.exe /S /D=C:\Apps\moosync- Avinstallationsnyckel i registret
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Moosync
- Installationsmapp
- placeholder\Moosync
PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-moosync.ps1
$url = 'https://github.com/Moosync/Moosync/releases/download/Moosync-v11.0.2/Moosync_11.0.2_x64-setup.exe'
$sha256 = '3798B8F46332BEF419695044D2A34166D5402FDE4289961A265B82D44214A4D3'
$file = Join-Path $env:TEMP 'Moosync_11.0.2_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