Re: Firefox 12.0 packaging
Re: Firefox 12.0 packaging
- Subject: Re: Firefox 12.0 packaging
- From: Joshua Levitsky <email@hidden>
- Date: Wed, 23 May 2012 15:26:25 -0400
I'm in a corporation. Users don't really get to pick which version they run. My assumption of location works out because in Absolute Manage (the tool I use to manage machines which was formerly called LANrev) I actually report on any Firefox that isn't where I expect. Generally if you want to package Firefox you are doing management on some level. If you haven't a way to locate Firefox in a non-standard location, but you want to control which is run then just use a find or have Spotlight tell you where Firefox.app is and pass that to rm to remove all instances.
find /Applications -name "Firefox.app"-exec rm -rf {} \;
find /Users -name "Firefox.app"-exec rm -rf {} \;
The above could do this pretty quick. It's all about what you need to get done and what environment you work in.
On Wednesday, May 23, 2012 at 1:25 PM, Fritz Anderson wrote:
I'm curious — how do you handle the case in which the user likes her copy of Firefox? For instance, if her copy is a version or two more recent than the one you're installing?
And you're correct that you're not handling the case in which the user has her own Firefox in ~/Applications/ . (Maybe she likes her copy so much that she wants to override the system-wide one.) My rule of thumb in programming is that "meh, probably works" is just another way of saying "doesn't work."
— F
On 23 May 2012, at 11:44 AM, Joshua Levitsky wrote:
I do the below as a preflight and then my PKG has /Applications/Firefox.app in it. I customize FF with the CCK so my Firefox.app has my config inside it. I don't allow relocation in my PKG and I assume Firefox is in /Applications on the target volume. In my environment that is a valid assumption, but if you don't know where Firefox.app lives then you would allow relocation (checkbox when editing the package in packagemaker) and you would change the rm line below to do a find and delete ones it finds probably.
#!/bin/sh
killall firefox
rm -rf "$3/Applications/Firefox.app"
exit 0
_______________________________________________
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