Installing package choice in a custom location
Installing package choice in a custom location
- Subject: Installing package choice in a custom location
- From: Kevin Molcard <email@hidden>
- Date: Mon, 14 Mar 2011 14:18:57 +0100
Hi all,
I have some trouble to create a package that fit all my requirement.
I want to create a package with 2 choices, one for my application itself
and one for some extra files that my application can handle.
I want to allow the user to choose the destination of the second
choice.This packages is targeted for 10.5 and 10.6 on Mac Intel only.
The default path is something like "/Library/My Company/My
Application/My Folder To Install"
I achieved to something quiet good with package maker and the choice
destination, the problem is that it does not work on 10.5.
It seems that Installer don't see the folder hierarchy and install it in
"/My Folder To Install".
I found a workaround here :
http://homepage.mac.com/simx/technonova/tips/packagemaker_and_installer.html
I copy/paste what is related to my problem:
/"Problem:/You want to install items to global folders while
constructing your installer using PackageMaker./Solution:/Change the
destination for each item in your choice to the correct install
path./Pitfall:/Installation fails to install items to the correct
locations. Randomly. Installer does not inform the user that the install
failed.
/Details:/This is just annoying. You specify a destination path for your
files, and they just don’t get installed.
/Workaround:/Create a folder for all the global paths, and then install
to/. For example, if you wanted to install to the global applications
folder, you’d create a folder named “Applications”, add that to your
list of contents, and then specify the install location as/. Or, if you
want to install to the global internet plug-ins folder, you’d create a
folder called “Library”, inside of which you’d put a folder named
“Internet Plug-ins”, inside of which you’d put the plug-ins you want to
install. Then you’d drag the “Library” folder to your list of contents,
and specify the installation destination as “/”.
There are two very important options that you need to be aware of when
using this method. First, you do not want to overwrite the permissions
on the global folders. It would be bad if you set the owner of
the/Applications/or/Library/folders to something other than their defaults.
To make sure this doesn’t happen, double-click on one of the contents in
the list, or select one of the contents and choose [Package —> Package
Flags…]. Make sure that “Overwrite Directory Permissions” is*not checked*!
Now, you need to make sure that the installer knows that it’s installing
your items/inside/those global folders. To do so, click on one of the
packages in the list of contents, and then click on the “Contents” tab.
Here, make sure the “Include root in package” box is checked. In our
examples above, this causes the package to “install”
a/Applications/folder, but since it already exists, it doesn’t touch the
permissions and installs the files just where you want them."
As you can see, it is a workaround and now that I send my application to
testers, they complaint because the installer doesn't put the files
exactly where they have selected.
I tried both Packages and Iceberg but didn't find any way to change the
destination for one choice inside my package.
Any help will be very appreciated.
Thanks in advance
Kevin
--
Kevin Molcard
Sofware Engineer
ARTURIA
4 chemin de Malacher
38240 Meylan - France
Tel: +33 438 020 555
Fax: +33 438 020 525
<http://www.arturia.com>
_______________________________________________
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