RE: Destination Folder
RE: Destination Folder
- Subject: RE: Destination Folder
- From: "Mark Krenek" <email@hidden>
- Date: Wed, 13 Jun 2007 15:17:21 -0500
- Thread-topic: Destination Folder
Title: RE: Destination Folder
I had a similar problem trying to update existing software on the user's system. My solution was to write a plugin. The plugin locates the user's software and displays that location. If there are multiple installations, it displays those and let's the user pick which one to update. Now here's the real trick. When the user picks which installation to update, a symlink to that location is written to /tmp/someuniquenameyoumakeup. And the installation .pkg file is designed to install it's software at /tmp/someuniquenameyoumakeup. (You also need to turn on IFPkgFlagFollowLinks to make this magic work.) Therefore. the package ends up installing its payload where you want it to without it having to know ahead of time where that location will be. It took quite a bit of work to get this all worked out, but presents a great solution to a problem I could never get Installer/PackageMaker to do on its own.
Hope this helps.
Mark Krenek
Aspyr Media
-----Original Message-----
From: installer-dev-bounces+mark=email@hidden on behalf of Howard Shere
Sent: Tue 6/12/2007 2:55 PM
To: email@hidden
Subject: Destination Folder
I need a way to programatically determine the destination folder for
something I am going to install. I saw some similar questions posted
several years ago on this list, but with no answers.
I can build an installerplugin, but I can't find any documentation on
how my plugin can interact with the installer to tell it where the
destination folder will be.
Howard Shere
http://www.livejournal.com/users/realgreendragon/
Altair 8800a to Mac OS X so far...
_______________________________________________
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