Don't know if this work but try to put set the file to read-only.

Why you want to run it in windowed mode anyway?