• 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
Installer for a plug-in
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Installer for a plug-in
      • From: Hiroshi Saito <email@hidden>
  • Prev by Date: 8 to 24-bit tiff images
  • Next by Date: NSFileManager and rename file
  • Previous by thread: Re: 8 to 24-bit tiff images
  • Next by thread: Re: Installer for a plug-in
  • Index(es):
    • Date
    • Thread