Polecenia do instalacji programu GitHub Store bez pytań, do jego usuwania i do wykrywania w narzędziach wdrożeniowych. Polecenie jest podane tylko wtedy, gdy jest pewne: pochodzi z manifestu albo z udokumentowanych ustawień domyślnych technologii instalatora.
Powiązany poradnik: Parametry cichej instalacji: MSI, NSIS, Inno Setup · Odinstalowanie programu przez rejestr lub PowerShell
Przez winget
PowerShell
winget install --id zed.rainxch.githubstore -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id zed.rainxch.githubstore -e --silentwinget uninstall --id zed.rainxch.githubstore -e --silentWedług instalatora
64-bit · MSI · Bieżący użytkownik · en-US
Cicha instalacja
msiexec /i Komi-Store-1.9.2.msi /qn /norestartZapis dziennika
msiexec /i Komi-Store-1.9.2.msi /qn /norestart /l*v "%TEMP%\github-store-install.log"Odinstalowanie
msiexec /x {D93AC224-6E7E-3D57-85E0-0502D87704C8} /qn /norestart- Kod produktu MSI
- {D93AC224-6E7E-3D57-85E0-0502D87704C8}
- Klucz odinstalowania w rejestrze
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{D93AC224-6E7E-3D57-85E0-0502D87704C8}
- UpgradeCode
- {16636F66-9D1D-3170-9C91-429014251BB0}
- Folder instalacji
- %LocalAppData%/Komi-Store
PowerShell: pobierz, zweryfikuj, zainstaluj
Pobiera oficjalny plik, sprawdza jego SHA256 i instaluje go po cichu.
install-github-store.ps1
$url = 'https://github.com/kurikomi-labs/komi-store/releases/download/v1.9.2/Komi-Store-1.9.2.msi'
$sha256 = 'A24C459FAE44481643CDCF2995D11550ACA2F1BCEACA798A9A9859C829649FC1'
$file = Join-Path $env:TEMP 'Komi-Store-1.9.2.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait