Performing scripts on founs applications
site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com User-agent: Microsoft-Entourage/11.0.0.040405 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. Maybe there exists a better way to achive the same result? Here are the relevant files from the installer, for the reference: TokenDefinitions.plist: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>UserLocation</key> <array> <dict> <key>identifier</key> <string>com.quark.QuarkXPresss</string> <key>path</key> <string/Applications/QuarkXPress 6.0/QuarkXPress.app</string> <key>searchPlugin</key> <string>CommonAppSearch</string> </dict> </array> </dict> </plist> 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" exit 0 - 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