VeraCrypt icon indicating copy to clipboard operation
VeraCrypt copied to clipboard

/norestart MSI installer flag exits with wrong error code

Open hboyd2003 opened this issue 8 months ago • 1 comments

When installing using the flag "/norestart" and are upgrading from a previous version the installer fails with exit code 6010 since a reboot is needed to finish installation, however, the error code should be 3010. This causes Winget to be unable to install silently since it expects the error code 3010 to be returned if a reboot is needed.

Expected behavior

Installer succeeds and exits with code 3010 ("The requested operation is successful. Changes will not be effective until the system is rebooted.")

Observed behavior

Installer exits with error code 6010

Steps to reproduce

  1. Run msiexec /package '<VeraCrypt Installer MSI>' /passive /norestart ACCEPTLICENSE=YES /log <path to log file>
  2. View log and see error message.

Your Environment

VeraCrypt version: 1.26.7

Operating system and version: Windows 11 Pro build 22621

System type: 64 bit

hboyd2003 avatar Nov 10 '23 20:11 hboyd2003