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
- Open Registry Editor:
- Select the Windows key + R.
- Enterregedit.
- SelectEnter.
- 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
- Check thePersonalvalue in both of the locations in the previous step. If thePersonalvalue is missing in either location, create it.
- Make sure thePersonalvalue points to a local drive.
- If thePersonalvalue is set to a server or network path, copy the current path into Notepad for safekeeping.
- ChangePersonalto your local Documents path (for example:C:\Users\YourUserName\Documents).
- Repeat these steps in bothShellfolders andUser Shellfolders.
- Run the installer.
- Retry the Checkpoint Tools or SMART Practice Aids install or update.
- After you've successfully installed the software, restore thePersonalvalue(s) to the original server path you saved earlier.
- Contact your IT department.
- Ask IT to review the folder redirection and permissions so you have the required user rights to install to the intended directory.
Solution 2
- If the error persists, sign in to Windows using the built-in local Administrator account and run the installer again.
- A Domain Administrator account may work, but the preferred method is to sign in as the local account named Administrator.