Mac installers with pkgbuild: don't preinstall and postinstall script if downgraded

I made a package with pkgbuild. In info.plist, BundleIsVersionChecked is set to true. My package contains preinstall and postinstall script in the script folder.

The decline in my application package is truly prevented. But preinstall and postinstall script always run, even if the application package is not installed.

How can I tell pkgbuild not to pre-install and postinstall script when a downgrade occurs?

+2
source share

Source: https://habr.com/ru/post/1655176/


All Articles