[izpack-devel] RegistryDefaultHandler problem

Bartz, Klaus Klaus.Bartz at coi.de
Mon Jul 23 13:17:46 CEST 2007


Hi "fxa",
you should not call RegistryDefaultHandler.getInstance() in the
constructor
else in the method beforePacks (see RegistryInstallerListener) because
you
need the AutomatedInstallData object which you gets in beforePacks.
After
getInstance you have also to call verify(idata) with the idata object
(see
RegistryInstallerListener.initializeRegistryHandler.

Without verify(idata) the default handler do not work right, but he have
to exist. Therefore there is also an other problem in your installation.
Do you have add the dll into your jar file via 

	<native type="3rdparty" name="COIOSHelper.dll" stage="both">
		<os family="windows"/>
	</native>

?
call
java -DTRACE=TRUE -jar <Your Install>.jar
After language dialog there should be a line like 

Ctor OSClassHelper for com.coi.tools.os.izpack.Registry is good: true

If not good: true, most you have forgotten the dll.

Hope it helps

Klaus

> -----Original Message-----
> From: izpack-devel-bounces at lists.berlios.de 
> [mailto:izpack-devel-bounces at lists.berlios.de] On Behalf Of fxa
> Sent: Sunday, July 22, 2007 7:29 PM
> To: izpack-devel at lists.berlios.de
> Subject: [izpack-devel] RegistryDefaultHandler problem
> 
> 
> 
> I am using 3.10.3 and I have written a listener that needs 
> some information from Registry so it tries to get an instance 
> of RegistryDefaultHandler through getInstance method.  At the 
> same time I am using RegistryInstallerListener.  Problem is 
> RegistryDefaultHandler.getInstance()
> which returns null.  
> It seems on first access to handler its initialized flag has 
> been set and somehow the work object gets null so 
> registryHandler.good() return false.  
> 
> How can I resolve this problem?  Here is the some snippet:
> 
> public class SomeInstallerListener extends SimpleInstallerListener {
>    
>     RegistryHandler registryHandler = null;
> 
>     public SomeInstallerListener(){
>         super(true);
>         registryHandler = RegistryDefaultHandler.getInstance();
>     } 
> -- 
> View this message in context: 
> http://www.nabble.com/RegistryDefaultHandler-problem-tf4125717
.html#a11732705
Sent from the izpack devel mailing list archive at Nabble.com.

_______________________________________________
izpack-devel mailing list
izpack-devel at lists.berlios.de
https://lists.berlios.de/mailman/listinfo/izpack-devel


More information about the izpack-devel mailing list