how to avoid overwriting files during installation