Digital-Sapphire / PyUpdater

Pyinstaller auto-update library
https://www.pyupdater.org
460 stars 92 forks source link

(Feature Request) Ignore errors on/do not copy spesific files when updating #333

Closed chucklay closed 2 years ago

chucklay commented 2 years ago

Hey there, this is admittedly a niche situation, but it would be very nice to have:

So, I have a package that is installed as a windows service using pywin32. This has worked out so far, but as part of pywin32, I have a .pyd file (servicemanager.pyd) that is included as part of my package. The problem is that windows (especially windows server) tends to lock this file and consider it in-use, even if my service isn't running. However, this file essentially never changes, so if it isn't copied over as part of an update, it's not a problem. However, I still want to keep this file in the generated packages for first installs.

It seems like having an option to ignore errors when copying over specific files would be the easiest "fix," but if there's already a way to accomplish this, I'd love to know!

Thanks!