Digital-Sapphire/PyUpdater

Robocopy purge difference between overwrite and overwrite_restart in windows

Eduardo-Lopes opened this issue · 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!