On Mar 24, 2012, at 9:09 AM, Don Montalvo wrote:

> Stefano Mori <[email protected]> wrote:
> 
>> Can packagemaker put soft links into a pkg? 
>> 
>> Take for example Office 2011 which has various soft links in amongst its 
>> folder structure in /Applications. 
>> How can I package that?
>> 
>> It is odd also because, when inspecting the contents of some pkg archives, I 
>> see their creators have somehow put soft links into the archive, but when 
>> I've tried running packagemaker on a folder containing soft links, it seems 
>> to harden the links into real file copies, or follow the links and end up in 
>> loops and crash.
>> 
>> I've resorted to using a postinstall script to create the soft links, but 
>> presumably there's a proper way?
> 
> Adobe Application Manager Enterprise Edition (AAMEE) has the same problem. 
> The /Library/ColorSync/Profiles/Profiles and 
> /Library/ColorSync/Profiles/Recommended FOLDER ALIASES get converted to 
> actual FOLDERS. This causes the AAMEE generated PKG to fail when pushed to 
> target computers. Adobe is aware of the AAMEE issue and I believe they are 
> working to resolve it.
> 
> In the old days we used FileScripter Pro and InstallerVISE (both were bundled 
> with NetOctopus) to create packages. That combo did not have a problem with 
> aliases.

The app could follow the link, when you want to replace the link (treat it as a 
file). Or the app could replace the link (treat as file), when you to to follow 
the link. Either is possible, even if the former might seem more likely.

Always following the link makes it impossible to replace the link. Whereas 
always replacing the link makes it possible to either replace the link, or 
update the contents in the link if you use the real path.

Clearly the example applications are treating links as files. The work around 
is to use the real paths instead of trying to follow the link.

So in the example, the real paths are:

/Library/Application\ Support/Adobe/Color/Profiles 
/Library/Application\ Support/Adobe/Color/Profiles/Recommended

I'm not immediately thinking of any advantage of inserting profiles into the 
former. The advantage of the latter is those profiles show up in Color Settings 
when the panel is not set to More Options.

Chris Murphy
_______________________________________________
MacOSX-admin mailing list
[email protected]
http://www.omnigroup.com/mailman/listinfo/macosx-admin

Reply via email to