I create an application installer with pkgbuild and productbuild tools on OS X. The package I create installs my application to /Application folder. Now, if I move this application to another location using NSFileManager(using another my app), my package will reinstall it to the new location but the /Application where it is intended to be installed.
This looks like some file path caching, can I somehow "flush the cash" so my pkg will install app to the right location?
I noticed this on Mavericks and El Capitan. I believe this is true for Yosemite too.