版本:fishlee.net.simpleupdater.4.3.0.0
.net是4.0
调用方式: updater.StartExternalUpdater();
报错:
System.IO.IOException: The process cannot access the file 'C:\Users\admin\AppData\Local\Temp\54ff78a2-14a4-4b83-a48c-3f24b05cb8bb\AutoUpdater.exe' because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at System.IO.File.WriteAllBytes(String path, Byte[] bytes)
at FSLib.App.SimpleUpdater.Updater.CopyAndStartUpdater(String[] ownerProcessList)
at FSLib.App.SimpleUpdater.Updater.StartExternalUpdater(String[] ownerProcess)