Ordres per instal·lar GitHub Store sense preguntes, desinstal·lar-lo i detectar-lo des d’eines de desplegament. Només es mostra una ordre quan és segura: la que indica el manifest o el valor per defecte documentat de la tecnologia de l’instal·lador.
Guia relacionada: Instal·lació silenciosa: MSI, NSIS, Inno Setup · Desinstal·lar un programa amb el registre o PowerShell
Amb 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 --silentPer instal·lador
64 bits · MSI · Usuari actual · en-US
Instal·lació silenciosa
msiexec /i Komi-Store-1.9.2.msi /qn /norestartDesar un registre
msiexec /i Komi-Store-1.9.2.msi /qn /norestart /l*v "%TEMP%\github-store-install.log"Desinstal·lar
msiexec /x {D93AC224-6E7E-3D57-85E0-0502D87704C8} /qn /norestart- Codi de producte MSI
- {D93AC224-6E7E-3D57-85E0-0502D87704C8}
- Clau de desinstal·lació al registre
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{D93AC224-6E7E-3D57-85E0-0502D87704C8}
- UpgradeCode
- {16636F66-9D1D-3170-9C91-429014251BB0}
- Carpeta d’instal·lació
- %LocalAppData%/Komi-Store
PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
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