Kommandon för att installera SmartGit 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 Syntevo.SmartGit -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Syntevo.SmartGit -e --silentwinget uninstall --id Syntevo.SmartGit -e --silentPer installationsfil
32-bitars · ZIP · Alla användare · en-US
Tyst installation
smartgit-26_1_057-win-installer.zip /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-- Installationsmapp
- %ProgramFiles%\SmartGit
PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-smartgit.ps1
$url = 'https://download.smartgit.dev/smartgit/smartgit-26_1_057-win-installer.zip'
$sha256 = '1980EA2627CA314EEAD64FD768603C682C593CB3F03AB4905621D6D6EECBB0A0'
$file = Join-Path $env:TEMP 'smartgit-26_1_057-win-installer.zip'
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