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