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
|