Am 26.03.2013 um 08:30 schrieb Beatrix Willius <[email protected]>: > Because I've had some issues with my Iceberg installer I'v written a simple > one myself. Installing files into the application folder of course only works > for admin users. > > I've found AuthorizationMBS to get admin rights. But I can only execute shell > script which are - at least for me - really odious to write. Is there any way > to authorize and then execute Realbasic code? Is there a way to only > authorize if I have to or can I find out if the user is an admin?
You can simple try your operations and if you get permissions error, you are not allowed to do the thing you want to do. Some people are allowed to write to /Applications and some are not. You never want to have a GUI app run as root. But I do for one of my apps run console apps as root. Simply run them from a shell script. I need that for the auto updater which runs as root, so it can moves our app in place. Greetings Christian -- Read our blog about news on our plugins: http://www.mbsplugins.de/ _______________________________________________ Mbsplugins_monkeybreadsoftware.info mailing list [email protected] https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
