• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Ask if user ok to replace its browser default homepage during installation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ask if user ok to replace its browser default homepage during installation


  • Subject: Re: Ask if user ok to replace its browser default homepage during installation
  • From: Erik Berglund <email@hidden>
  • Date: Thu, 03 Nov 2016 10:49:13 +0100

If you are a developer distributing this application, changing the user home page without their consent should never be done.

Therefore, you should create a plugin with a checkbox, and then read the user selection in your post-install and change if the user accepted.

As Conor said, this only applies when the pkg is installed in the GUI. if run from the command line or by any of the tools mentioned, the plugin would never be shown and the user response should always be no in that case, ie. the pkg should never change user home page settings in that scenario.

If you’re an administrator and have a company policy to enforce the browser home page, then as Conor said, manage that in a separate way than tying it into this package.

On 3 Nov 2016, at 09:41, Eugene Kondrashev <email@hidden> wrote:

Hi Conor,

Thank you for you response, it definitely helps. 
I'll look into second option, will appreciate any reference/example on the post-install script example

Thanks,
Eugene

2016-11-02 11:07 GMT+02:00 Conor Schutzman <email@hidden>:
XCode includes both product templates as well as documentation for making an Installer plugin.

That said, arguably the most important fact about such a tool is that the command-line version of 'installer' doesn't execute them. This makes them incompatible with many of the software deployment tools (Casper, Munki, etc).

Instead, you could force a custom install, and then hide/lock the settings for all of the component packages save for the package that makes this change. This would effectively require user interaction (though be careful what your default is, as many users will accept that, possibly even without reading the custom install screen).  This method shares the same limitations as an installer plugin, as many software deployment tools would effectively suppress this custom install option. 

Another alternative (and frankly the route I would take) would be to create a separate package for this option, but with no payload. In either the pre or post install scripts you could then use AppleScript dialogs to present the question to the user and then take action based on the response.

I hope that helps.
Conor

On Nov 2, 2016, at 1:18 AM, Eugene Kondrashev <email@hidden> wrote:

Hi community,

I have a java application which I'm succeed creating dmg package for. 
At the next step, I'd like to create an installer package with custom action. I'd like to suggest a user to replace its browser home page and do that if user accepts the step.

I found productbuild tool accepts plugins option, but found no documentation on how to create a plugin that will address custom step requirement.

I've also tried Packages application, also allowing plugins for the custom installation steps, but again found no documentation on how to create a plugin.

I'd appreciate any hint/example on how to achieve browser default homepage replacement during installation.

Thanks,
Eugene 
Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Ask if user ok to replace its browser default homepage during installation (From: Eugene Kondrashev <email@hidden>)
 >Re: Ask if user ok to replace its browser default homepage during installation (From: Conor Schutzman <email@hidden>)
 >Re: Ask if user ok to replace its browser default homepage during installation (From: Eugene Kondrashev <email@hidden>)

  • Prev by Date: Re: Ask if user ok to replace its browser default homepage during installation
  • Next by Date: Re: Ask if user ok to replace its browser default homepage during installation
  • Previous by thread: Re: Ask if user ok to replace its browser default homepage during installation
  • Next by thread: Re: Ask if user ok to replace its browser default homepage during installation
  • Index(es):
    • Date
    • Thread