Re: Installer with per-machine and per-user selection
site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=WzldW58nl8DF77kktRCv4ICXxNcvcv9ASoe6jFFoWUM=; b=PJB/PpQXlMz9Zoo7oAEB8Zg+TV2WjVVm3FaKin/1OIvQ1u5BW55pFd7VqbP36JTRRw sSwIVE4+hWQKpzxEvEKFzehP6ihaarxYaP6ZZI4N7Xs65etZsEAZZFQO42Fzepcpxuq7 uZYCBlCw/6yH5oHAdS+bCfZXtEmD8pBK2yj3A= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=azOuWbmAIdn2fy+TdGaGW5ZbtiNARPPMxHwMBigBpyz3vBOfnP2YqhJRJ8IxMXLlBA Lrip+PITP9f524jtZcaWsAk1wKteXIpidVR+AHNE7e+akFMYiVZ1XZbnlzPMRCkPVvqg aMpIXxcJP1MpXeQDjLEnZLjthMeoglfu4sU2E= On Wed, Feb 2, 2011 at 2:29 PM, Stephane Sudre <dev.iceberg@gmail.com> wrote:
On Wed, Feb 2, 2011 at 12:27 PM, Rustam Muginov <rmuginov@gmail.com> wrote:
Hello all. I am trying to create an installer, using PackageMaker, which would allow some items to be installed either into /Library or into ~/Library folder. I can build such installer, it does allow me to select between "all users" and "only current user", but it does require administrator password for both installations. If i remove "admin authorization", when the installation to the /Library would fail. Is it possible to get rid from the redundant password request while installing to "~/Library" but ask for password while installing to "/Library"?
No, it's not possible
Maybe I should add something to explain why I'm writing this. - The possible domains are listed in the distribution script. - The authorization (admin password or note) is listed both in the distribution script and packages (and not having them in both places leads to strange results or errors). It would be strange if a distribution script could change the authorization requirements of a package (consider that a package can be remotely hosted and downloaded by a distribution installation). Moreover, the file permissions are defined in the package, and since these files can be installed in /Library, they need to be root/admin at least. I don't remember what the result is but I would tend to believe that when you change the target domain to ~/Library during installation, the owner and group are still root/admin after the files have been installed. So either that would mean that you can install root/admin files without being an admin or that the installation process would have to guess which owner and group it should set. your_uid/somegroup may be the obvious ones but there's no way to be sure. My $0.014 _______________________________________________ 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... This email sent to site_archiver@lists.apple.com
participants (1)
-
Stephane Sudre