Error updating to latest beta surface pro 4 win 10

@Michael_Oborne
I have been trying to update my surface pro 4 to the lastest beta of MP but everytime I do so I get the error message posted below. I have tried uninstalling and reinstalling all of MP but this message keeps coming up, any ideas?

Microsoft Windows NT 6.2.9200.0
dir: C:\Program Files (x86)\Mission Planner
file: C:\Program Files (x86)\Mission Planner\GMap.NET.WindowsForms.dll.new
C:\Program Files (x86)\Mission Planner\GMap.NET.WindowsForms.dll.new Failed.
System.UnauthorizedAccessException: Access to the path ‘C:\Program Files (x86)\Mission Planner\GMap.NET.WindowsForms.dll.old’ is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalDelete(String path, Boolean checkHost)
at Updater.Program.UpdateFiles(String directory)
C:\Program Files (x86)\Mission Planner\GMap.NET.WindowsForms.dll.new Failed.
System.UnauthorizedAccessException: Access to the path ‘C:\Program Files (x86)\Mission Planner\GMap.NET.WindowsForms.dll.old’ is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalDelete(String path, Boolean checkHost)
at Updater.Program.UpdateFiles(String directory)
C:\Program Files (x86)\Mission Planner\GMap.NET.WindowsForms.dll.new Failed.
System.UnauthorizedAccessException: Access to the path ‘C:\Program Files (x86)\Mission Planner\GMap.NET.WindowsForms.dll.old’ is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalDelete(String path, Boolean checkHost)
at Updater.Program.UpdateFiles(String directory)
C:\Program Files (x86)\Mission Planner\GMap.NET.WindowsForms.dll.new Failed.
System.UnauthorizedAccessException: Access to the path ‘C:\Program Files (x86)\Mission Planner\GMap.NET.WindowsForms.dll.old’ is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalDelete(String path, Boolean checkHost)
at Updater.Program.UpdateFiles(String directory)
C:\Program Files (x86)\Mission Planner\GMap.NET.WindowsForms.dll.new Failed.
System.UnauthorizedAccessException: Access to the path ‘C:\Program Files (x86)\Mission Planner\GMap.NET.WindowsForms.dll.old’ is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalDelete(String path, Boolean checkHost)
at Updater.Program.UpdateFiles(String directory)
C:\Program Files (x86)\Mission Planner\GMap.NET.WindowsForms.dll.new Failed.
System.UnauthorizedAccessException: Access to the path ‘C:\Program Files (x86)\Mission Planner\GMap.NET.WindowsForms.dll.old’ is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalDelete(String path, Boolean checkHost)
at Updater.Program.UpdateFiles(String directory)
C:\Program Files (x86)\Mission Planner\GMap.NET.WindowsForms.dll.new Failed.
System.UnauthorizedAccessException: Access to the path ‘C:\Program Files (x86)\Mission Planner\GMap.NET.WindowsForms.dll.old’ is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalDelete(String path, Boolean checkHost)
at Updater.Program.UpdateFiles(String directory)
C:\Program Files (x86)\Mission Planner\GMap.NET.WindowsForms.dll.new Failed.
System.UnauthorizedAccessException: Access to the path ‘C:\Program Files (x86)\Mission Planner\GMap.NET.WindowsForms.dll.old’ is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalDelete(String path, Boolean checkHost)
at Updater.Program.UpdateFiles(String directory)
C:\Program Files (x86)\Mission Planner\GMap.NET.WindowsForms.dll.new Failed.
System.UnauthorizedAccessException: Access to the path ‘C:\Program Files (x86)\Mission Planner\GMap.NET.WindowsForms.dll.old’ is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalDelete(String path, Boolean checkHost)
at Updater.Program.UpdateFiles(String directory)
C:\Program Files (x86)\Mission Planner\GMap.NET.WindowsForms.dll.new Failed.
System.UnauthorizedAccessException: Access to the path ‘C:\Program Files (x86)\Mission Planner\GMap.NET.WindowsForms.dll.old’ is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalDelete(String path, Boolean checkHost)
at Updater.Program.UpdateFiles(String directory)
file: C:\Program Files (x86)\Mission Planner\MissionPlanner.Maps.dll.new
C:\Program Files (x86)\Mission Planner\MissionPlanner.Maps.dll.new Failed.
System.UnauthorizedAccessException: Access to the path ‘C:\Program Files (x86)\Mission Planner\MissionPlanner.Maps.dll.old’ is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalDelete(String path, Boolean checkHost)
at Updater.Program.UpdateFiles(String directory)
C:\Program Files (x86)\Mission Planner\MissionPlanner.Maps.dll.new Failed.
System.UnauthorizedAccessException: Access to the path ‘C:\Program Files (x86)\Mission Planner\MissionPlanner.Maps.dll.old’ is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalDelete(String path, Boolean checkHost)
at Updater.Program.UpdateFiles(String directory)
C:\Program Files (x86)\Mission Planner\MissionPlanner.Maps.dll.new Failed.
System.UnauthorizedAccessException: Access to the path ‘C:\Program Files (x86)\Mission Planner\MissionPlanner.Maps.dll.old’ is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalDelete(String path, Boolean checkHost)
at Updater.Program.UpdateFiles(String directory)
C:\Program Files (x86)\Mission Planner\MissionPlanner.Maps.dll.new Failed.
System.UnauthorizedAccessException: Access to the path ‘C:\Program Files (x86)\Mission Planner\MissionPlanner.Maps.dll.old’ is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalDelete(String path, Boolean checkHost)
at Updater.Program.UpdateFiles(String directory)
C:\Program Files (x86)\Mission Planner\MissionPlanner.Maps.dll.new Failed.
System.UnauthorizedAccessException: Access to the path ‘C:\Program Files (x86)\Mission Planner\MissionPlanner.Maps.dll.old’ is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalDelete(String path, Boolean checkHost)
at Updater.Program.UpdateFiles(String directory)
C:\Program Files (x86)\Mission Planner\MissionPlanner.Maps.dll.new Failed.
System.UnauthorizedAccessException: Access to the path ‘C:\Program Files (x86)\Mission Planner\MissionPlanner.Maps.dll.old’ is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalDelete(String path, Boolean checkHost)
at Updater.Program.UpdateFiles(String directory)
C:\Program Files (x86)\Mission Planner\MissionPlanner.Maps.dll.new Failed.
System.UnauthorizedAccessException: Access to the path ‘C:\Program Files (x86)\Mission Planner\MissionPlanner.Maps.dll.old’ is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalDelete(String path, Boolean checkHost)
at Updater.Program.UpdateFiles(String directory)
C:\Program Files (x86)\Mission Planner\MissionPlanner.Maps.dll.new Failed.
System.UnauthorizedAccessException: Access to the path ‘C:\Program Files (x86)\Mission Planner\MissionPlanner.Maps.dll.old’ is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalDelete(String path, Boolean checkHost)
at Updater.Program.UpdateFiles(String directory)
C:\Program Files (x86)\Mission Planner\MissionPlanner.Maps.dll.new Failed.
System.UnauthorizedAccessException: Access to the path ‘C:\Program Files (x86)\Mission Planner\MissionPlanner.Maps.dll.old’ is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalDelete(String path, Boolean checkHost)
at Updater.Program.UpdateFiles(String directory)
C:\Program Files (x86)\Mission Planner\MissionPlanner.Maps.dll.new Failed.
System.UnauthorizedAccessException: Access to the path ‘C:\Program Files (x86)\Mission Planner\MissionPlanner.Maps.dll.old’ is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalDelete(String path, Boolean checkHost)
at Updater.Program.UpdateFiles(String directory)
file: C:\Program Files (x86)\Mission Planner\MissionPlanner.Utilities.dll.new
C:\Program Files (x86)\Mission Planner\MissionPlanner.Utilities.dll.new Failed.
System.UnauthorizedAccessException: Access to the path ‘C:\Program Files (x86)\Mission Planner\MissionPlanner.Utilities.dll.old’ is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalDelete(String path, Boolean checkHost)
at Updater.Program.UpdateFiles(String directory)
C:\Program Files (x86)\Mission Planner\MissionPlanner.Utilities.dll.new Failed.
System.UnauthorizedAccessException: Access to the path ‘C:\Program Files (x86)\Mission Planner\MissionPlanner.Utilities.dll.old’ is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalDelete(String path, Boolean checkHost)
at Updater.Program.UpdateFiles(String directory)
C:\Program Files (x86)\Mission Planner\MissionPlanner.Utilities.dll.new Failed.
System.UnauthorizedAccessException: Access to the path ‘C:\Program Files (x86)\Mission Planner\MissionPlanner.Utilities.dll.old’ is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalDelete(String path, Boolean checkHost)
at Updater.Program.UpdateFiles(String directory)
C:\Program Files (x86)\Mission Planner\MissionPlanner.Utilities.dll.new Failed.
System.UnauthorizedAccessException: Access to the path ‘C:\Program Files (x86)\Mission Planner\MissionPlanner.Utilities.dll.old’ is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalDelete(String path, Boolean checkHost)
at Updater.Program.UpdateFiles(String directory)
C:\Program Files (x86)\Mission Planner\MissionPlanner.Utilities.dll.new Failed.
System.UnauthorizedAccessException: Access to the path ‘C:\Program Files (x86)\Mission Planner\MissionPlanner.Utilities.dll.old’ is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalDelete(String path, Boolean checkHost)
at Updater.Program.UpdateFiles(String directory)
C:\Program Files (x86)\Mission Planner\MissionPlanner.Utilities.dll.new Failed.
System.UnauthorizedAccessException: Access to the path ‘C:\Program Files (x86)\Mission Planner\MissionPlanner.Utilities.dll.old’ is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalDelete(String path, Boolean checkHost)
at Updater.Program.UpdateFiles(String directory)
C:\Program Files (x86)\Mission Planner\MissionPlanner.Utilities.dll.new Failed.
System.UnauthorizedAccessException: Access to the path ‘C:\Program Files (x86)\Mission Planner\MissionPlanner.Utilities.dll.old’ is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalDelete(String path, Boolean checkHost)
at Updater.Program.UpdateFiles(String directory)
C:\Program Files (x86)\Mission Planner\MissionPlanner.Utilities.dll.new Failed.
System.UnauthorizedAccessException: Access to the path ‘C:\Program Files (x86)\Mission Planner\MissionPlanner.Utilities.dll.old’ is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalDelete(String path, Boolean checkHost)
at Updater.Program.UpdateFiles(String directory)
C:\Program Files (x86)\Mission Planner\MissionPlanner.Utilities.dll.new Failed.
System.UnauthorizedAccessException: Access to the path ‘C:\Program Files (x86)\Mission Planner\MissionPlanner.Utilities.dll.old’ is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalDelete(String path, Boolean checkHost)
at Updater.Program.UpdateFiles(String directory)
C:\Program Files (x86)\Mission Planner\MissionPlanner.Utilities.dll.new Failed.
System.UnauthorizedAccessException: Access to the path ‘C:\Program Files (x86)\Mission Planner\MissionPlanner.Utilities.dll.old’ is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalDelete(String path, Boolean checkHost)
at Updater.Program.UpdateFiles(String directory)
Update failed, please try it later.
Press any key to continue.

please reboot the device and try the update again.
if that does not work, try run as administrator.

it could be your virus scanner as well.

the error is saying it cant move a file because its in use. what the cause is i cant answer, as it will be something outside of missionplanner causing it.

did the error change at all when you run as admin?

it updated the main missionplanner exe. but it can other side affects causing instability if all those other files dont get updated as well.

the issue seems to be deleteing the *.old files in the MP install directory

running as admin should not give you any kinda of System.UnauthorizedAccessException error. there is something up with your pc