Skip to content

Fixes File Lock errors

Pre-release
Pre-release
Compare
Choose a tag to compare
@MrBrianGale MrBrianGale released this 24 Jul 13:47
· 31 commits to master since this release
121c436

This release should fix the file locking issues reported in Issue kimmknight#3
The fix this time is to check both source and destination files for locks and if no locks are found, attempt the copy. If the copy was unsuccessful, catch the error, rename the destination to have _NEW in the file name before the extension, and try the copy again. As this is a temporary file, this shouldn't cause any issues.
I do not have Wix installed at this time, but it is on my todo list, so my change may result in the RDP file generated by wix to contain _NEW in the name,.

I do not think this should cause any big issues, but that is why it gets tested!