« Return to Thread: Bootstrap then launch with administrative rights

RE: Bootstrap then launch with administrative rights

by BB Warm :: Rate this Message:

Reply to Author | View in Thread

Julien,

I like what I am seeing.  This is a must-have for installers nowadays.  One issue though, at least on the Mac, we have lost the ability to debug with -DTRACE=true since (I am guessing) the privilege elevation mechanism restarts the installer without the system properties.

Tao


-----Original Message-----
From: Julien Ponge [mailto:julien.ponge@...]
Sent: Tuesday, October 28, 2008 7:44 AM
To: dev@...
Subject: Re: [izpack-dev] Bootstrap then launch with administrative rights

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



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

    http://xircles.codehaus.org/manage_email


 « Return to Thread: Bootstrap then launch with administrative rights