OSX packageMaker need to close all browsers during install

750 views Asked by At

I am developing a browser plugin which I want to package and distribute. I would like to know how can I prompt a user to close all browsers during installation. I want to use PackageMaker for creating the installer.

Is there a better alternative ?

thank you

2

There are 2 answers

1
Yuji On

Making users to quit browsers is futile, in my point of view. Many non-browser programs use webview (OS X's standard view showing html), which might be loading your plugin.

It would be easier to set your package so that it requires re-login or re-boot of the computer.

0
catlan On

I agree with the previous poster, forcing the browser to close will get you Adobe/Microsoft like hate from your users, including me.

But you can do it with the must-close tag in the Distribution.xml:

<!-- Lion and above App Closing -->
<pkg-ref id="com.company.pkg.SomeBrowerPlugin">
    <must-close>
        <app id="com.apple.Safari"/>
    </must-close>
</pkg-ref>

More details on package generation here.