Re: Conditional install of special package under 10.2
site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com User-agent: Microsoft-Entourage/11.1.0.040913 On 01.06.2005 21:19, "Sanford Selznick" <sanford-apple-list@selznick.com> wrote:
And inside:
--- my $EXIT_VALUE = 0;
The first line should be: #!/usr/bin/perl Or you can make it a shell script by specifying /bin/sh here. Interestingly, Installer crashes for me (on 10.4.1) if I remove this "#!" comment (stack trace below). Besides, to quote a paraller thread:
Since you cribbed the code from an Apple InstallationCheck (that's fine), you also need to grab the part of the script that defines the CheckVersion() function.
Here is the stack trace: Command: Installer Path: /Applications/Utilities/Installer.app/Contents/MacOS/Installer Parent: Installer [683] Version: 2.0 (83) PID: 685 Thread: 0 Exception: EXC_BREAKPOINT (0x0006) Code[0]: 0x00000001 Code[1]: 0x9286a2e0 Thread 0 Crashed: 0 com.apple.Foundation 0x9286a2e0 -[NSConcreteTask launchWithDictionary:] + 1900 1 com.apple.installframework 0x989d3a64 -[IFPkg(Task_Convenience_Private) _runTask:] + 92 2 com.apple.installframework 0x989d264c -[IFPkg(IFPkg_Actions) _runCheckTool:withObject:localization:] + 372 3 com.apple.installframework 0x989d2a04 -[IFPkg(IFPkg_Actions) runAction:withObject:localization:] + 140 4 com.apple.installframework 0x989dd02c -[IFInstallationCheckRequirement isTrue] + 112 5 com.apple.installframework 0x989dea10 -[IFRequirementsEvaluator testRequirements:failureLimit:reference:] + 296 6 com.apple.installframework 0x989f991c -[IFPKGDerivedDocument(DistributionPrivate) requirementDictionaryForPackage:onTarget:withCustomizationController:] + 340 7 com.apple.installframework 0x989b6a2c -[IFPKGDerivedDocument installableCheckResults] + 208 8 com.apple.installer 0x00008c00 -[PageController(ReadingCheckingPhase) _doInstallCheck] + 60 9 com.apple.AppKit 0x9373df6c +[NSApplication _startDrawingThread:] + 76 10 com.apple.Foundation 0x9287c2b4 forkThreadForFunction + 108 11 libSystem.B.dylib 0x9002c3d4 _pthread_body + 96 Thread 0 crashed with PPC Thread State: srr0: 0x9286a2e0 srr1: 0x0202f030 vrsave: 0x00000000 cr: 0x24000424 xer: 0x00000007 lr: 0x9286a2e0 ctr: 0x9285903c r0: 0x9286a2e0 r1: 0xf03051d0 r2: 0x007b5000 r3: 0xf0304d80 r4: 0x00000000 r5: 0x92858964 r6: 0xf0304e04 r7: 0x000000ff r8: 0xf0304df0 r9: 0x003ea180 r10: 0x909aa668 r11: 0x24000422 r12: 0x9285903c r13: 0xa2859b74 r14: 0x00395f30 r15: 0x0187e000 r16: 0x003deee0 r17: 0x003f8850 r18: 0x003ea120 r19: 0xa2879b74 r20: 0xa2879b74 r21: 0xa2879b74 r22: 0xf0305210 r23: 0x003f2e50 r24: 0x003fa5a0 r25: 0x003fb590 r26: 0x06807310 r27: 0x00000100 r28: 0xf0305218 r29: 0x0182dc44 r30: 0x00000008 r31: 0x92869b74 - WBR, Alexey Proskuryakov _______________________________________________ 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... This email sent to site_archiver@lists.apple.com
participants (1)
-
Alexey Proskuryakov