Re: packagemaker installs as non-admin
Re: packagemaker installs as non-admin
- Subject: Re: packagemaker installs as non-admin
- From: "Adam Fisk" <email@hidden>
- Date: Wed, 31 Oct 2007 13:53:59 -0400
OK, so I *think* what happened last time I tested relocatable was that I chose /private/tmp/TempInstallDir as my install location when I was running the installer **rather than a directory under ~**. Looking at the installer logs, a relocatable installer flags if you're installing under home. If you are, then it stores your installer receipt in ~/Library/Receipts rather than in /Library/Receipts. So, that solves the receipts problem, and everything is more or less OK.
The big problem with this approach for me from a usability standpoint is that if the user chooses any directory other than a directory under ~, the install will fail. If it were possible to select a directory under home as the default install location, this would not be too big a deal. Unfortunately, though, it's not (unless someone has a solution I don't know about). As a result, many users installing under non-admin accounts would never have a smidgen of a chance of figuring this out, and would just experience the installer as failing.
There might be some way with a preflight script or some such to alter the default install location, I'm not sure.
For me, I'm sticking with my solution by the end of yesterday of just having the installer require administrator privileges. Under non-admin accounts, it will prompt you for the user name and password of an admin account. While far from ideal, I prefer that to the quirky install failure scenario described above.
I'm still in shock these are really the options we're left with, but I very much appreciate your help on this, Stephane.
All the Best,
-Adam
On 10/31/07,
Adam Fisk <email@hidden> wrote:
Your installer worked on a non-admin account for me, Stephane. Now I just have to figure out what the difference is between yours and mine (can't imagine what would make one able to write to /Library/Receipts and another not).
I'll report back tomorrow for everyone else's benefit, but thanks very much for taking the time to build the test.
-Adam
On 10/30/07,
Stéphane Sudre <email@hidden> wrote:
On mardi, octobre 30, 2007, at 06:00 PM, Adam Fisk wrote:
>
> > Am I missing something? Is there a way non-administrators can install
> > any PackageMaker managed installer?
>
> With a relocatable package, you can.
>
>
> Unfortunately packages that are relocatable still try to put the
> receipt in /Library/Receipts, and they therefore fail on any
> non-administrator account.
>
> The problem is not the location of the install, but only the attempt
> to put the receipt in /Library/Receipts.
Hmm, it works fine on my Mac (I'm using Jaguar for this test).
Sample package:
http://s.sudre.free.fr/files/test.tgz
When I change the default location to ~/, the file is correctly
installed.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (
This email sent to email@hidden
_______________________________________________
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