Ordres per instal·lar KeePass 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 DominikReichl.KeePass -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id DominikReichl.KeePass -e --silentwinget uninstall --id DominikReichl.KeePass -e --silentPer instal·lador
64 bits · EXE (Inno Setup) · Tots els usuaris
Instal·lació silenciosa
download /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Una altra carpeta
download /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\keepass"- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\KeePassPasswordSafe2_is1
64 bits · MSI · Tots els usuaris
Instal·lació silenciosa
msiexec /i download /qn /norestartDesar un registre
msiexec /i download /qn /norestart /l*v "%TEMP%\keepass-install.log"Desinstal·lar
msiexec /x {33F0E718-1110-4F95-A59B-230A62C02DE5} /qn /norestart- Codi de producte MSI
- {33F0E718-1110-4F95-A59B-230A62C02DE5}
- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{33F0E718-1110-4F95-A59B-230A62C02DE5}
- UpgradeCode
- {F2F19898-4F86-4940-9BFA-426574CE03E1}
ARM64 · EXE (Inno Setup) · Tots els usuaris
Instal·lació silenciosa
download /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Una altra carpeta
download /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\keepass"- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\KeePassPasswordSafe2_is1
ARM64 · MSI · Tots els usuaris
Instal·lació silenciosa
msiexec /i download /qn /norestartDesar un registre
msiexec /i download /qn /norestart /l*v "%TEMP%\keepass-install.log"Desinstal·lar
msiexec /x {33F0E718-1110-4F95-A59B-230A62C02DE5} /qn /norestart- Codi de producte MSI
- {33F0E718-1110-4F95-A59B-230A62C02DE5}
- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{33F0E718-1110-4F95-A59B-230A62C02DE5}
- UpgradeCode
- {F2F19898-4F86-4940-9BFA-426574CE03E1}
32 bits · EXE (Inno Setup) · Tots els usuaris
Instal·lació silenciosa
download /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Una altra carpeta
download /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\keepass"- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\KeePassPasswordSafe2_is1
32 bits · MSI · Tots els usuaris
Instal·lació silenciosa
msiexec /i download /qn /norestartDesar un registre
msiexec /i download /qn /norestart /l*v "%TEMP%\keepass-install.log"Desinstal·lar
msiexec /x {33F0E718-1110-4F95-A59B-230A62C02DE5} /qn /norestart- Codi de producte MSI
- {33F0E718-1110-4F95-A59B-230A62C02DE5}
- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{33F0E718-1110-4F95-A59B-230A62C02DE5}
- UpgradeCode
- {F2F19898-4F86-4940-9BFA-426574CE03E1}
PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-keepass.ps1
$url = 'https://sourceforge.net/projects/keepass/files/KeePass%202.x/2.61.1/KeePass-2.61.1-Setup.exe/download'
$sha256 = '9923A8B228FE3D8FBE46979991F45D7E0D63F649766596DA191EB879B293D38D'
$file = Join-Path $env:TEMP 'download'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait install-keepass.ps1
$url = 'https://sourceforge.net/projects/keepass/files/KeePass%202.x/2.61.1/KeePass-2.61.1.msi/download'
$sha256 = '5A1D0D573D2CB6278394F75FDBFF4D05DCE44EAC6F522C7B43F5E637F77B46C0'
$file = Join-Path $env:TEMP 'download'
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-keepass.ps1
$url = 'https://sourceforge.net/projects/keepass/files/KeePass%202.x/2.61.1/KeePass-2.61.1-Setup.exe/download'
$sha256 = '9923A8B228FE3D8FBE46979991F45D7E0D63F649766596DA191EB879B293D38D'
$file = Join-Path $env:TEMP 'download'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait install-keepass.ps1
$url = 'https://sourceforge.net/projects/keepass/files/KeePass%202.x/2.61.1/KeePass-2.61.1.msi/download'
$sha256 = '5A1D0D573D2CB6278394F75FDBFF4D05DCE44EAC6F522C7B43F5E637F77B46C0'
$file = Join-Path $env:TEMP 'download'
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-keepass.ps1
$url = 'https://sourceforge.net/projects/keepass/files/KeePass%202.x/2.61.1/KeePass-2.61.1-Setup.exe/download'
$sha256 = '9923A8B228FE3D8FBE46979991F45D7E0D63F649766596DA191EB879B293D38D'
$file = Join-Path $env:TEMP 'download'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait install-keepass.ps1
$url = 'https://sourceforge.net/projects/keepass/files/KeePass%202.x/2.61.1/KeePass-2.61.1.msi/download'
$sha256 = '5A1D0D573D2CB6278394F75FDBFF4D05DCE44EAC6F522C7B43F5E637F77B46C0'
$file = Join-Path $env:TEMP 'download'
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