site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com On Aug 14, 2008, at 7:51 PM, Gignac, Jason (HAS-SAT) wrote: Is there any particular documentation on the why-and-wherefores of the discouragement against pref-writing? A few thoughts on this topic: _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... Another option, of course, would be, perhaps, to make a login-hook that sets the preferences, then knocks itself out. You have to figure out how to make it interoperate with any existing login hook, but that's not an insurmountable obstacle. - As a developer, it's a bad idea to write default preferences using the installer. - As a developer, it's also a bad idea to rely on the installer for serial number registration (one of the bug in the first Office 2008 distribution). - As an admin person, it's perfectly right to want to provide some default preferences when deploying a solution. It's a special case. - As a developer, you may also want to provide pre-serialized copy of your software for site deployment. Again, it's right to write it with the installer. It's a special case. - You don't have to worry about Admin/root authentication for scripts as long as you use the $USER env. I tend to believe whoami will return root. $USER will return the current session user (http:// s.sudre.free.fr/Stuff/Installer/Installation_Scripts/ InstallationScripts-FAQ001.html). This email sent to site_archiver@lists.apple.com
participants (1)
-
Stéphane Sudre