QuickBooks Error 1402 -- Installer Cannot Write a Registry Key

QuickBooks Error 1402 stops installation when Windows Installer cannot write a registry key. Learn what causes it and how to fix it for good.

Error 1402 is one of the more stubborn QuickBooks Desktop installation errors. It appears mid-setup, points at a registry key, and leaves the install half-finished. Our engineers have traced it to a small set of causes, and each one has a reliable fix.

What does the error message say?

The full message usually reads:

"Error 1402. Could not open key: UNKNOWN\Components[long alphanumeric string][second alphanumeric string]. Verify that you have sufficient access to that key, or contact your support personnel."

The key names vary from machine to machine. The wording is otherwise consistent, and it always comes from Windows Installer, not from QuickBooks itself.

What does the code mean?

Error 1402 is a Windows Installer access failure. During setup, QuickBooks tries to create or update entries under its component registration keys in the registry. Windows denies that write, and the installer aborts. The error is a permissions problem, not a corrupted download and not a damaged company file.

What triggers it?

Three triggers account for nearly every case we see:

  1. Insufficient user rights. The person running setup does not have administrator permissions on the machine, or User Account Control is silently blocking the write.
  2. Broken or inherited registry permissions. The Components key has permission entries that reference deleted user accounts, or a group policy has stripped the local Administrators group of full control.
  3. A previous uninstall that left orphaned component keys. Windows Installer then tries to update a key that no longer has a valid owner.

How do you fix it?

Work through these in order. The first scenario is the most common.

Scenario 1: insufficient rights during setup

  1. Sign in to Windows with a local administrator account. A domain account with delegated rights is not always enough.
  2. Right-click the QuickBooks setup file and choose Run as administrator.
  3. If User Account Control prompts, approve it. Do not launch setup from a mapped drive or a compressed folder; extract it to a local folder first.
  4. Re-run the installation. If it completes, no further steps are needed.

Scenario 2: broken permissions on the Components key

  1. Open the Registry Editor as administrator.
  2. Navigate to the Components key referenced in the error. The path sits under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData.
  3. Right-click the Components folder, choose Permissions, then Advanced.
  4. Tick the option to replace all child object permission entries, and grant Full Control to the local Administrators group and to SYSTEM.
  5. Apply, close the editor, and re-run setup.

Editing the registry carries risk. Export the key first so you can restore it if anything goes wrong.

Scenario 3: orphaned keys from a previous install

  1. Download and run the QuickBooks Install Diagnostic Tool from the install support toolkit. It repairs installer registration entries automatically.
  2. Restart the machine after the tool finishes, then attempt setup again.
  3. If the error persists, uninstall any existing QuickBooks entries through the Windows Apps list, run the diagnostic tool a second time, and install fresh.

How do you prevent it recurring?

Install QuickBooks only from a local administrator account, and always launch setup with Run as administrator. Avoid cancelling an installation partway through; aborted installs are the main source of orphaned component keys. Before upgrading to a new year's release, uninstall the prior version cleanly rather than installing over a broken copy. On machines managed by group policy, confirm that the local Administrators group retains full control of the installer registry areas. A few minutes of checks before setup saves a full afternoon of registry repair afterwards.

Keep going

Your Desktop doesn’t have to end when Intuit says so.

Start with the master survival guide, or jump straight to the fix you need.