« Return to Thread: Bootstrap then launch with administrative rights

Re: Bootstrap then launch with administrative rights

by Julien Ponge-3 :: Rate this Message:

Reply to Author | View in Thread

Hi everyone,

I have made significant progress on this topic :-)

On Windows Vista, the installer extracts a WSH JScript that relaunches
a JVM with elevated privileges. I suspect that it works on XP too but
I couldn't test it.

On *nix (Linux, etc), it uses a "least-common denominator" approach by
relying on xterm + sudo.

On Mac OS X, the installer extracts a very small universal binary that
uses the Security framework, again to ask for elevation.

In my limited experimentations this worked well.

It can be enabled through a <run-privileged/> tag in the
<info>(...)</info> section.

The code is currently available from
http://github.com/jponge/izpack/tree/exec-admin through Git. I would
appreciate to get some feedback on it. I can upload a testing
installer if some of you need. Otherwise you can easily get the code
from Git. (Windows users, http://code.google.com/p/msysgit/ provides a
very good Git build that works out of the box).

I'd love to merge that for IzPack 4.2.

Cheers

--
http://izpack.org/
http://jpz-log.info/
http://julien.ponge.info/

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


 « Return to Thread: Bootstrap then launch with administrative rights