Re: Performing scripts on founs applications
site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com Hi! I need to perform certain actions on an application found during installation. More precisely, I find an application (QuarkXPress), and then I need to disable one of its XTensions by moving it into another folder. There seemingly exists an undocumented way to get a path to the found object from a postflight script: if the token is named "UserLocation", then a shell variable DESTINATION_TOKEN is set to this path. postflight: #!/bin/sh rm -rf "$DESTINATION_TOKEN/../XTension Disabled/OPI.xnt" > /dev/null mv "$DESTINATION_TOKEN/../XTension/OPI.xnt" "$DESTINATION_TOKEN/../XTension Disabled/OPI.xnt" -pmb _______________________________________________ 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... At 6:48 PM +0300 12/8/04, Alexey Proskuryakov wrote: This seems like a reasonable need: the ability for your script to know about the resolution of locator tokens. I don't think there's a supported way to do that right now, you should file a bug requesting one. exit 0 Note that if you're going to use something undocumented, you should probably make your code extremely defensive about possible errors. Thinkn about what your script will do if $DESTINATION_TOKEN is undefined. This email sent to site_archiver@lists.apple.com
participants (1)
-
Peter Bierman