Error 1310
Error 1310. Error writing to file. Verify that you have access to that directory.
The installer could not write a file where it needed to. Permissions are the usual cause, followed by a file that is currently in use.
What it actually means
Installation is mostly copying files into place. When one copy fails, MSI reports 1310 and names the file, which is more information than most installer errors give you.
How to fix it, in order
Ordered by how often each one is the answer, not by how clever it sounds.
- 01Run the installer as administrator. Writing into Program Files needs elevation and the launcher does not always request it.
- 02Read the file path in the message. If it belongs to a program that is currently running, close that program and retry.
- 03Check the destination folder is not read-only, and that your account has Modify rights on it.
- 04Temporarily disable antivirus, since real-time scanning locking a file mid-copy produces this.
- 05If a previous installation left a partial folder behind, deleting it manually before retrying often clears the problem.
Common questions
- How do I fix error 1310 error writing to file?
- Run the installer as administrator, close any program using the file named in the error, and confirm the destination folder is writable. Temporarily disabling antivirus resolves the remaining cases.
Before you retry the installer
If the package came from anywhere other than the publisher, confirm it is the file they actually shipped. Check its SHA-256 against our index, which settles in seconds whether you are debugging an installer or a damaged download.