packages icon indicating copy to clipboard operation
packages copied to clipboard

Overwriting old files.

Open DaveHoskins opened this issue 1 year ago • 3 comments

Hi, I can't seem to get packages to install new files over old ones. How do I force it to overwrite? I'm on version 1.2.11 - I can't remember how to get later versions. The web site only seems to have 1.2.10

DaveHoskins avatar Oct 19 '24 16:10 DaveHoskins

As I ask for a password anyway this seems to work, is it correct?... A pre-install bash script with: sudo rm -rf [filename]

DaveHoskins avatar Oct 19 '24 18:10 DaveHoskins

I can't seem to get packages to install new files over old ones.

files or bundles?

sudo rm -rf [filename]

It's usually recommended if you want to uninstall old files that are not known to the installation mechanism (b/c they were installed or created outside of the scope of the installation process or someone did make the installation mechanism forget about a previous version of the installation package).

If you end up using this solution, at least make sure to use absolute path for the command line tools used in the script.

packagesdev avatar Oct 22 '24 21:10 packagesdev

Thanks for the reply. The plug-in bundles are all mine, and I need people to be able to update them, without having to manually delete them. They are always stored in the same location. But it doesn't over write existing folders and files, so customers believe they have updated, but they are still using the old version. It's very frustrating.

DaveHoskins avatar Oct 23 '24 14:10 DaveHoskins