Packages(.app) owner/group question
Packages(.app) owner/group question
- Subject: Packages(.app) owner/group question
- From: Stephen Kay <email@hidden>
- Date: Fri, 03 Mar 2017 18:28:15 -0700
- Thread-topic: Packages(.app) owner/group question
I am in the process of making my first Packages Installer and replacing a
MindVision VISE installer I've used for years.
First, must say Packages rocks! I really like it, kudos to Stéphane Sudre,
great program. I built an installer that did most of what my VISE X one
did within an hour, including installing various pieces of a third-party
driver system that goes along with it in system level folders.
But I do have a problem with privileges. When I have it install my app in
the /Applications folder, the default is that it gets installed with the
owner/group attribute of root : admin. When the application is launched,
it tries to open a Resources file that is in the app's package contents.
This now fails and returns an error of:
afpAccessDenied = -5000; // insufficient access privileges for operation
Whether or not my (old) app is trying to open this file in the best way or
not is not the issue, it's worked for 20+ years when installed with the
VISE installer, so I just want to get the owner/group right.
When installed with VISE, the app ends up with owner/group "stephen/staff"
(stephen is my account, the current user I guess).
So, in Packages, when I look at the Attributes in the Payload tab, for
owner there's a huge list of things, and at the bottom I see daemon, root
and stephen (my account). So if I select "stephen" and then "staff" in
group, is this equivalent to specifying the current user on the customer's
machine?
I did build a test installer package with it set to this and indeed it
works as it used to, so I just want to make sure that this "fix" will
translate to users machines correctly.
Thanks,
- Stephen
_______________________________________________
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