VeraCrypt Silent Install (How-To Guide)

VeraCrypt is a free and open-source utility for on-the-fly encryption. The software can create a virtual encrypted disk that works just like a regular disk but within a file. It can also encrypt a partition or the entire storage device with pre-boot authentication. This article will serve as an informative guide and give you a clear understanding of how to perform a silent installation of VeraCrypt from the command line using the MSI installer.

How to Install VeraCrypt Silently

VeraCrypt Silent Install (MSI)

  1. Navigate to: https://www.veracrypt.fr/en/Downloads.html
  2. Download & Copy the VeraCrypt_Setup_x64_x.y.z.msi to a folder created at (C:\Downloads)
  3. Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
  4. Navigate to the C:\Downloads folder
  5. Enter the following command:
MsiExec.exe /i VeraCrypt_Setup_x64_x.y.z.msi ACCEPTLICENSE=YES /qn

After a few moments you should see the VeraCrypt Desktop Shortcut appear. You will also find entries in the Start Menu, Installation Directory, and Programs and Features in the Control Panel.

Software Title:VeraCrypt
Vendor:IDRIX
Architecture:x64
Installer Type:MSI
Silent Install Switch:MsiExec.exe /i VeraCrypt_Setup_x64_x.y.z.msi ACCEPTLICENSE=YES /qn
Silent Uninstall Switch:MsiExec.exe /x VeraCrypt_Setup_x64_x.y.z.msi /qn
Repair Command:MsiExec.exe /fa VeraCrypt_Setup_x64_x.y.z.msi /qn
Download Link:https://www.veracrypt.fr/en/Downloads.html
PowerShell Script:https://silentinstallhq.com/veracrypt-install-and-uninstall-powershell/
Detection Script:https://silentinstallhq.com/create-a-custom-detection-script-for-veracrypt-powershell/

The information above provides a quick overview of the software title, vendor, silent install, and silent uninstall switches. The download links provided take you directly to the vendors website. Continue reading if you are interested in additional details and configurations.


Additional Configurations

Create a VeraCrypt Installation Log File

The VeraCrypt 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.

VeraCrypt Silent Install (MSI) with Logging

MsiExec.exe /i VeraCrypt_Setup_x64_x.y.z.msi ACCEPTLICENSE=YES /qn /L*v "%WINDIR%\Temp\VeraCrypt-Install.log"

Exclude the VeraCrypt Desktop Shortcut During Install

VeraCrypt Silent Install (MSI) with No Desktop Shortcut

MsiExec.exe /i VeraCrypt_Setup_x64_x.y.z.msi ACCEPTLICENSE=YES INSTALLDESKTOPSHORTCUT="" /qn

Exclude the VeraCrypt Start Menu Shortcut During Install

VeraCrypt Silent Install (MSI) with No Start Menu Shortcut

MsiExec.exe /i VeraCrypt_Setup_x64_x.y.z.msi ACCEPTLICENSE=YES INSTALLSTARTMENUSHORTCUT="" /qn

How to Uninstall VeraCrypt Silently

Check out the following posts for a scripted solution:

VeraCrypt Install and Uninstall (PowerShell)
VeraCrypt Silent Uninstall (PowerShell)
  1. Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
  2. Enter one of the following commands:
VersionVeraCrypt Silent Uninstall String
1.25.9MsiExec.exe /x {5DDDA84D-81B6-4C9C-B82B-9DB89244B547} /qn

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.