Ordres per instal·lar 1Password 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 AgileBits.1Password -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id AgileBits.1Password -e --silentwinget uninstall --id AgileBits.1Password -e --silentPer instal·lador
64 bits · MSIX
Instal·lació silenciosa
Add-AppxPackage -Path 1PasswordSetup-8.12.48.msixbundleDesinstal·lar
Get-AppxPackage -Name Agilebits.1Password | Remove-AppxPackage64 bits · MSI · Tots els usuaris
Instal·lació silenciosa
msiexec /i 1PasswordSetup-8.12.48.msi /qn /norestartDesar un registre
msiexec /i 1PasswordSetup-8.12.48.msi /qn /norestart /l*v "%TEMP%\1password-install.log"Desinstal·lar
msiexec /x {B321A80D-34AA-47EE-9985-317D9F9A5878} /qn /norestart- Codi de producte MSI
- {B321A80D-34AA-47EE-9985-317D9F9A5878}
- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{B321A80D-34AA-47EE-9985-317D9F9A5878}
- DisplayVersion
- 8.12.48
ARM64 · MSIX
Instal·lació silenciosa
Add-AppxPackage -Path 1PasswordSetup-8.12.48.msixbundleDesinstal·lar
Get-AppxPackage -Name Agilebits.1Password | Remove-AppxPackagePowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-1password.ps1
$url = 'https://c.1password.com/dist/1P/win8/1PasswordSetup-8.12.48.msixbundle'
$sha256 = 'E11180762BD8F7998E3CDD81977B8BA9971DB345193E36C1A6922861D6F1B503'
$file = Join-Path $env:TEMP '1PasswordSetup-8.12.48.msixbundle'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Add-AppxPackage -Path $file install-1password.ps1
$url = 'https://c.1password.com/dist/1P/win8/1PasswordSetup-8.12.48.msi'
$sha256 = '54D7F222AD869724ECC5A3BEBDBEACD0FE3277AD172AB56471DAAEF5F198BB94'
$file = Join-Path $env:TEMP '1PasswordSetup-8.12.48.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 install-1password.ps1
$url = 'https://c.1password.com/dist/1P/win8/1PasswordSetup-8.12.48.msixbundle'
$sha256 = 'E11180762BD8F7998E3CDD81977B8BA9971DB345193E36C1A6922861D6F1B503'
$file = Join-Path $env:TEMP '1PasswordSetup-8.12.48.msixbundle'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Add-AppxPackage -Path $file