Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To add registry support to an installation some changes in the installation definition file (install.xml) are to be made. First the declaration of the listener themselves:

Code Block
languagehtml/xml
<listeners>
    	<listener installerclassname="RegistryInstallerListener" uninstallerstage="RegistryUninstallerListenerinstall" >
    	<os family="windows"/>
	</listener>
	<listener classname="RegistryUninstallerListener" stage="uninstall" >
		<os family="windows"/>
    	</listener>
</listeners>


Now we need to add the native registry support to install.xml, see also Windows Registry Access:For cleanup purposes it is recommended to add the uninstaller listener to not leave :trash: entries in the registry after uninstalling a product.

Now we need to add the native registry support to install.xml, see also Windows Registry Access:

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

The DLL file should be placed in ${basedir}/bin/native/3rdparty. The stage both marks this dll not only to be put into the installation jar file but also to be put into the uninstaller jar file. This is automatically performed by the packager and installation.

...