Re: [Q] PackageMaker 3.0.2 and intall requirement
site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-YMail-OSG:X-Yahoo-Newman-Property:Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=mpbb5yCUdPj8lQTaI2Qoh+sKEImDshvuPlyJfRbPC+HrMZHUwjIxIb4It9+Bs1wfzvmkWOxHkEkAObBWBbWgVEX7TSAMsrNW2VibbtxJpeMugVeCRQy7Nmm9O/G7AD+SQCpIVgDsYkUKIoicChe8+qn2e3MZzj8BThPHcVdfl8o= ; User-agent: Thunderbird 2.0.0.19 (Windows/20081209) It looks normal. The some part of the distribution.dist is : Thank you. On Mar 2, 2009, at 9:23 AM, JongAm Park wrote: Hello. I set the component B's requirement like this. if : Choices choice : componentAchoice property : selected is : == true On Failure Selected : No, Start Selected: Unchanged Enabled : Unchanged. Start Enabled: Unchanged Hidden : Unchanged, Start Hidden : Unchanged The choice ID of the component A is componentAchoice. _______________________________________________ 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... <?xml version="1.0" encoding="utf-8"?> <installer-script minSpecVersion="1.000000" authoringTool="com.apple.PackageMaker" authoringToolVersion="3.0.3" authoringToolBuild="174"> <title>test</title> <options customize="allow" allow-external-scripts="no" rootVolumeOnly="false"/> <script> function pm_testcontrollerchoice_selected() { result = true; result = result && (choices.testTool_choice.testTool_choiceProperty == true); return result; } function pm_testcontrollerchoice_enabled() { result = true; result = result && (choices.testTool_choice.testTool_choiceProperty == true); return result; }</script> <choices-outline> <line choice="testToolchoice"/> <line choice="testcontrollerchoice"/> </choices-outline> <choice id="testToolchoice" title="testTool"> <pkg-ref id="com.myCompany.test.testTool.pkg"/> </choice> <choice id="testcontrollerchoice" title="testController" selected="pm_testcontrollerchoice_selected()" enabled="pm_testcontrollerchoice_enabled()"> <pkg-ref id="com.myCompany.test.testcontroller.pkg"/> </choice> <pkg-ref id="com.myCompany.test.testTool.pkg" installKBytes="248" version="1" auth="Root">file:./Contents/Packages/testTool.pkg</pkg-ref> <pkg-ref id="com.myCompany.test.testTool.pkg"> <relocate search-id="pkmktoken20"> <bundle id="com.myCompany.testTool"/> </relocate> </pkg-ref> <pkg-ref id="com.myCompany.test.testcontroller.pkg" installKBytes="60" version="1" auth="Root">file:./Contents/Packages/testcontroller.pkg</pkg-ref> <locator> <search id="pkmktoken20-1" type="component"> <bundle CFBundleIdentifier="com.myCompany.testTool" path="/Applications/testTool.app"/> </search> <search id="pkmktoken20-0" type="script" script="pkmktoken20_combined()"> <script> function pkmktoken20_combined() { function pkmk_add_results_to_array(results, array) { for(i = 0; i < results.length; i++) array.push(results[i]); } var result = new Array(); var search; search = my.search.results['pkmktoken20-1']; if(search) pkmk_add_results_to_array(search, result); return result; } </script> </search> <search type="script" id="pkmktoken20" script="pkmktoken20_final()"> <script> function pkmktoken20_final() { var combined = my.search.results['pkmktoken20-0']; return combined; } </script> </search> </locator> </installer-script> dev.iceberg@gmail.com wrote: I would like to make a component B is to be installed when a component A is selected to be installed. Users can toggle whether to install the component A or not. So, whether to install the component B or not is determined. To me, the setting above looks right, but it doesn't work. Is there something wrong? What does the generated Javascript code look like in the distribution script? (You can use the FlatPackage editor or inspect the package with Pacifist depending on the OS version you target). This email sent to site_archiver@lists.apple.com
participants (1)
-
JongAm Park