• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: how to change folder attributes from postinstall (missing SetFile?)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to change folder attributes from postinstall (missing SetFile?)


  • Subject: Re: how to change folder attributes from postinstall (missing SetFile?)
  • From: Mario Emmenlauer <email@hidden>
  • Date: Thu, 23 Oct 2008 19:42:04 +0200


Hi,

Iceberg-Dev wrote:
On Oct 23, 2008, at 7:01 PM, Mario Emmenlauer wrote:
I have an installer that works very well as long as I have 'Include
Root in Package' enabled. When I disable it, the Icons for the app-
lication bundle don't show up until the user reboots.

The reason seems that PackageMaker creates the root folder (instead of
unpacking it), and therefore the folder lacks attributes?!


Using 'SetFile -a C /Applications/Folder.app' from a postinstall-script, I can make the Icons appear. However, SetFile is not available on the users machines.

Whats the right tool to use on a users machine to set folder attributes?

It's pretty easy to write one, you only need to play with the FSCatalogInfo data.


That is really simple to write, thanks for the hint!

However, it seems awkward to write, distribute and maintain an extra
cmdline-tool, only to set the icon-attribute once after installation.
(Especially given that (a) the attribute would be most conveniently set
by PackageMaker, and (b) is not needed to be manually set, if I uncheck
a PackageMaker flag).


There should be a cmdline tool (or other cmdline way) in a base OS X installation that lets users change attributes, isn't there? That would be very awkward.

Cheers,

   Mario

_______________________________________________
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


  • Follow-Ups:
    • Re: how to change folder attributes from postinstall (missing SetFile?)
      • From: "Steffan A. Cline" <email@hidden>
    • Re: how to change folder attributes from postinstall (missing SetFile?)
      • From: Mario Emmenlauer <email@hidden>
    • Re: how to change folder attributes from postinstall (missing SetFile?)
      • From: "Steffan A. Cline" <email@hidden>
References: 
 >how to change folder attributes from postinstall (missing SetFile?) (From: Mario Emmenlauer <email@hidden>)
 >Re: how to change folder attributes from postinstall (missing SetFile?) (From: Iceberg-Dev <email@hidden>)

  • Prev by Date: Re: easy uninstaller solution
  • Next by Date: Re: easy uninstaller solution
  • Previous by thread: Re: how to change folder attributes from postinstall (missing SetFile?)
  • Next by thread: Re: how to change folder attributes from postinstall (missing SetFile?)
  • Index(es):
    • Date
    • Thread