Re: Performing scripts on founs applications
Re: Performing scripts on founs applications
- Subject: Re: Performing scripts on founs applications
- From: Peter Bierman <email@hidden>
- Date: Fri, 10 Dec 2004 16:31:45 -0800
At 6:48 PM +0300 12/8/04, Alexey Proskuryakov wrote:
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.
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.
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"
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.
-pmb
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden