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

Using scripts to get info about a custom install location


  • Subject: Using scripts to get info about a custom install location
  • From: "Andrew Peckover" <email@hidden>
  • Date: Wed, 22 Apr 2009 11:18:38 -0700

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?
 
Thanks,
Andrew
 
 _______________________________________________
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

  • Follow-Ups:
    • Re: Using scripts to get info about a custom install location
      • From: Iceberg-Dev <email@hidden>
  • Prev by Date: Re: Difference in installer plugins from 10.4 to 10.5
  • Next by Date: Re: Environment variables available only from Cocoa apps
  • Previous by thread: Re: How to determine if user's computer is PowerPC or Intel
  • Next by thread: Re: Using scripts to get info about a custom install location
  • Index(es):
    • Date
    • Thread