Bug 51881 - UI: Windows installer Validates install multiple times if Java application is running
Summary: UI: Windows installer Validates install multiple times if Java application is...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Installation (show other bugs)
Version:
(earliest affected)
3.5.5.3 release
Hardware: x86 (IA32) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: BSA
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-09 02:05 UTC by billhook
Modified: 2013-03-04 04:07 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
A screenshot showing the "Files in Use" message (35.95 KB, image/png)
2013-03-04 03:53 UTC, billhook
Details

Note You need to log in before you can comment on or make changes to this bug.
Description billhook 2012-07-09 02:05:37 UTC
Problem description: 

If a Java process is running, the installer stops and asks you to close the offending Java processes. The problem is that the installer then starts the whole "Validating Install" step over again, which on my machine takes more than 5 minutes. 

Steps to reproduce:
1. Make sure a Java application is currently running on the computer
2. Start the LibreOffice installer
3. The installer says "Validating Install. This may take a few minutes". On my (4yr old) machine, this process takes at least 5 minutes.
4. The installer informs me that "installation cannot continue until the following program is terminated: Java Runtime Environment" (paraphrased; I did not note down the exact message, sorry)
5. Close the offending Java application
6. Click "Try Again" on the installer.
7. The installer says "Validating Install" and you then have to wait another 5 minutes before you find out if ANOTHER Java process might stop installation occurring. If so, go back to step 3 and repeat! 

In my case, I had multiple Java applications running (some of which were not obviously Java), and I had to wait through the "Validating Install" process 3 times before I got the install to complete (the 3rd time I made sure to hunt down every java.exe in the Task Manager)

Given the current policy of releasing a new version every 4 weeks, this could get annoying.

Current behavior:
The installer potentially runs the "validating install" process multiple times if a running process prevents installation.

Expected behavior:
The install should only be "validated" once. If a Java process blocks installation, the "validating install" step should not be repeated.

Platform (if different from the browser): 
Windows Vista.
              
Browser: Mozilla/5.0 (Windows NT 6.0; rv:13.0) Gecko/20100101 Firefox/13.0.1
Comment 1 billhook 2012-07-23 03:25:39 UTC
I just installed 3.6.0rc2 and the install proceeded without asking me to close any Java programs.

Either the installer no longer requires you to close Java programs, or perhaps the version of Java it needed was now found on my computer and it didn't have to install anything Java related this time.
Comment 2 Andras Timar 2013-02-14 18:35:41 UTC
We have zero control over what Windows does in "Validating install" step. On the other hand, it takes about 5 seconds on my desktop. I don't think that I have a 60x faster desktop than you, so you probably run a virus checker or similar resource hog in the background.

I don't know, why installer was blocked by a running Java application. It is not logical. Installer pauses when it has to overwrite a file in use. But LibreOffice does not install JRE.

I'm closing this, because nobody confirmed it in the last 6 months.
Comment 3 billhook 2013-03-04 03:53:55 UTC
Created attachment 75880 [details]
A screenshot showing the "Files in Use" message
Comment 4 billhook 2013-03-04 04:07:54 UTC
I just installed 4.0.1.2 and got the "Files in Use" message again. See attachment 75880 [details] for a screenshot.

FWIW The process it is referring to ended up being an instance of "launch4j", which is a JRE launcher.

However, the "validating install" process now takes only a few seconds.