Kommandon för att installera Gopass CLI 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 gopass.gopass -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id gopass.gopass -e --silentwinget uninstall --id gopass.gopass -e --silentPer installationsfil
64-bitars · MSI · en-US
Tyst installation
msiexec /i gopass-x64-windows-1.17.3.msi /qn /norestartSkriv en logg
msiexec /i gopass-x64-windows-1.17.3.msi /qn /norestart /l*v "%TEMP%\gopass-cli-install.log"Avinstallation
msiexec /x {1A07AAD9-64CC-4E6A-AAEA-B3097AF5028C} /qn /norestart- MSI-produktkod
- {1A07AAD9-64CC-4E6A-AAEA-B3097AF5028C}
- Avinstallationsnyckel i registret
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{1A07AAD9-64CC-4E6A-AAEA-B3097AF5028C}
- UpgradeCode
- {6c1bd458-7d1b-4311-848d-d0fe1a65af66}
64-bitars · ZIP · en-US
Kräver ingen installation (portabel)
- MSI-produktkod
- {1A07AAD9-64CC-4E6A-AAEA-B3097AF5028C}
- Avinstallationsnyckel i registret
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{1A07AAD9-64CC-4E6A-AAEA-B3097AF5028C}
- UpgradeCode
- {6c1bd458-7d1b-4311-848d-d0fe1a65af66}
- Installationsmapp
- %LocalAppData%\gopass
ARM64 · ZIP · en-US
Kräver ingen installation (portabel)
- MSI-produktkod
- {1A07AAD9-64CC-4E6A-AAEA-B3097AF5028C}
- Avinstallationsnyckel i registret
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{1A07AAD9-64CC-4E6A-AAEA-B3097AF5028C}
- UpgradeCode
- {6c1bd458-7d1b-4311-848d-d0fe1a65af66}
- Installationsmapp
- %LocalAppData%\gopass
PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-gopass-cli.ps1
$url = 'https://github.com/gopasspw/gopass/releases/download/v1.17.3/gopass-x64-windows-1.17.3.msi'
$sha256 = '339CF56F2BF442DD4CE3462817E4640EB68353D622F51FF41AFC396AC1FB4F0A'
$file = Join-Path $env:TEMP 'gopass-x64-windows-1.17.3.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