• 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
Re: Using scripts to get info about a custom install location
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using scripts to get info about a custom install location


  • Subject: Re: Using scripts to get info about a custom install location
  • From: Iceberg-Dev <email@hidden>
  • Date: Thu, 23 Apr 2009 16:28:48 +0200


On Apr 22, 2009, at 8:18 PM, Andrew Peckover wrote:

Using PackageMaker 3.0.3(174) and OS 10.5.6.

My program installs to '/Applications/MyProgramFolder' by default, however the user can change the install location to the home directory or another volume. They can also 'customize' and choose any other location.

These are often upgrades, and the user will often already have files installed in that location. I need to check some things about the files in the destination folder, for example if a certain file exists. Then based on that info, allow/prevent the installation or give an informational message.

I am making some scripts, but I don't know how to determine what the installation folder is. For example, I could open the "destination folder" in Finder by using "open $2". $2 is an environment variable for the path to the destination folder. But this always gives me the defualt path, and not the actual path that the user selected in the Custom Install window, or the Select a Destination window.

How can I find out what path the user selected?

It might be possible to get this information for bundles using the search features in JavaScript. But the search features are undocumented (and they are not working that well apparently).



_______________________________________________ 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
References: 
 >Using scripts to get info about a custom install location (From: "Andrew Peckover" <email@hidden>)

  • Prev by Date: Location column in the Custom Install screen.
  • Next by Date: Re: Location column in the Custom Install screen.
  • Previous by thread: Using scripts to get info about a custom install location
  • Next by thread: Location column in the Custom Install screen.
  • Index(es):
    • Date
    • Thread