Re: How to Install Plugin?
Re: How to Install Plugin?
- Subject: Re: How to Install Plugin?
- From: King Chung Huang <email@hidden>
- Date: Wed, 04 Jan 2006 21:22:06 -0700
I decided to reread the article on Finding Previously Installed
Software in the Software Distribution doc since Stéphane got it to
work. It turns out, it does work! The critical part that I missed was
in the Path Mappings topic where it says, "these paths should
correspond to the relative paths output by the lsbom tool." Using the
lsbom tool on my installer package showed that my paths were of the
form ./Contents/Resources/Animations/K2PluginSupport.sfxplugin…. So,
I restructured the package contents so that the bom contained my
items in the full path ./Applications/iWork/Keynote.app/Contents/
Resources/Animations/K2PluginSupport.sfxplugin…, and then everything
worked as expected. Based on all this, I don't think it's actually
necessary to reconstruct a full path in the package contents, but you
can get away with "stand-ins" for all the applications or location
you want the installer to find and fill in dynamically.
Hope all of that makes sense!
King Chung Huang
On Jan 4, 2006, at 2:35 PM, Stéphane Sudre wrote:
Did you try it without using UserLocation for the token name?
UserLocation is used for a different scenario according to the
documentation.
Try something like Keynote instead of UserLocation in both the
TokenDefinitions.plist and the IFPkgPathMappings.
This kind of search path has always worked for me AFIAK (sometimes
too well since on a few occasions I had to search where the
application was located).
On mercredi, janvier 4, 2006, at 08:45 PM, King Chung Huang wrote:
Hi,
I've been reading the Software Distribution doc on ADC and
searching through this mailing list, but I can't seem to figure
out how to locate an application so that I can install a plugin.
I've added a TokenDefinitions.plist file in the installer
package's Resources directory with the following:
<dict>
<key>UserLocation</key>
<array>
<dict>
<key>identifier</key>
<string>com.apple.iWork.Keynote</string>
<key>path</key>
<string>/Applications/iWork/Keynote.app</string>
<key>searchPlugin</key>
<string>CommonAppSearch</string>
</dict>
</array>
</dict>
In the package's Info.plist, I added an IFPkgPathMappingKey as
follows:
<key>IFPkgPathMappings</key>
<dict>
<key>./Applications/iWork/Keynote.app</key>
<string>{UserLocation}</string>
</dict>
The default location is:
<key>IFPkgFlagDefaultLocation</key>
<string>/Applications/iWork/Keynote.app</string>
But, Installer doesn't find Keynote and just installs into /
Applications/iWork/Keynote.app whether that path exists or not.
What am I missing?
Thanks,
King Chung Huang
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40wanadoo.fr
This email sent to email@hidden
---------------------------------------------------------------------
------------------
Wanadoo vous informe que cet e-mail a ete controle par l'anti-
virus mail.Aucun virus connu a ce jour par nos services n'a ete
detecte.
_______________________________________________
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