Change Package choice location with install script (was Re: Installing package choice in a custom location)
site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 Thanks in advance Best Kevin Hi all, I just bump this post because I still don't achieve to do that. Any help on this will be VERY MUCH appreciated :-) Best Kevin I copy/paste what is related to my problem: 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 (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... Hi All, since I didn't receive any answer on my previous question I decided to use the workaround I found. Now I have another question :-) . Is it possible to change the Choice Location with a script (InstallationCheck or VolumeCheck) before showing it to the user? I want to do that for an update installer. The user could have installed the package in a custom location and I want to set the default destination to this one. On 3/21/11 9:50 AM, Kevin Molcard wrote: On 3/14/11 2:18 PM, Kevin Molcard wrote: 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 /"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. This email sent to site_archiver@lists.apple.com
participants (1)
-
Kevin Molcard