How do i fix this Java Installation error?

Luci 0 Reputation points
2025-10-30T21:46:25.84+00:00

I'm trying to install jdk-21_windows-64x_bin.exe, but when I click on the file I get an error that says, "Another Java installation is in progress. You must complete that installation before you can run this installer."

I've cleared my temp folder and restarted my computer. I've also deleted any files named "JAVA-INSTALL-FLAG" in both the Oracle and Sun folder, located in "%USERPROFILE%\AppData\LocalLow".

I'm not sure what else I can do as I'm stuck on anymore solutions, so any help is appreciated. Is there anyway I can fix this?

Windows for home | Windows 11 | Gaming
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Clary-N 4,925 Reputation points Microsoft External Staff Moderator
    2025-10-31T08:09:12.61+00:00

    Hi Luci,

    Thank you for reaching out to Microsoft Q&A forum. I understand how frustrating it can be to encounter an error like “Another Java installation is in progress” when you’re trying to install JDK. You’ve already done a lot of the right things, and I appreciate the effort you’ve put in so far.

    This issue typically occurs when the Windows Installer service detects a pending installation. Here’s a detailed guide that usually resolves this issue:

    Step 1: Check for Active Installer Processes

    • Press Ctrl + Shift + Esc to open Task Manager.
    • Look for any processes named:
      • java.exe
      • msiexec.exe
      • jdk-*.exe
    • If you find any, right-click and select End Task.

    Step 2: Disable Windows Installer Service

    1. Launch the Start menu.
    2. In the search box, type:
         services.msc
      
      and press Enter.
    3. In the Services window, scroll down and find Windows Installer.
    4. Right-click Windows Installer and select Properties.
    5. In the Startup type dropdown, select Disabled.
    6. Click Apply, then OK.
    7. Restart your PC to apply the changes.

    Step 3: Re-enable Windows Installer

    1. Repeat Step 1 to open Windows Installer Properties.
    2. Change Startup type back to Manual.
    3. Click Apply, then OK.

    Step 4: Install Java Using Offline Installer

    *Disclaimer: Microsoft provides no assurances and/or warranties, implied or otherwise, and is not responsible for the information you receive from the third-party linked sites or any support related to technology. 

    This process resets the Windows Installer service and clears any stuck installation state. If you still encounter issues after this, please let me know. I'm here to support.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".  

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.