Kommandoer til at installere Gource uden spørgsmål, fjerne programmet igen og finde det fra udrulningsværktøjer. En kommando vises kun, når den er sikker: fra manifestet eller som installationsteknologiens dokumenterede standard.
Relateret vejledning: Parametre til lydløs installation: MSI, NSIS, Inno · Afinstaller et program via registreringsdatabasen
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 --silentPr. installationsfil
64-bit · EXE (NSIS) · Aktuel bruger · en-US
Lydløs installation
gource-0.53.win64-setup.exe /SEgen mappe
gource-0.53.win64-setup.exe /S /D=C:\Apps\gource- Afinstallationsnøgle i registreringsdatabasen
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Gource
64-bit · EXE (NSIS) · Alle brugere · en-US
Lydløs installation
gource-0.53.win64-setup.exe /SEgen mappe
gource-0.53.win64-setup.exe /S /D=C:\Apps\gource- Afinstallationsnøgle i registreringsdatabasen
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Gource
PowerShell: download, kontrollér, installér
Downloader den officielle fil, kontrollerer dens SHA256 og installerer lydløst.
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