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:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=DJT2WCpyAExSNPFGx6FUyDqMaaxWoYx6zDiq5zC1ds0=; b=COqZtS6Aeg0BNEpJVgK49QcV+wStHByb0azTcnRzcSjRrBsqduyHsxLhulS3RF21Lq 0tt2mQqSuwIYQxwuxvY4BDkBNjna1WA6Ri0k11Hj6bCIW8Pn43jVfPhOc7iBeb1c/Yj1 le6ZOFdVr6bHQP/DwZnvjEUJaAbCacADLvvPg= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=rFjA9Qig8wApX2xeMBFN+Uv/vTtcr0mTYTwS8NIYFXFadxcEMopLHhBqT509UXWJUj qzsXWBxqzH09jsPEJovzWptlwO2anOqIk984HylmH7jl211g10QujP5FvljlYdK74c1G vXrDY8YgRSdlrljMJCKek2Rvv+XlJnRBbTGzk= User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; sv-SE; rv:1.9.1.1) Gecko/20090715 Thunderbird/3.0b3 Hi, I'm writing an Installer plugin which needs to perform a privileged operation (writing to a system-wide preference file), and I'm wondering how I can reuse the authorization already made when installing the files. I have witnessed many installer plugins that execute after the file copy stage that make changes to otherwise protected files without requiring the user to re-authenticate, but I cannot understand how they do it. Currently, I create a new Authorization reference and have the user authenticate, which means the user will have to type its password in a new authentication dialog, before calling a helper tool with AuthorizationExecuteWithPrivileges to carry out the actual operation. I would really like to avoid having the user type its credentials in two dialogs in a row (first for copying files, second for writing to the preference file). Any hints would be welcome... Regards, - Erik P.S. I sent the previous email from the wrong address. Blame Thunderbird. _______________________________________________ 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