Installer hangs when quit from Installer plugin

Hello,

We have an installer plugin as part of installation, which is responsible for checking few product related logic, eg: authentication etc. When certain conditions are not met installation will be aborted with an alert message and then [[NSApplication sharedApplication] terminate: self]; called on clicking "ok" on Alert.

This is having issue starting with 10.15.x, that on calling terminate, Installer app is putting up a message " The "XXXX" installer encountered an error and "Install Anyway" and "Quit" and also Installer app becomes unresponsive.

Any pointers on how can we avoid this alert from installer app being displayed, how to gracefully abort installation.

With the current situation user is not able to click any button , but if they will be able click we need to avoid "Install anyway" since this may cause erroneous installation.


This may be related to the sandboxing of Installer Plugins.

It might be preferable to only disable the Continue button if the conditions are not met and invite the user to quit the application.

Side note: The issue when you check requirements through an Installer Plugin is that these requirements will not be checked when the installation is run from the command line or through a deployment solution (b/c the Plugin will not be loaded). So this would end up in the erroneous installations you mentioned.

Installer hangs when quit from Installer plugin
 
 
Q