Liad
Liad

Reputation: 433

Why Install4j requires reboot on next installation after uninstall?

I have two windows installers built using install4j I do the following steps:

  1. Install version X
  2. Uninstall version X
  3. Install version x + 1

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

Answers (1)

Ingo Kegel
Ingo Kegel

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

Related Questions