Re: postinstall scripts not executing
Re: postinstall scripts not executing
- Subject: Re: postinstall scripts not executing
- From: Stéphane Sudre <email@hidden>
- Date: Fri, 15 Aug 2008 13:52:15 +0200
On Aug 14, 2008, at 7:51 PM, Gignac, Jason (HAS-SAT) wrote:
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.
Is there any particular documentation on the why-and-wherefores of the
discouragement against pref-writing?
A few thoughts on this topic:
- 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).
_______________________________________________
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