Re: Best approach to write an uninstaller for osx

2009-11-25 Thread Parimal Das
Okay How i will perform these two operations in my uninstall.app 1. Removal of app icon from dock if Keep in dock is selected 2. Removal of app from user launch services if Open at login is selected On Tue, Nov 24, 2009 at 10:02 PM, Jens Alfke j...@mooseyard.com wrote: On Nov 24, 2009, at

Re: Best approach to write an uninstaller for osx

2009-11-24 Thread Parimal Das
hello again From what i understood till now, i have written some Applescript (my first) to do the uninstall. My approach here is- 1. I have two Application Bundles (created from Script Editor)- Uninstall.app and DeleteAll.app 2. Delete.app resides inside the Resources of Uninstall.app. 3. When

Re: Best approach to write an uninstaller for osx

2009-11-24 Thread Jens Alfke
On Nov 24, 2009, at 6:30 AM, Parimal Das wrote: 4. This script copies DeleteAll.app to /private/tmp/ AND then runs DeleteAll.app from Temp location. Why do you need two different apps? Just have Uninstall.app delete itself when it finishes. do shell script sudo cp -R ' ourPath ' '

Re: Best approach to write an uninstaller for osx

2009-11-23 Thread Kyle Sluder
On Sat, Nov 21, 2009 at 4:50 PM, Jens Alfke j...@mooseyard.com wrote: Sure, you can do that. As I said, there's no particular trick for deleting the uninstaller. The filesystem won't stop you from deleting your own binary (or moving it to the trash.) The filesystem doesn't care, but the OS

Re: Best approach to write an uninstaller for osx

2009-11-23 Thread James Walker
Kyle Sluder wrote: On Sat, Nov 21, 2009 at 4:50 PM, Jens Alfke j...@mooseyard.com wrote: Sure, you can do that. As I said, there's no particular trick for deleting the uninstaller. The filesystem won't stop you from deleting your own binary (or moving it to the trash.) The filesystem

Re: Best approach to write an uninstaller for osx

2009-11-23 Thread Nick Zitzmann
On Nov 23, 2009, at 2:02 PM, James Walker wrote: Could you define freak out in this context? I haven't noticed any problem with moving a running app to the trash just before quitting it. If you move a running application, then NSBundle will return the old obsolete paths for bundle

Re: Best approach to write an uninstaller for osx

2009-11-22 Thread Uli Kusterer
On 22.11.2009, at 01:50, Jens Alfke wrote: Sure, you can do that. As I said, there's no particular trick for deleting the uninstaller. The filesystem won't stop you from deleting your own binary (or moving it to the trash.) I've seen uninstallers in the form of AppleScripts. They're easy

Re: Best approach to write an uninstaller for osx

2009-11-22 Thread Jens Alfke
On Nov 22, 2009, at 10:44 AM, Uli Kusterer wrote: Well, you may want to quit your app before you delete it, though (and refuse to uninstall until the user has quit it). Files may only actually get deleted when they're closed, but all the resources in your file package will generally only

Re: Best approach to write an uninstaller for osx

2009-11-22 Thread Uli Kusterer
On 22.11.2009, at 20:52, Jens Alfke wrote: On Nov 22, 2009, at 10:44 AM, Uli Kusterer wrote: Well, you may want to quit your app before you delete it, though (and refuse to uninstall until the user has quit it). Files may only actually get deleted when they're closed, but all the resources

Re: Best approach to write an uninstaller for osx

2009-11-21 Thread Parimal Das
Hi I shifted from dmg install to packaged one for the following reasons- My app needs to install a firefox addon to work. This i am doing in a postinstall script in the packaged install, copying my xpi file to firefox designated place Now sending my app to trash will not delete that xpi, and i

Re: Best approach to write an uninstaller for osx

2009-11-21 Thread Jens Alfke
On Nov 21, 2009, at 12:21 AM, Parimal Das wrote: My app needs to install a firefox addon to work. This i am doing in a postinstall script in the packaged install, copying my xpi file to firefox designated place I'd call that a legitimate case for an uninstaller :) Now sending my app to

Re: Best approach to write an uninstaller for osx

2009-11-21 Thread Parimal Das
Thanks Jens Let me try the Applescript way. On Sun, Nov 22, 2009 at 6:20 AM, Jens Alfke j...@mooseyard.com wrote: On Nov 21, 2009, at 12:21 AM, Parimal Das wrote: My app needs to install a firefox addon to work. This i am doing in a postinstall script in the packaged install, copying my

Best approach to write an uninstaller for osx

2009-11-20 Thread Parimal Das
Hello All I want to write a uninstaller for my app. What this un-installer need to do is- delete some files an the main app, and then delete itself. Steps what i found are 1. Un-install app will run a shell script to delete all. 2. It will use launchd to delete itself. How access permissions

Re: Best approach to write an uninstaller for osx

2009-11-20 Thread Jens Alfke
On Nov 20, 2009, at 11:03 PM, Parimal Das wrote: I want to write a uninstaller for my app. Are you sure it needs one? Most Mac apps don't have or need uninstallers. If you want to remove an app, you just drag its icon to the Trash. (There might be some preference files left behind, but