On Windows, a non-admin user can still install applications for his personal usage. When the registry uninstall support has been enabled for IzPack, such a user installation fails: IzPack will abort the entire installation when the registry write access to HKLM\..\Uninstall is rejected due to the missing admin rights.
The attached patch falls back to HKCU\..\Uninstall in those cases, allowing the installation to succeed and register the uninstaller in the "Add/Remove programs" control panel for the current user.
Furthermore, the patch writes the additiional key "DisplayVersion" and "HelpLink" to the registry to improve user experience. See also Uninstall Registry Key
.
The patch uses hard-coded string literals to access installer data like demonstrated by other code in the class. If there is no particular reason for using string literals, it might be advisiable to reuse the string constants from ScriptParser.