[izpack-user] Problems with installing to C:\Program Files on Windows Vista

24 views
Skip to first unread message

Lubos and Alena Pochman

unread,
Apr 2, 2009, 4:11:11 PM4/2/09
to us...@izpack.codehaus.org
Hi,

I am trying to overcome problems with IzPack installer not being able to install to UAC protected directories like C:\Program Files\...
I found this http://jpz-log.info/archives/2008/11/10/izpack-installers-with-privileged-permissions/, so I installed IzPack 4.2.1 and
added tag <run-privileged></run-privileged> to <info> section.

But when I run the installer, I get NPE:

$ java -jar my-installer.jar
- ERROR -
java.lang.NullPointerException
java.lang.NullPointerException
        at java.lang.StringBuffer.<init>(StringBuffer.java:103)
        at com.izforge.izpack.rules.RulesEngine.getCondition(Unknown Source)
        at com.izforge.izpack.installer.InstallerBase.checkForPrivilegedExecution(Unknown Source)
        at com.izforge.izpack.installer.InstallerBase.loadInstallData(Unknown Source)
        at com.izforge.izpack.installer.GUIInstaller.<init>(Unknown Source)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at java.lang.Class.newInstance0(Class.java:355)
        at java.lang.Class.newInstance(Class.java:308)
        at com.izforge.izpack.installer.Installer.main(Unknown Source)

Is this a bug or am I doing something wrong?

Thanks, Lubos Pochman


Julien Ponge

unread,
Apr 2, 2009, 4:43:58 PM4/2/09
to us...@izpack.codehaus.org
Hi,

Can you try with 4.3.0-rc1?

http://snapshots.dist.codehaus.org/izpack/IzPack-install-4.3.0-rc1.jar

Thanks

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

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

http://xircles.codehaus.org/manage_email


Julien Ponge

unread,
Apr 2, 2009, 4:45:51 PM4/2/09
to us...@izpack.codehaus.org
Also, which conditions did you use on run-privileged?

Lubos and Alena Pochman

unread,
Apr 2, 2009, 5:21:22 PM4/2/09
to us...@izpack.codehaus.org
I tied it with 4.3.1-rc1 and instead of stderr output to cmd. line, I get NPE error dialog.
I am not sure what you mean by "which conditions did you use on run-privileged", I didn't set any conditions (should I?),
I just put <run-privileged></run-privileged> or <run-privileged/> into <info>...</info> block.

Lubos

Julien Ponge

unread,
Apr 2, 2009, 5:26:59 PM4/2/09
to us...@izpack.codehaus.org
How about this?

<run-privileged condition="izpack.windowsinstall.vista"/>

On Thu, Apr 2, 2009 at 11:21 PM, Lubos and Alena Pochman

Lubos and Alena Pochman

unread,
Apr 2, 2009, 10:43:16 PM4/2/09
to us...@izpack.codehaus.org
Thanks Julien,

that did it! I did not know about the condition! Both installer and uninstaller work great with UAC enabled!.

Thanks for your help, and for great installer! IzPack rocks!

Lubos

Viswa Reddy

unread,
Dec 7, 2017, 2:03:28 AM12/7/17
to izpack-user
We are using windows 10 and windows 7 .  We used : <run-privileged condition="izpack.windowsinstall.vista"/>
but still it not working. 
For Mac and linux how to set the privileged condition. we want to write to Application in mac and /usr/local in linux

Regars
Reddy

Andreas Kuhtz

unread,
Dec 7, 2017, 2:58:27 AM12/7/17
to izpack-user
Hi Reddy,

See https://izpack.atlassian.net/wiki/spaces/IZPACK/pages/491662/Header+-+info

<run-privileged condition="izpack.windowsinstall.7|izpack.windowsinstall.10|izpack.windowsinstall.vista"/>

Cheers,
Andreas


--
You received this message because you are subscribed to the Google Groups "izpack-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to izpack-user+unsubscribe@googlegroups.com.
To post to this group, send email to izpac...@googlegroups.com.
Visit this group at https://groups.google.com/group/izpack-user.
For more options, visit https://groups.google.com/d/optout.

taxili...@gmail.com

unread,
Dec 8, 2017, 3:31:31 AM12/8/17
to izpack-user
Am the administrator of this computer but still it says need admin rights.
When i try with other installer am able to install in the C:\Program files no issues.

Regards
Reddy.
To unsubscribe from this group and stop receiving emails from it, send an email to izpack-user...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages