Summary
As reported on Discord, sync software will block the relaunch after update.
Confirm the following statements
Description
Syncing software will often lock a new file for hashing and then upload, preventing the application from successfully relaunching after updating itself.
Expected behavior
The application should ideally be able to relaunch itself in a sync software monitored folder.
Steps to reproduce
- Place software in a sync software monitored folder.
- Update.
Environment
N/A
Acceptance criteria
Additional information
Thoughts:
- Add a simple wait for ~10 seconds ontop of relaunch execution fail to await file lock for hashing by sync software.
- Use
UseShellExecute = true for a different kernel path for the call that may be more successful in stong-arming the sync softwares lock.
- Wrap
Process.Start in a retry loop with a max time falldown and a throw to inform manual relaunch is required.
- Show an additional prompt if detected as running in a sync folder when updating to inform the user that it may interfere and that they might need to manually relaunch.
Summary
As reported on Discord, sync software will block the relaunch after update.
Confirm the following statements
Description
Syncing software will often lock a new file for hashing and then upload, preventing the application from successfully relaunching after updating itself.
Expected behavior
The application should ideally be able to relaunch itself in a sync software monitored folder.
Steps to reproduce
Environment
N/A
Acceptance criteria
Additional information
Thoughts:
UseShellExecute = truefor a different kernel path for the call that may be more successful in stong-arming the sync softwares lock.Process.Startin a retry loop with a max time falldown and a throw to inform manual relaunch is required.