RE: Two PackageMaker problems
RE: Two PackageMaker problems
- Subject: RE: Two PackageMaker problems
- From: "Steve Johnson" <email@hidden>
- Date: Wed, 23 Feb 2005 10:06:31 -0800
- Thread-topic: Two PackageMaker problems
Hi Chris,
Thanks for replying. I hope you can help me figure this out...
I'm running a totally up-to-date Panther with XTools 1.5. Two other
engineers installed one of my early installers (before I fixed the
problem with a postinstall script), and they both saw the problem. I
assume they were both running Panther as well.
You can grab one of our installers off of out ftp site if you'd like to
take a look.
ftp://tmuser:email@hidden/mediarich/macosx/MediaRichDemos
.dmg
This installer is an add-on, so it won't install unless you first create
a file (with arbitrary contents) at:
/Library/MediaRich/Bin/MediaEngine/MediaGen
This installer fixes up the permissions with the 'postinstall' script.
It's a Perl script. If you edit that file in the package and comment
out the three system() lines under the comment "# Restore the standard
permissions...", then you can see what the installer itself is doing to
the permissions. Once you do this, / and /Library will get screwed up
by this installer.
I don't explicitly mention the IFPkgFlagOverwritePermissions flag at all
in my Info.plist file. The PackageMaker docs say this flag defaults to
'false'. I HAVE also tried setting it explicitly to 'false' with no
change in behavior.
Please let me know if you need anything else. Thanks!
S
> -----Original Message-----
> From: Christopher Ryan [mailto:email@hidden]
> Sent: Wednesday, February 23, 2005 9:05 AM
> To: Steve Johnson
> Cc: Matt DeFoor; email@hidden
> Subject: Re: Two PackageMaker problems
>
> In what version of Mac OS X are you seeing this? This shouldn't be
> necessary.
>
> Chris
>
> > Hi Matt,
> >
> > Thanks for the quick (like 2 minutes later...yikes!) response.
Yeah,
> > I'm doing the same thing. It's really lame that we should have to
do
> > this.
> >
> > So have you had this particular problem? Do you just set the
> > permissions back to the usual defaults, or do you go through the
> > trouble
> > of saving the exact state of these dirs before installing, and then
> > restoring them back to exactly what they were before. I guess I'm
> > wondering if someone would ever want to change the default
permissions
> > on these dirs, and therefore be pissed when my installer restores
the
> > default settings. Does Apple know about this problem?
> >
> > Take care,
> >
> > Steve
> >
> >
> >> -----Original Message-----
> >> From: Matt DeFoor [mailto:email@hidden]
> >> Sent: Wednesday, February 23, 2005 8:54 AM
> >> To: Steve Johnson; email@hidden
> >> Subject: Re: Two PackageMaker problems
> >>
> >>> 1) My installers clobber the ownership and permission flags of the
> > root
> >>> folders into which they install, even though I have
> >>> 'IFPkgFlagOverwritePermissions' flag set to 'false'. For example,
> > if I
> >>> install in /usr/local/bin, my installer changes the permissions on
> > /,
> >>> /usr, /local, and /bin. I've tried building packages both from
the
> >>> command line and using the PackageMaker GUI, with the same
results.
> >>> This seems so fundamentally busted, that I figure I must be
missing
> >>> something. Please HELP!!!
> >>
> >> I use a postinstall shell script to solve these sorts of problems.
> >>
> >> Cheers,
> >> Matt
> >
> >
> > _______________________________________________
> > 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
_______________________________________________
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