launched just after the user clicked on the "Install" button.

This script is launched just after the user clicked on the “Install” button.
Do you have the function with cmake on macos and linux?