KeePass Password Safe is a free and open-source password manager primarily for Windows. This article will serve as an informative guide and give you a clear understanding of how to perform a silent installation of KeePass Password Safe from the command line using the EXE installer.
How to Install KeePass Password Safe Silently
KeePass Password Safe 2.xx Silent Install (EXE)
- Download the KeePass Password Safe 2.xx Installer
- Download the file to a folder created at (C:\Downloads)
- Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
- Navigate to the C:\Downloads folder
- Enter the following command:
KeePass-2.xx-Setup.exe /VERYSILENT /NORESTART
- Press Enter
After a few moments you should see the KeePass shortcut in the Start Menu, Installation Directory, and Programs and Features in the Control Panel.
Software Title: | KeePass Password Safe 2.xx |
Vendor: | Dominik Reichl |
Version: | 2.xx |
Architecture: | x86_x64 |
Installer Type: | EXE |
Silent Install Switch: |
|
Silent Uninstall Switch (32-bit System) | "%ProgramFiles%\KeePass Password Safe 2\unins000.exe" /VERYSILENT /NORESTART |
Silent Uninstall Switch (64-bit System) | "%ProgramFiles(x86)%\KeePass Password Safe 2\unins000.exe" /VERYSILENT /NORESTART |
Download Link: | https://keepass.info/download.html |
PowerShell Script: | https://silentinstallhq.com/keepass-password-safe-install-and-uninstall-powershell/ |
KeePass Password Safe 1.xx Silent Install (EXE)
- Download the KeePass Password Safe 1.xx Installer
- Download the file to a folder created at (C:\Downloads)
- Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
- Navigate to the C:\Downloads folder
- Enter the following command:
KeePass-1.xx-Setup.exe /VERYSILENT /NORESTART
- Press Enter
After a few moments you should see the KeePass shortcut in the Start Menu, Installation Directory, and Programs and Features in the Control Panel.
Software Title: | KeePass Password Safe 1.xx |
Vendor: | Dominik Reichl |
Version: | 1.xx |
Architecture: | x86_x64 |
Installer Type: | EXE |
Silent Install Switch: |
|
Silent Uninstall Switch (32-bit System) | "%ProgramFiles%\KeePass Password Safe\unins000.exe" /VERYSILENT /NORESTART |
Silent Uninstall Switch (64-bit System) | "%ProgramFiles(x86)%\KeePass Password Safe\unins000.exe" /VERYSILENT /NORESTART |
Download Link: | https://keepass.info/download.html |
PowerShell Script: | https://silentinstallhq.com/keepass-password-safe-install-and-uninstall-powershell/ |
The information above provides a quick overview of the software title, vendor, silent install, and silent uninstall switches. The download link provided take you directly to the vendors website. Continue reading if you are interested in additional details and configurations.
Additional Configurations
Create a KeePass Password Safe Installation Log File
The KeePass Password Safe installer offers the option to generate a log file during installation to assist with troubleshooting should any problems arise. You can use the following commands to create a verbose log file with details about the installation.
KeePass Password Safe 2.xx
KeePass-2.xx-Setup.exe /VERYSILENT /NORESTART /LOG="%WINDIR%\Temp\KeePassv2-Install.log" |
KeePass Password Safe 1.xx
KeePass-1.xx-Setup.exe /VERYSILENT /NORESTART /LOG="%WINDIR%\Temp\KeePassv1-Install.log" |
Change the KeePass Default Installation Directory
You can also change the default installation directory by using the following command line parameters. In this example, I’m installing KeePass Password Safe to “C:\KeePass Password Safe”
KeePass Password Safe 2.xx
KeePass-2.xx-Setup.exe /DIR="C:\KeePass Password Safe" /VERYSILENT /NORESTART |
KeePass Password Safe 1.xx
KeePass-1.xx-Setup.exe /DIR="C:\KeePass Password Safe" /VERYSILENT /NORESTART |
Include KeePass Desktop Shortcut During Install
The KeePass Password Safe installer does NOT create a desktop shortcut by default. If you want the desktop shortcut, then you can run the following command line switches to include it.
KeePass Password Safe 2.xx Silent Install with Desktop Shortcut
KeePass-2.xx-Setup.exe /VERYSILENT /NORESTART /MERGETASKS=desktopicon |
KeePass Password Safe 1.xx Silent Install with Desktop Shortcut
KeePass-1.xx-Setup.exe /VERYSILENT /NORESTART /MERGETASKS=desktopicon |
Disable KeePass Password Safe Auto Update Check
By default, KeePass Password Safe will automatically check for updates. If you want to disable the auto update check setting you can follow these steps.
KeePass Password Safe 2.xx Silent Install with No Auto Update Check
- Open Notepad or your favorite text editor
- Add the following lines:
<?xml version="1.0" encoding="utf-8"?>
<Configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Application>
<Start>
<CheckForUpdate>false</CheckForUpdate>
<CheckForUpdateConfigured>true</CheckForUpdateConfigured>
</Start>
</Application>
</Configuration>
- Save the file and name it: KeePass.config.enforced.xml
- Follow the “How to Install KeePass Password Safe Silently” steps mentioned earlier in the article
- Copy the KeePass.config.enforced.xml file to “%ProgramFiles%\KeePass Password Safe 2”
KeePass Password Safe 1.xx Silent Install with No Auto Update Check
- Open Notepad or your favorite text editor
- Add the following lines:
[KeePass]
KeePreferUserConfiguration=False
KeeCheckForUpdate=False
KeeCheckForUpdateConfigured=True
- Save the file and name it: KeePass.enforced.ini
- Follow the “How to Install KeePass Password Safe Silently” steps mentioned earlier in the article
- Copy the KeePass.enforced.ini file to “%ProgramFiles%\KeePass Password Safe” for 32-bit Systems or “%ProgramFiles(x86)%\KeePass Password Safe” for 64-bit Systems
How to Uninstall KeePass Password Safe Silently
Check out the KeePass Password Safe Install and Uninstall (PowerShell) post for a scripted solution.
- Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
- Enter one of the following commands:
KeePass Password Safe 2.xx (EXE) Silent Uninstall on 32-bit System
"%ProgramFiles%\KeePass Password Safe 2\unins000.exe" /VERYSILENT /NORESTART |
KeePass Password Safe 2.xx (EXE) Silent Uninstall on 64-bit System
"%ProgramFiles(x86)%\KeePass Password Safe 2\unins000.exe" /VERYSILENT /NORESTART |
KeePass Password Safe 1.xx (EXE) Silent Uninstall on 32-bit System
"%ProgramFiles%\KeePass Password Safe\unins000.exe" /VERYSILENT /NORESTART |
KeePass Password Safe 1.xx (EXE) Silent Uninstall on 64-bit System
"%ProgramFiles(x86)%\KeePass Password Safe\unins000.exe" /VERYSILENT /NORESTART |
Always make sure to test everything in a development environment prior to implementing anything into production. The information in this article is provided “As Is” without warranty of any kind.