izpack/izpack — pull request #5 by omniamutantur (2012-06-12 14:59:23+00:00)
Title: IZPACK-743: Uninstall data written on quit from CheckedHelloPanel

This solution sets all uninstaller information in the installData instance to null or false values. It's kind of overkill. The method UninstallerDataWriter.isUninstallRequired(), which is called from InstallerFrame.writeUninstallData(), checks that
* uninstaller path is not null
AND
* the string identifying the shouldWrite condition is null OR is empty OR refers to a condition that evaluates to true.

This solution sets uninstaller path and name to null, and sets the condition to a fake id (uninstaller.nowrite). The isUninstallRequired() test fails as desired at the first hurdle - uninstaller path is null. It just seemed like a good idea to be thorough. If the test for the condition "uninstaller.nowrite" was actually executed, it would generate a WARNING-level message that the condition ID could not be found.