PyUpdater icon indicating copy to clipboard operation
PyUpdater copied to clipboard

Robocopy purge difference between overwrite and overwrite_restart in windows

Open Eduardo-Lopes opened this issue 3 years ago • 0 comments

Hi,

There's a difference between the strategy of directory copy in pyupdater/client/updates.py

_win_overwrite => robocopy "{}" "{}" /e /move /V /PURGE > NUL and _win_overwrite_restart => robocopy "{}" "{}" /e /move /V > NUL

In my application I have a policy of urgent and non urgent update, and that changes the update, to restart imediatelly or wait the application restart.

So, imho, the "Non Purge" strategy is better because I create config file in application folder and the update cleans the configuration between updates!

Eduardo-Lopes avatar Jul 21 '21 18:07 Eduardo-Lopes