« Return to Thread: Re: 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 Nik,

> It works on XP but there is a pitfall. A dialog will be display where
> you can choose which user account should be used to start the
> application. Additionally there is a checkbox where you can whether
> your computer and data should be protected from unauthorised program
> activity. This is tciked on by default and if it is kept ticked on
> then the installer runs into problems installing into the common
> C:\Program Files folder. I am not sure if this a problem in just my
> system - maybe someone else could try this out and give this a try.

If you have a better solution for XP then please share it :-)

The good thing is that it works just nicely on Vista.

> This is very nice :) However there is again a limitation: It seems
> like your tiny app does not work correctly with shell scripts. So any
> shell scripts do not inherit the privileges. This explcitly covers the
> case where you tell the installer to start shell script as postinstall
> (<executable>). This script will not run with the elevated rights.
> Would there be any way how to make scripts run with elevated rights as
> well?

See the attached screenshot: I have inserted a call to whoami in
ProcessPanel and the scripts are called as root.

> I would suggest to add the option to make this OS-dependent. For
> example my installer does not need to have privileged rights on
> Windows but needs privileged rights for OSX (missing libraries which
> need to be installed). This is currently not possible.

Agreed. Let's keep it in mind for the next release.

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

exec-admin-whoami.png (46K) Download Attachment

 « Return to Thread: Re: Bootstrap then launch with administrative rights