Error: Runtime error 5

Scenario

You may get the following error message when installing or updating Checkpoint Tools or SMART Practice Aids.
Error message
Run-time error '5': Invalid procedure call or argument

Cause

The installer lacks permission to write to the current Documents directory because it points to a server location.

Solution 1

  1. Open Registry Editor:
    1. Select the Windows key + R.
    2. Enter
      regedit
      .
    3. Select
      Enter
      .
  2. Go to the following locations:
    • HKEY_Current_User\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
    • HKEY_Current_User\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
  3. Check the
    Personal
    value in both of the locations in the previous step. If the
    Personal
    value is missing in either location, create it.
    1. Make sure the
      Personal
      value points to a local drive.
    2. If the
      Personal
      value is set to a server or network path, copy the current path into Notepad for safekeeping.
    3. Change
      Personal
      to your local Documents path (for example:
      C:\Users\YourUserName\Documents
      ).
  4. Repeat these steps in both
    Shell
    folders and
    User Shell
    folders.
  5. Run the installer.
  6. Retry the Checkpoint Tools or SMART Practice Aids install or update.
  7. After you've successfully installed the software, restore the
    Personal
    value(s) to the original server path you saved earlier.
  8. Contact your IT department.
  9. Ask IT to review the folder redirection and permissions so you have the required user rights to install to the intended directory.

Solution 2

  1. If the error persists, sign in to Windows using the built-in local Administrator account and run the installer again.
  2. A Domain Administrator account may work, but the preferred method is to sign in as the local account named Administrator.