Message-ID: <1148745696.778672.1386318758453.JavaMail.email@example.com> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_778671_1598382917.1386318758453" ------=_Part_778671_1598382917.1386318758453 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
The RegistryInstallerListener and RegistryUninstallerListener pr= ovide Windows registry access during an installation or uninstallation.
Due to the lack o= f Unicode support, there is no support from the IzPack project of this feat= ure for Windows 95, Windows 98 and Windows ME, but just for Windows NT and = higher.
The listeners themselves are only able to write into the Windows registr= y at installation and delete the writing at uninstall time.
To add registry support to an installation some changes in the installat=
ion definition file (
install.xml) are to be made. First the de=
claration of the listener themselves:
For cleanup purposes it is recommended to add the uninstaller listener t= o not leave :trash: entries in the registry after uninstalling a product.= p>
Now we need to ad=
d the native registry support to
install.xml, see also Windows Registry Access:
The DLL file should be placed in
/bin/native/3rdparty. The stage
both marks this dll not only to be put into the in=
stallation jar file but also to be put into the uninstaller jar file. This =
is automatically performed by the packager and installation.
With these two changes the registry support will be incorporated into yo= ur installation. Without any more actions an uninstall key will be crated i= n the registry at the installation. If you open the software manager of Win= dows, there will be an entry with the variables $APP_NAME $APP_VER, e.g.:= p>
The variables will be defined from the entries
<appversion> in the <info> element of the installation defi=
If you would like to have more informations in the uninstaller key or to=
create other keys or values in the registry, you should create a specifica=
tion file. The file should be then refered to in
install.xml as resource:
id has to be
See also CheckedHello= Panel for getting information on how to use those registry entries in a= n installer.