f5fed20ea9
- Improved native binary installation safety by using atomic rename operations instead of copy-then-delete, preventing data loss if installation fails. - Added proper error handling and recovery in safeCopy function to restore old binary if new file installation fails. - Enhanced Windows DLL compatibility by staging new file to temp location before renaming, avoiding issues with loaded binaries.