Installer for a plug-in
Installer for a plug-in
- Subject: Installer for a plug-in
- From: Michael Ditz <email@hidden>
- Date: Tue, 01 Feb 2005 12:42:59 -0500
All,
I have the task to write an installer for an Adobe Reader 7.0 plug-in. What we want to do is use PackageMaker to write an installer for this. So we have a plug-in file that needs to go into 'Adobe Reader.app/Contents/Plug-ins'. The problem is that the user can install Reader anywhere, and rename the .app. Is there a way to do this with Token Definitions? Or how would you let the user pick the location? I expected I could write a UserLocation search to find the real location of Reader and install into that. Here's what I tried in TokenDefinitions.plist (minus DTD header info):
<dict>
<key>UserLocation</key>
<array>
<dict>
<key>searchPlugin</key>
<string>CommonAppSearch</string>
<key>path</key>
<string>/Applications/Adobe Reader 7.0/Adobe Reader 7.0.app</string>
<key>identifier</key>
<string>com.adobe.Reader</key>
</dict>
</array>
</dict>
And the section from info.plist:
<key>IFPkgPathMappings</key>
<dict>
<key>./Applications/Adobe Reader 7.0/Adobe Reader 7.0.app</key>
<string>{UserLocation}</string>
</dict>
The IFPkgPathMappings key matches output from lsbom. I've tried many combos. I guess I don't understand how this matches up.
The code above seems to do nothing.
Any advice would be greatly appreciated on how to do this task.
Thanks,
Mike
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden