Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating a "Uninstaller" for a program on Mac OS

I have a requirement to create a cross platform application that launches a web link to a feedback form when its uninstalled.

This is obviously normal sort of behaviour on windows..., but on a Mac is is proving to be more complicated as applications are not technically installed and uninstalled in a windows sense, aka you just copy the .app file into Applications and delete it when you're finished.

How can I achieve this website launching requirement? (Should I even be trying, is this process too alien to Mac users?)

I tired packing the application with an uninstall shell script that deletes the app and lunches the site, but obviously the script can't delete itself.

like image 389
Dan Avatar asked Jan 13 '10 15:01

Dan


2 Answers

I don't think this is the best idea, since the process would be a bit unusual to OS X users. As you noted, most applications are installed simply by dragging a .app file to /Applications (or some other location). Some apps do have an installer, but even apps with an installer only occasionally have an uninstaller; and furthermore, as a Mac user, I'd be immediately suspicious of an app that installed itself and some sort of unknown shell script.

like image 123
mipadi Avatar answered Sep 18 '22 12:09

mipadi


Mac OS applications should not need to be uninstalled in any way other than the user dragging them into the trash.

Also, I would rethink very carefully your plan to make a cross-platform applications. Cross-platform applications that treat Mac OS as an afterthought and try to push foreign paradigms onto Mac OS are really irritating. If you want a Mac client, keep your backend code, but rewrite the front-end from scratch. Don't use something like Qt, no matter how tempting the portability is.

So, long story short, you're right. The process is alien to Mac users (except for things like plugins). So my suggestion is just to go with the normal Mac OS behavior (drag to trash). Best of luck!

like image 38
Jonathan Sterling Avatar answered Sep 19 '22 12:09

Jonathan Sterling