This is probably rare enough that it's not worth going to great lengths to make the process elegant, but you can write a very simple Applescript to elevate an app for you. There are lots of ways to approach it, but if you want it to show you a file picker and then prompt for the Administrator password you could use something like:
set filePath to (POSIX path of (choose file))
do shell script "open \"" & filePath & "\"" with administrator privileges
open
will figure out how to find the executable in a App bundle. This will also work with other file types, for instance system configuration files.
You could also make this a droplet or a script menu entry that worked on the current Finder selection. If you add the text: password "yourPass"
to the end of the second line then you can suppress the authentication prompt, but I certainly wouldn't recommend that.
I didn't had any such issues with WOW installer, @James. And I installed it to /Applications as default. Wondering what could have really happened in your end... I did download the installer from Blizzard website. – cregox – 2010-05-21T00:08:30.607
@Cawas, the first Mac OsX account is admin by default. The account I run under is pure user, which could account for the behavior. Also it has been about a year since I posted this, so Blizzard could have improved their installer. – James McMahon – 2010-07-21T12:40:39.250
@James I'm also not on default account. I may have some admin privileges, but usually when anything is needed, and I think this also happened with my wow installation, it just asks me for the password. Now it has been 1 year already and most likely Blizzard did improve their installer, but I would doubt this had anything to do with it. :P
Good to know you figured it out back then. ;) – cregox – 2010-08-12T18:26:53.410
Blizzard is just lazy and tries to install the whole shebang to the users home directory. I just want it to go into Applications like all other programs. – James McMahon – 2009-08-06T00:19:56.460
3Then if you run it as root, it will install to root's home directory and no one else will be able to access it. Install as a normal user, then move the application directory to
/Applications
. – s4y – 2009-08-06T02:11:35.8871@SidenySM, you can point the installer at whatever directory, it just needs admin to write to /Applications. – James McMahon – 2009-08-06T20:13:03.947
The links to "Pseudo" is dead now. – tcurdt – 2019-09-08T23:53:49.950