Symptom

You see an error message similar to this:

MiKTeX cannot access the file '{path}' because it is either locked by another MiKTeX program or by the operating system.

How to fix

You must close the program which locks the file. This is either another MiKTeX program or a monitoring system program (e.g., a virus scanner).