How can I preserve the attributes for the files with resource forks?

asked 14 Sep '11, 11:08

Jake's gravatar image

Jake ♦♦
accept rate: 98%

In some cases, when building installer for OS X platforms, you may need to add the piece of code below in your xml project in order to correctly preserve the attributes for the file with resource forks.

 <changeOSXAttributes creator="creator_code" files="${installdir}/path/to/your/file" type="application_type" />

You can get the right attributes values for creator and type using the GetFileInfo tool:

/Developer/Tools/GetFileInfo /path/to/your/file

answered 14 Sep '11, 11:10

Jake's gravatar image

Jake ♦♦
accept rate: 98%

The problem with your mac bundle not launching after being built on Windows is likely a problem with the files permissions. Windows doesn't understand unix style file permissions and seems to gobble them up in processing the installer creation (I'm guessing that because it doesn't understand them it mangles them when it packs or something). I would suggest building your installers for all three platforms on either Linux or Mac (they both understand Windows file permissions).


answered 15 Oct '12, 11:14

Bob%20Gardner's gravatar image

Bob Gardner
accept rate: 0%

I'm testing Installbuilder on Win and for the OS X version it builds, the program ( which get installed can't be launched (though it appears to be identical to my source I tried this method but I get an "error changing type attribute" error at the end of the Mac installation.

The code I used is something like this: <changeosxattributes files="${installdir}/" type="avbstClinmedz"/>

That string for application_type was obtained with Getfileinfo.

The is a Flash projector. Maybe the problem is that WIn sees it as a directory?

It just doesn't launch ....


answered 30 Nov '11, 11:43

flablo's gravatar image

accept rate: 0%

Sorry, I'm not sure I understand the issue. Are you testing the installed bundle on Windows?

(16 Dec '11, 04:44) juanjo ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 14 Sep '11, 11:08

Seen: 1,972 times

Last updated: 15 Oct '12, 11:14