Reputation: 433
I have two windows installers built using install4j I do the following steps:
The result is the following message: The installation/removal of a previous program was not completed. You will need to restart your computer to complete that installation.
I know that the reason is for this message is the uninstall step adding the registry key HKEY_CURRENT_USER\SOFTWARE\ej-technologies\install4j\RebootCheckFile
The question is why the uninstall step adds this registry key?
Upvotes: 1
Views: 389
Reputation: 48015
Most likely the reason is that a file could not be deleted because it was still in use by a running executable.
While the uninstaller is still open at the end, search for the log file in the %TEMP% directory (a file whose name starts with "i4jlog") and check the output of the "UninstallFilesAction".
Alternatively, the installer may not have been able to overwrite a file because it was in use. Check the log files of the installer for any occurrences of "Delayed installation".
You can suppress reboot by passing the VM parameter
-Dinstall4j.suppressReboot=true
to the installer. You can set it as a fixed VM parameter in the "VM arguments" property of the installer.
Upvotes: 1