Whitebox Packages: Install additional samples without deleting everything in the folder
-
So, to my surprise and great disappointment, I just discovered that my "updater installer" removes all samples from the existing sample library folder before placing in it a couple of new samples. Pretty damn insane.
Has anyone experienced this?
Do you know of a way to install new items in an existing custom folder without deleting everything already in it?
-
@gorangrooves I use my own installer from within my plugin I don't include the samples in the pkg.
-
@gorangrooves it shouldn't! Maybe post your packages proj?
-
@DanH Handy Drums- Studio Standard package 1.4.0-update only.zip
Here it is. The app files and plugins are ok, but not the samples. This is doing my head in.
-
After spending all day today trying every combination of file and folder permissions and whatnot, the solution came to me while away from it all.
If you want to update a folder by adding more files to it with a subsequent installer, you need to change the Identifier ID for that component. That's it. Even if adding a number to the end of the name.
The installer treats the entire bundle component as one, so regardless of how many files (less or more) you install, it removes everything that was previously installed with that same identifier. It keeps track of it somewhere on the computer.
-
@gorangrooves That sounds like a bad hack, the user will end up with a load of orphan bundle ids registered on their system. Maybe you can run a pre install script to deregister the id.
-
@d-healey There shouldn't be a problem as there wouldn't be many orphaned IDs. You can still choose to replace a particular bundle later with another one with the same ID, so this would be a way to go.
I heard from the developer of Packages, and he confirmed that this is the only way to do it. And it is not by his design, but rather by Apple's.